Bookshelf Home | Contents | Index | Search | PDF |
Siebel SmartScript Administration Guide > Verifying, Testing, and Invoking SmartScripts > Invoking Scripts Through Siebel VB or Siebel eScript >
RunSmartScript
This function invokes a SmartScript programmatically.
Syntax
RunSmartScript callScriptName, pathId, language, currency, viewName
Returns
Not applicable
Usage
For consistency, the arguments to RunSmartScript are identical to those of RunCallScript, except for the additional viewName parameter. This parameter allows a view other than the default agent's SmartScript view to be accessed. This is useful if an alternative view is configured for a specific purpose. The view specified must contain an instance of the SmartScript Player Applet to present the SmartScript interface to the agent.
Examples
Siebel VB and eScript Example
InvokeMethod "RunSmartScript", "Pentium II Script", "", "ENU", "USD
Siebel Applet Button Example
Sub ButtonScript_Click
TheApplication.InvokeMethod "RunSmartScript", "Pentium II Script
End SubOLE Example
Dim errCode as Integer
Dim Args(4) as String
Args(0) = "Pentium II Script"
Args(1) = ""
Args(2) = "ENU"
Args(3) = "USD"
Applet.InvokeMethod "RunSmartScript", Args, errCode
Bookshelf Home | Contents | Index | Search | PDF |
Siebel SmartScript Administration Guide Published: 23 June 2003 |