Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Methods Reference > BLOB Methods > About the BLOB DescriptorThe blobDescriptor object describes the structure of a BLOB (binary large object). If you must configure Siebel CRM to send an object to a process other than the Siebel eScript interpreter, such as to a Windows API function, then you must configure it to create a blobDescriptor object that describes the order and type of data of this object. This description describes how to store the properties of the object in memory. You use it with methods such as the Siebel Library Call DLL method or the Clib Read From File method. For more information, see Siebel Library Call DLL Method and Clib Read From File Method. A BLOB descriptor includes the same data properties as the object it describes. You must set a value for each property that specifies how much memory is required to store the data that the property holds. To refer to the arguments passed to the constructor function, you use the following keyword: You can think of this keyword conceptually as this object. Consider the following object: Rectangle(width, height) To configure Siebel eScript to pass data to the following items, you typically use a BLOB descriptor:
These items expect a rigid and precise description of the values that Siebel eScript passes. Example of Using a BLOB DescriptorThe following example creates a blobDescriptor object that describes the Rectangle object: var bd = new blobDescriptor(); 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 DescriptorTable 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 write code that omits an object method from a BLOB descriptor. |
Siebel eScript Language Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |