hclleapforum

Open full view…

Calling a service from aftersave event with parameter

hwidjaja
Sat, 23 Nov 2019 00:54:54 GMT

I have configured a service in the setting section in my application. This service requires parmeter from the form field within the application, However, whenever I called the service from aftersave event, it always have some weird javascript error. If I removed the parameter mapping, the service went well. Does anybody has any ideas why I have this problem? Thanks a lot for your help

cdecinkoknight
Thu, 01 Jul 2021 21:23:53 GMT

Did you find a solution? It feels like the BO object is out of scope when afterSave runs.

christopher_dawes
Thu, 12 Aug 2021 16:20:17 GMT

The afterSave event only works in a specific scenario. You may not use the afterSave event to map anything back into the form. In my experience you also must set the submit properties such that the form loads in the next stage.