Using Siebel eScript Coding with Siebel eScript Siebel eScript Language

Using siebel escript coding with siebel escript

This preview shows page 45 - 47 out of 334 pages.

Using Siebel eScript Coding with Siebel eScript Siebel eScript Language Reference Version 8.1, Rev. A 45 Displaying a Custom Method in Script Assist This topic describes how to display a custom method in Script Assist. For more information see “About the Script Assist Utility” on page 18 . For more information about setting an object property or about using the Server Script Editor to create, save, or compile a script, see Using Siebel Tools . To display a custom method in Script Assist 1 Make a custom method available to the script libraries so that you can call it from Script Assist: a Save the business service method script. b Make sure the script does not contain compile errors. If a script library calls a function, then the compiler determines if argument types are valid and do not contain incompatibilities. c In Siebel Tools, make sure the External Use property contains a check mark for the business service object. 2 To access Script Assist from the script editor, press CTRL + SPACE. 3 In your script, type the name of a business service object followed by a period (.). Script Assist displays the default and custom scripted methods that are available for the business service object. 4 Choose the method you must add to your script. Using Strongly Typed and Typeless Variables A variable can be one of the following: Strongly typed. You specify the data type when you declare the variable. ST eScript code supports strong typing. Siebel CRM binds strong typing when you compile the code. Typeless. Siebel CRM determines the data type at run time. ST eScript code and T eScript code supports typeless variables. A strongly typed variable typically improves performance over a typeless variable. You can strongly type all of the primitive data types and object data types. For more information, see “About Primitive Data Types” on page 20 and “About Composite Data Types” on page 21 . Creating a Strongly Typed Variable This topic describes how to create a strongly typed variable. To create a strongly typed variable 1 Make sure Siebel Tools uses the ST eScript engine. For more information, see Using Siebel Tools .
Image of page 45
Siebel eScript Language Reference Version 8.1, Rev. A Using Siebel eScript Coding with Siebel eScript 46 2 When you declare the variable, you add a colon (:) at the end of the variable name. For example: var VariableA:Date = new Date (); var VariableB:BusObject; var VariableC:BusComp; Creating a Typeless Variable This topic describes how to create a typeless variable. To create a typeless variable Do not specify the data type when you declare the variable. For example: var VariableA = 0; var VariableB = new Date (); var VariableC = new BusObject; In this example, Siebel eScript sets the following types: Sets VariableA as an integer Sets VariableB as a date Types VariableC as a business object The data type that Siebel CRM sets at run time persists until a subsequent operation causes the interpreter to change the type again.
Image of page 46
Image of page 47

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors