Integration Platform Technologies: Siebel Enterprise Application Integration > EAI UI Data Adapter Business Service > EAI UI Data Adapter Business Service Methods >

InitLeaves Method


Use InitLeaves to retrieve pre-default values. When InitLeaves is called on an integration object hierarchy, it retrieves the pre-default values for all leaf nodes. All internal nodes must exist in the database and Row Id must be specified.

InitLeaves Method Arguments

Table 33 lists the method arguments used with the InitLeaves Method. For a complete description of the method arguments, see EAI UI Data Adapter Business Service Method Arguments.

Table 33. Method Arguments for InitLeaves
Method Argument
Type

BusObjCacheSize

Input

LOVLanguageMode

Input

SiebelMessage

Input / Output

ViewMode

Input

Example of Using InitLeaves on a Root Component

The following code snippet demonstrates using InitLeaves to retrieve default values for a root component. In this example the root component is Account.

Request

The following is an example of a request:

<?xml version="1.0" encoding="UTF-8"?>
<SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical">
   <ListOfAccount>
      <Account>
         <Currency_Code></Currency_Code>
         <Account_Status></Account_Status>
         <Location_Type></Location_Type>
      </Account>
   </ListOfAccount>
</SiebelMessage>

Response

The following is an example of a response:

<?xml version="1.0" encoding="UTF-8"?>
<SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical">
   <ListOfAccount>
      <Account>
         <Account_Status>Active</Account_Status>
         <Currency_Code>USD</Currency_Code>
         <Location_Type>Corporate Training Center</Location_Type>
      </Account>
   </ListOfAccount>
</SiebelMessage>

Example of Using InitLeaves on a Child Component

The following code snippets demonstrate using InitLeaves to retrieve pre-default values for a child component. In this example the parent component is Account and the child component is Business Address.

Request

The following is an example of a request:

<?xml version="1.0" encoding="UTF-8"?>
<SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical">
   <ListOfAccount>
      <Account>
         <Id>1-111112</Id>
         <ListOfBusiness_Address>
            <Business_Address>
               <Active_Status></Active_Status>
               <Main_Address_Flag></Main_Address_Flag>
            </Business_Address>
         </ListOfBusiness_Address>
      </Account>
   </ListOfAccount>
</SiebelMessage>

Response

The following is an example of a response:

<?xml version="1.0" encoding="UTF-8"?>
<SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical">
   <ListOfAccount>
      <Account>
         <ListOfBusiness_Address>
            <Business_Address>
               <Active_Status>Y</Active_Status>
               <Main_Address_Flag>Y</Main_Address_Flag>
            </Business_Address>
         </ListOfBusiness_Address>
      </Account>
   </ListOfAccount>
</SiebelMessage>

Integration Platform Technologies: Siebel Enterprise Application Integration Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.