Search Support
-
Naveen semwalJanuary 22, 2018 at 9:21 pm #4934
Scenario –
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.
Error Message-
Call stack: TypeError: event.newVal.getTime is not a function
at subclass.constructor.change
at Object._448.callViewLifeCycleAPI
at subclass._f66._change
at subclass._f66._bindingChanged
at Object._9e2._invokeCallback2
at _a0d.propertyChange
at Object.<anonymous>
at _806
at Object._802._watchCallbacksSPARK SupportJanuary 23, 2018 at 1:28 pm #4937Hello Naveen,
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.
Regards,
Stephen P.
Naveen semwalJanuary 23, 2018 at 9:26 pm #4938Thanks Stephen for the work around. It’s working as expected.
SPARK SupportJanuary 24, 2018 at 10:03 am #4944Hello Naveen,
I’m glad to hear that solved the issue.
Regards,
Stephen P.
AbhiOctober 14, 2018 at 11:29 pm #5303Hello Naveen,
I’m also facing the same issue using Service call control. Could you please explain the steps to resolve the issue.
Thanks!
-
|
You must be logged in to reply to this topic.