Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel SmartScript Administration Guide > Extending Scripts with Siebel VB and Siebel eScript > SmartScript Methods > SubstituteTextSyntaxSubstituteText(text, "variable", "value" ) ReturnsThe original block of text with the new value substituted for the variable as a string. UsageThis method substitutes a single string in the Text, found as [Variable] with the Value, and returns the changed text. In the text variable, the variable and the value are enclosed in brackets ([ ]). NOTE: This method can be executed only once each time the method is called, because the entire string "[text]" is replaced with the value in place of the variable. However, the method can be called repeatedly to translate multiple values in one question or translation. Siebel VB ExampleThe phrase "Are you calling from your car?" is rendered as "Are you telephoning from your carriage?" if the function was configured to translate from U.S. English to Victorian English as follows: VehCheck = "Are you [phone] from your [vehicle]?" VehCheck = SubstituteText(VehCheck, "phone", "telephoning") VehCheck = SubstituteText(VehCheck, "phone", "calling") NOTE: The GetDashboardText and SetDashboardText methods do not affect the displayed values in the Customer Dashboard. For more information on how to affect the customer dashboard values., see Modifying the Customer Dashboard. |
![]() ![]() |
Siebel SmartScript Administration Guide | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |