COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: ShacharH on 27 May 2014 01:21:07 AM

Title: [Cognos 8.2] Setting value into Date Time prompt using Javascript[Solved]
Post by: ShacharH on 27 May 2014 01:21:07 AM
Hi Guys,

How can i set string value into Date Time prompt using Javascript?

I have this string variable:
var start_time = document.getElementById("start").value;
which contains date in string format.

Any ideas how to proceed?

Thanks In Advance
Title: Re: [Cognos 8.2] Setting value into Date Time prompt using Javascript[Solved]
Post by: ShacharH on 27 May 2014 10:30:43 AM
Thanks to Paul M for the online help. problem solved.

Solution:
pickerControl_StartTime.setValue(document.getElementById("<enter here your date variable>").value);
timePicker_StartTime.setValue(document.getElementById("<enter here your time variable>").value);