Naveen semwalJanuary 22, 2018 at 9:21 pm #4934
I have a complex object of “PersonalDetails” BO which contains DOB field of Date type. I am populating my composite coach view of personal details using ajax call. But date time picker gives me below mentioned error.
Composite Coach View of “Perosnal details” section and service call coach view are bound to same variable “personalDetails” .Whenever i execute the service call , ajax service returns the result personalDetails and all the fields are populated automatically.
Call stack: TypeError: event.newVal.getTime is not a function
at Object._802._watchCallbacksSPARK SupportJanuary 23, 2018 at 1:28 pm #4937
This seems to be an issue with BPM setting the Date type in a Complex BO as a String using the Timestamp format.
You can work around this issue by placing a Data control on the Coach View bound to the Date property. Use the On Change event of the Data control to setData() on the Date Time Picker, and the On Change event of the DTP to setData() on the Data control.
Stephen P.Naveen semwalJanuary 23, 2018 at 9:26 pm #4938
Thanks Stephen for the work around. It’s working as expected.SPARK SupportJanuary 24, 2018 at 10:03 am #4944
I’m glad to hear that solved the issue.
Stephen P.AbhiOctober 14, 2018 at 11:29 pm #5303
I’m also facing the same issue using Service call control. Could you please explain the steps to resolve the issue.
You must be logged in to reply to this topic.