I encountered an intersting requirement in one of my projects. One a button click parent child assoication should be removed for a record. I wrote script at Applet preinvoke event and in the script I cleared the link field and hence removed the parent child association. However the change did not reflect immediately in the UI for which I needed to refresh the current Applet and the solution that I found out from my guide(GOOGLE) was a vanilla business service FINS Teller UI Navigation and the method invoked is RefreshCurrentApplet.
var svcUI = TheApplication().GetService("FINS Teller UI Navigation");
var psIn = TheApplication().NewPropertySet();
var psOut = TheApplication().NewPropertySet();
svcUI.InvokeMethod("RefreshCurrentApplet",psIn,psOut);
Happy Scripting!!
No comments:
Post a Comment