C program or a C program Clib method These items expect a rigid and precise

C program or a c program clib method these items

This preview shows page 104 - 107 out of 334 pages.

C program or a C++ program Clib method These items expect a rigid and precise description of the values that Siebel eScript passes. Example of Using a BLOB Descriptor The following example creates a blobDescriptor object that describes the Rectangle object:
Image of page 104
Methods Reference BLOB Methods Siebel eScript Language Reference Version 8.1, Rev. A 105 var bd = new blobDescriptor(); bd.width = UWORD32; bd.height = UWORD32; In this example, you can use Siebel eScript to pass the bd variable as a blobDescriptor argument to a function that requires a blob descriptor. The values set for the properties depend on what the receiving function expects. In this example the function that Siebel CRM calls expects to receive an object that includes two 32-bit words or data values. If you write a BLOB descriptor for a function that expects to receive an object that contains two 16-bit words, then set the value for the two properties to UWORD16. Values You Must Use with a BLOB Descriptor Table 44 describes the values that you must use with blobDescriptor object properties. To indicate the number of bytes that are required to store the property, you use one of these values. If the BLOB descriptor describes an object property that is a string, then you must set the corresponding property to a numeric value that is larger than the length of the longest string that the property can hold. You can typically omit an object method from a BLOB descriptor. Table 44. Values You Can use With the blobDescriptor Value Description WCHAR Handled as a native Unicode string. UWORD8 Stored as an unsigned byte. SWORD8 Stored as an integer. UWORD16 Stored as an unsigned 16-bit integer. SWORD16 Stored as a signed 16-bit integer. UWORD24 Stored as an unsigned 24-bit integer. SWORD24 Stored as a signed 24-bit integer. UWORD32 Stored as an unsigned 32-bit integer. SWORD32 Stored as a signed 32-bit integer. FLOAT32 Stored as a floating-point number. FLOAT64 Stored as a double-precision floating-point number. STRINGHOLDER Indicates a value that Siebel eScript saves in a string. Siebel eScript passes this value to a function. This function saves this string. Siebel eScript does the following work: 1 Allocates 10,000 bytes to contain the string. 2 Truncates this length to the appropriate size. 3 Removes any terminating null characters. 4 Initializes the properties of the string.
Image of page 105
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference BLOB Methods 106 Get BLOB Data Method This Get BLOB Data method reads data from a binary large object. It returns the data from the BLOB. Format A Blob.get( blobVar, offset, dataType ) You use format A for byte, integer, or float data. Format B Blob.get( blobVar, offset, bufferLen ) You use format B for byte data. Format C Blob.get( blobVar, offset, blobDescriptor dataDefinition ) You use format C for object data.
Image of page 106
Image of page 107

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