Siebel SmartScript Administration Guide > Verifying, Testing, and Invoking SmartScripts > Invoking Scripts Through Siebel VB or Siebel eScript >

RunCallScript


This function is similar to RunSmartScript in that it programmatically invokes a SmartScript. However, it positions the script on the currently active record from the applet from which the script was invoked. This can be invoked by filling in the Method invoked property of the button to be RunCallScript. Alternatively, an administrator can invoke it through VB in order to pass in the additional parameters.

Syntax

RunCallScript SmartScript name, pathID, language, currency

Argument
Description

SmartScriptName

Name of the SmartScript, or "" if pathId is specified

pathId

Row ID of the SmartScript, or "" if ScriptName is specified

language

A language code

currency

A currency code

Usage

RunCallScript allows a SmartScript to be used to update an existing record and should be used behind a button on an applet. This works in an identical manner to the script button on the Account, Contact, and Opportunity Profile views.

Examples

Siebel Applet Button Examples

Function WebApplet_PreInvokeMethod (MethodName As String) As IntegerSub

if MethodName = "MyRunCallScript" then

InvokeMethod "RunCallScript", "Pentium II Script","","ENU","USD"

WebApplet_PreInvokeMethod = Cancel Operation

else

WebApplet_PreInvokeMethod = ContinueOperation

end if

End Function

Siebel SmartScript Administration Guide