Siebel SmartScript Administration Guide > Verifying, Testing, and Invoking SmartScripts > About Invoking SmartScripts >
Invoking a SmartScript from a Currently Running SmartScript
You can invoke a SmartScript from another SmartScript using Siebel VB or Siebel eScript. Cancel or finish the currently running SmartScript, and then use the RunSmartScript invoke method to start a new SmartScript. Usage
You can create a SmartScript that makes one SmartScript question start another SmartScript in the current language. Example
Function Question_PreLeave () As Integer
Function Question_PreLeave () As Integer
CurLang = GetCurrentValue
Script.Finish
If CurLang = "English" THEN
TheApplication.InvokeMethod "RunSmartScript","HSN-New Customer",,"ENU",
"USD"
else
TheApplication.InvokeMethod "RunSmartScript","HSN-New Customer",,"ESP",
"USD"
END IF
Question_PreLeave = ContinueOperation
End Function
|