Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Time field
Time field [message #1471635] Thu, 13 November 2014 08:23 Go to next message
Flash Man is currently offline Flash ManFriend
Messages: 17
Registered: August 2014
Junior Member
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 09:03 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
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 09:08 Go to previous messageGo to next message
Flash Man is currently offline Flash ManFriend
Messages: 17
Registered: August 2014
Junior Member
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 12:06 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
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: Thu Mar 28 17:18:26 GMT 2024

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

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

Back to the top