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

InitLeaves Method


Use InitLeaves to retrieve pre-default values. When InitLeaves is invoked 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 31 lists the method arguments used with the InitLeaves Method. For a complete description of the method arguments, see EAI UI Data Adapter Method Arguments.

Table 31. Method Arguments for InitLeaves
Method Argument
Input or Output

BusinessObjectCacheSize

Input

SiebelMessage

Input or Output

LOVLanguageMode

Input

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

<?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

<?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

<?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

<?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 © 2008, Oracle and/or its affiliates. All rights reserved. Legal Notices.