Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel SmartScript Administration Guide > Verifying, Testing, and Invoking SmartScripts > About Invoking SmartScripts > Invoking Scripts Using Siebel VB or Siebel eScriptYou can invoke SmartScripts programmatically using the application invoke method RunSmartScript or the applet invoke method RunCallScript. The invoke method, RunCallScript, invokes a SmartScript from an applet so the SmartScript updates the currently active record. NOTE: The name of the SmartScript used in the RunSmartScript and RunCallScript application methods must be a basic (path) name of a SmartScript, which is not the translated SmartScript name which appears in the SmartScript Player applet. RunSmartScriptThis function invokes a SmartScript programmatically. SyntaxRunSmartScript callScriptName, pathId, language, currency, viewName, appletName ReturnsUsageFor consistency, the arguments to RunSmartScript are identical to those of RunCallScript, except for the additional viewName and appletName parameters. The viewName 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. Siebel VB ExampleInvokeMethod "RunSmartScript", "Pentium II Script", "", "ENU", "USD" Siebel eScript ExampleInvokeMethod ("RunSmartScript", "Pentium II Script", "", "ENU", "USD"); Siebel Applet Button ExampleSub ButtonScript_Click RunCallScriptThis 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. SyntaxRunCallScript SmartScriptName, pathID, language, currency UsageRunCallScript 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 ExamplesFunction WebApplet_PreInvokeMethod (MethodName As String) As IntegerSub if MethodName = "MyRunCallScript" then InvokeMethod "RunCallScript", "Pentium II Script","","ENU","USD" WebApplet_PreInvokeMethod = Cancel Operation |
![]() ![]() |
Siebel SmartScript Administration Guide | Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |