RunCallScript

This function is similar to RunSmartScript in that it programmatically invokes a SmartScript. However, RunCallScript positions the SmartScript on the currently active record from the applet from which the SmartScript 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 using VB in order to pass in the additional parameters.

Syntax

RunCallScript SmartScriptName, 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 update an existing record. Use RunCallScript behind a button on an applet. This usage works in an identical manner to the script button on the Account, Contact, and Opportunity Profile views.

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