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

Argument
Description
callScriptName
Name of the SmartScript, or "" if pathId is specified
AppletName
Name of the applet to be displayed if it is not the agent's SmartScript applet
pathId
Row ID of the SmartScript, or "" if ScriptName is specified
language
A language code
currency
A currency code
viewName
Name of the view to be displayed if it is not the agent's SmartScript view

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 Sub

OLE 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


 Siebel SmartScript Administration Guide 
 Published: 23 June 2003