RTC Custom attribute With date and time
Hi,
I want to achieve a custom attribute with both date and time, Is this possible?
Right now I see only date (calender) is available but not time (clock), can this be achieved. I have done it programatically to get both date and time on state change, But manually entering date and time in the same field i couldn't find it...
Regards,
-Kiran
I want to achieve a custom attribute with both date and time, Is this possible?
Right now I see only date (calender) is available but not time (clock), can this be achieved. I have done it programatically to get both date and time on state change, But manually entering date and time in the same field i couldn't find it...
Regards,
-Kiran
2 answers
I don't believe there is. I need same functionality. I ended up creating my own time fields (just string value drop downs for hrs and mins)...then adjust selected date to this time in my extension.
Regards
Sola
Regards
Sola
Hi, as far as I am aware the time stamp attribute type always stores the date and time. You can use a JavaScript calculated value to get the full date and time information from a timestamp attribute. You can also try to use the string representation to create a time stamp for want and store that in a timestamp attribute.
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript
I have however noticed that the timestamp presentation does not allow to see the time, you could use a calculated string from that. I Just did that yesterday. The issue would be to enter the script in the right format if you wanted to create a timestamp from it. You would probably also add a validator in this case. See the Process Enactment Workshop Lab 5 for more examples.
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript
I have however noticed that the timestamp presentation does not allow to see the time, you could use a calculated string from that. I Just did that yesterday. The issue would be to enter the script in the right format if you wanted to create a timestamp from it. You would probably also add a validator in this case. See the Process Enactment Workshop Lab 5 for more examples.
Comments
Pradeep Balachandran
JAZZ DEVELOPER Mar 14 '13, 2:50 p.m.