PDA

View Full Version : Time field


ktoole
01-28-2010, 07:46 AM
I have a field in a file that is a Time field. How can I pass this back and forth with Valence? There is a vvIN_date, what can I use for times? Do I have to use a number field for the time and render it on the ExtJS side with ':'s?

sean.lanktree
01-28-2010, 02:02 PM
In the RPG code, try using:


d myTimeField s t datfmt(*iso)

/free
myTimeField = %time(vvIn_char('variablename'));
/end-free


In your JavaScript, ensure that your time field has the following configuration option...

xtype : 'timefield',
id : 'myField',
format : 'h.i.s'