[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
todate and fromdate for formattedfield  XML
Forum Index -> Development
Author Message
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi,

Would it be possible to provide attributes "todate" and "fromdate" for formattedfield? Now formattedfield has only "timezone" and "exacttime" as date specific attributes.

In general, I use calendarfield instead of formattedfield (date) in order to benefice from these range attributes, but in grids with a lot of columns sometimes I must place the date field in a very narrow column.

Regards, Daniel
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi,
yes, this is no problem - the functionality is on FORMATTEDFIELD level anyway...
Will be part of next update.
Regards, Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi everybody,

what is the correct format of the fromdate and todate attributes?
dd.MM.yyyy
dd.MM.yyyy HH:mm:ss ???

I did not find it in the developer guide, nor demo workspace, nor change log, nor online help, ...

Thanks for your help,
Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi,

the format is "long" or "Date" - so exactly the same way you pass the VALUE.

Regards,
Björn

PS: there is an example in the demo workplace: General => Extended Calendar => From-to ;-)

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Ah ok,

but if I want to use the addAttribute() method of ComponentNode?
It just takes Strings!

Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi,

then pass the long as a string: "32847348". What you do with component nodes is 100% the same as what you with JSP/XML. For some of the attribtutes there are explicit set-methods with e.g. int-type (e.g. width), but the base always is the String-value.

Regards, Björn

PS: Please note: you may always pass an expression, too - if the value is bound to a bean-property.


Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team