We can invoke Smart Script from a button using “RunCallScript” method of an Applet. For Example on Applet_PreInvokeMethod below given line of code will invoke Smart Script named “Test SS”
this.InvokeMethod ("RunCallScript", "TestSS","","ENU","USD");
RunCallScript Method accepts 4 arguments.
- Name: Name of the Smart Script to be invoked
- pathId: Row Id of the Smart Script
- Language: Language Code
- Currency: Currency Code
You can specify either Name or Row Id of the smart script. It is compulsory to mention at least one of them.