how can i use standalone calendar to select date (not a datepicker) in java fx 2 - javafx-2

What am looking for is something as follows
and not the following one
there are date pickers but i need fixed date selector in javafx 2.
Any suggestions are welcome

Have a look at JFxtras Calendar
WebSite:url

I've implemented some Date & Time controls based on the Java 8 Date & Time API. They might not be yet of as high quality as the JavaFX core ones, but they should do what you are looking for: LocalDateChooser
The library is Open Source. Maybe you find it useful:
<dependency>
<groupId>org.drombler.commons</groupId>
<artifactId>drombler-commons-fx-time</artifactId>
<version>0.7</version>
</dependency>
If you find some issues or have some enhancement requests, please file them here: https://github.com/Drombler/drombler-fx/issues
Here is the original blog post:
http://puces-blog.blogspot.ch/2013/04/drombler-commons-javafx-controls-for.html

Related

Xpages : Time Picker, Cannot type specific time (Domino 9 Server)

I need help regarding time picker in Domino 9.
I cannot type an specific time in the textfield. but when I try to put my application in domino 8.5, it works fine.
Time picker only allows time with every 15 mins. and I cannot modify it using the its textfield.
My output should be like this. (12:13 AM)
I there any solution regarding this issue?
regards,
Thanks!
[Edited]
I suggest you to check your version and install the FP2, since this FP corrects a bug related to the default value of the pick date. I'm sorry I can't test the Xpage now.
[original response]
In The standard client it works (I can edit the field), maybe should you install FP2 see http://www-10.lotus.com/ldd%5Cfixlist.nsf/WhatsNew/7ff6a78cb16153d085257d2b0062d7b8?OpenDocument. Which mentions:
+HOKA8RZ5KL (LO67745) - Fixes issue in Xpages where the
correct date (or time) won't show on date time picker. This is a
regression in 8.5.3.
I tested with IBM Notes 9
Social Edition
Release 9.0.1FP2 SHF202
Revision 20140804.1000-T00202SHF-FP2 (Release 9.0.1FP2 SHF202)

xpages display the document history

In some 'old' lotus notes applications, we created a history of each document: who created the doc, every person which edited it + the respective dates. The code contained several libraries in lotusScript.
For xpages, is there any snippet / sample working example which I could use? I found this but I couldn't download any example ...
ValueChangeListeners allow you to capture changes to specific components. I've used them to create audit trails in customer applications before.
Tony McGuckin has an XSnippet for it:
http://openntf.org/XSnippets.nsf/snippet.xsp?id=server-side-value-change-events-listeners
Declan Lynch covered it in a blog post:
http://www.qtzar.com/using-a-valuechangelistener-to-build-an-audit-trail/
Don McNally has also done a blog post:
http://dmcnally.blogspot.co.uk/2013/02/xpages-detecting-and-logging-field.html
I don't know of any pre-done snippet yet. But this becomes a lot easier in XPages especially if expand into Java. When I create an application these days I basically convert the document to a Java object. I don't do this yet but it would be easy to store in the object a Map of all the fields and their current values and then on save, look for differences and then write them out to a log document.
this could be done without java of course. Create an map object in scope. Populate it on loading of the document and on save do the compare and write.
Something went wrong with that project on OpenNTF (don't ever use an ampersand in the name). I'm the original author of that custom control. AFter some digging I found a direct url to the project here.

Headers and pages in groovy

I'm converting a report written in SQR (old stuff) into groovy. SQR has a class that will allow you to specify a line-count, such that after that many lines of text are written to the report it will re-print the report header for you (as well as the page number that it keeps track of for you) so that when you go to the next page, the header is at the top of that page rather than a page or two back. Does groovy have anything like this?
Since Groovy itself is a generic language and not one for writing reports, the short answer is no.
You could try to find some java libraries that do what you want or at least support you. There are many many java libraries out there and Groovy is one of the JVM based languages that integrate really well with java lib. Maybe this SO answer is a starting point: https://stackoverflow.com/questions/6942247/i-need-some-java-reporting-engine
Also, be a bit more specific in your question. What is the target format for the report? Word, PDF or something else? What is a page in your case? etc...

Calendar control for xPage

I'm looking for Calendar Control (just like a classic Lotus Notes view), with few base options like: 1 week, 1 months, 1 day and some another etc.
I've found 2 on openntf.org + I've fond something similar on dojox 1.6. We do not use ExtLib so I need something easy to deploy.
any suggestions? thanks in advance!
// Dmytro
FullCalendar is a jQuery plugin that provides a full-sized, drag & drop calendar like the one below. It uses AJAX to fetch events on-the-fly for each month and is easily configured to use your own feed format (an extension is provided for Google Calendar). It is visually customizable and exposes hooks for user-triggered events (like clicking or dragging an event). It is open source and dual licensed under the MIT or GPL Version 2 licenses.
http://arshaw.com/fullcalendar/

Date Labeller year format with custom string in cruise control .net

I am using dateLabeller in Cruise control .net for labeling purpose.
<labeller type="dateLabeller">
</labeller>
it is working fine for me, each time build label is incrementing every time.
But i also want to add some text before date so i have use following code
<labeller type="dateLabeller">
<yearFormat>QAT-0000</yearFormat>
<revisionFormat>0000</revisionFormat>
</labeller>
Now each time a fore build is trigger same label is generating.
How can i fix this problem
Thanks in advance.
Use the format values just as you would use them in Int32.ToString(String). Find information on Custom Numeric Format Strings here.
So this should fix it:
<labeller type="dateLabeller">
<yearFormat>'QAT-'0000</yearFormat>
</labeller>
Update: I took a look at the sources and found out that dateLabeller isn't capable of processing non-numeric labels since the label of the last successful integration is parsed into a System.Version object.

Resources