Table 14 describes the bit operators you can use in Siebel eScript Coding with

Table 14 describes the bit operators you can use in

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

Table 14 describes the bit operators you can use in Siebel eScript. Coding with Siebel eScript This topic describes how to perform some basic tasks that include Siebel eScript. It includes the following topics: “Using Script Libraries” on page 44 “Using Strongly Typed and Typeless Variables” on page 45 “Declaring and Using Variables” on page 46 “Determining the Data Type of a Variable” on page 49 “Passing a Value to a Function” on page 50 “Preventing a Floating-Point Error” on page 51 “Using the Literal Value of a Special Character” on page 51 “Running Browser Script When Siebel CRM Starts a Siebel Application” on page 52 Table 14. Bit Operators You Can Use in Siebel eScript Operator Description Example << Shift left. i = i << 2 <<= Equal shift left. i <<= 2 >> Signed shift right. i = i >> 2 >>= Equal signed shift right. i >>= 2 >>> Unsigned shift right. i = i >>> 2 >>>= Equal unsigned shift right. i >>>= 2 & Bitwise and. i = i & 1 &= Equal bitwise and. i &= 1 | Bitwise or. i = i | 1 |= Equal bitwise or. i |= 1 ^ Bitwise xor, exclusive or. i = i ^ 1 ^= Equal bitwise xor, exclusive or. i ^= 1 ~ Bitwise not, complement. i = ~i
Image of page 43
Siebel eScript Language Reference Version 8.1, Rev. A Using Siebel eScript Coding with Siebel eScript 44 “Releasing an Object from Memory” on page 52 “Monitoring the Performance of Your Script” on page 53 Using Script Libraries The ST eScript engine provides business service script libraries that assist you with developing components that are reusable and modular, which simplifies upgrades and maintenances. You can use script libraries to call global scripts. Script libraries provide the following capabilities: Allows you to call a business service function directly from anywhere in the scripting interface after you declare the business service. You are not required to declare property sets or issue InvokeMethod calls. Allows you to write strongly typed methods for predefined business services. You can then use the Script Assist utility to call these business services. For more information, see “Using Strongly Typed and Typeless Variables” on page 45 . NOTE: Using script libraries is optional. Siebel CRM supports all code written prior to Siebel 8.0. Example of Calling a Business Service Function The following example calls a method directly on the Data Transfer Service without declaring a property set. Calling a business service method directly results in scripts that are shorter and more readable: var oBS : Service = TheApplication ().GetService ("Data Transfer Service"); oBS.SendData ("Name", "John Doe"); Example of a Creating Custom Method for a Business Service You can write a custom method for a business service and make it available in Script Assist. The following example creates SendData, which is a custom wrapper method on the Data Transfer Service: function SendData (sTag : String, sValue : String) { var oPS1 = TheApplication ().NewPropertySet (); var oPS2 = TheApplication ().NewPropertySet (); oPS1.SetProperty ("Tag", sTag); oPS1.SetProperty ("Value", sValue); this.InvokeMethod ("SendData", oPS1, oPS2) } You can intercept and change the calls to the Data Transfer Service in a central location in the SendData method.
Image of page 44
Image of page 45

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