Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Time field
Time field [message #1471635] Thu, 13 November 2014 03:23 Go to next message
Eclipse UserFriend
Hello, i have time field in app.

When I click on some value, it is generated as hours:minutes
So if I click "10:30" is is generating 10:30:00.000 (ten hours and thirty minutes)

But I want to be 00:10:30.000 (0 hours, 10 minutes, 30 seconds)....

How can I do that....?

thanks in advance Smile
Re: Time field [message #1471678 is a reply to message #1471635] Thu, 13 November 2014 04:03 Go to previous messageGo to next message
Eclipse UserFriend
I do not think that it is possible with the time field.

Personally I would use SmartField with a Local LookupCall. What should be the proposals in the menu?
If the user can choose all the values, I would use some Integer Fields (with constraints: between 0 and 60 and so one).

If you describe a little bit more your requirements, I can tell you how I would solve it with Scout.
Re: Time field [message #1471685 is a reply to message #1471678] Thu, 13 November 2014 04:08 Go to previous messageGo to next message
Eclipse UserFriend
This time field is for search form. It is used for searching records between specific time, but that time is only in minutes, and seconds, hours is always 0.
Re: Time field [message #1471872 is a reply to message #1471685] Thu, 13 November 2014 07:06 Go to previous message
Eclipse UserFriend
I would do it with a SmartField:
index.php/fa/19887/0/

With a LocalLookupCall that computes the appropriate choices. The Type of the SmartField and of the LookupCall is is a java.util.Date.

Code is here: SmartField_Time_Example
Previous Topic:Swing PlannerField
Next Topic:Web Services4.0 Tutorial
Goto Forum:
  


Current Time: Sun Jul 06 13:02:16 EDT 2025

Powered by FUDForum. Page generated in 0.05118 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top