Oracle CRM On Demand Desktop Administration Guide > Additional Code in the Customization Example >
XML Code That Creates Cells
To define part of the layout of the form, you add the following code to the forms_12.xml file: <stack layout="horz" spacing="3"> <cell size="5" attraction="far"></cell> <!-- left side captions --> <cell size="90"> <stack spacing="5" layout="vert" padding="4"> <cell size="21"> <static id="lbl_account" tab_order="25"> <text>#lbl_account</text> </static> </cell> <cell size="21"> <static id="lbl_opportunity" tab_order="28"> <text>#lbl_opportunity</text> </static> </cell> <cell size="21"> <static id="lbl_lead" tab_order="31"> <text>#lbl_lead</text> </static> </cell> </stack> </cell> <!-- left side fields --> <cell> <stack layout="vert" spacing="5"> <cell size="21"> <stack layout="horz" spacing="3"> <cell> <autocomplete id="account_id" tab_order="26"> <field>AccountId</field> <source type="Account" format=":[:(AccountName):]"></source> </autocomplete> </cell> <cell size="21" attraction="far"> <button id="btn_account_select" image="lookup_button" tab_order="27"> <text>...</text> </button> </cell> </stack> </cell> <cell size="21"> <stack layout="horz" spacing="3"> <cell> <scriptable_autocomplete id="opportunity_id" tab_order="29"> <!--field>OpportunityId</field> <source type="Opportunity" format=":[:(OpportunityName):]"></source--> </scriptable_autocomplete> </cell> <cell size="21" attraction="far"> <button id="btn_opportunity_select" image="lookup_button" tab_order="30"> <text>...</text> </button> </cell> </stack> </cell> <cell size="21"> <stack layout="horz" spacing="3"> <cell> <scriptable_autocomplete id="lead_id" tab_order="32"> <!--field>LeadId</field> <source type="Lead" format=":[:(LeadFullName):]"></source--> </scriptable_autocomplete> </cell> <cell size="21" attraction="far"> <button id="btn_lead_select" image="lookup_button" tab_order="33"> <text>...</text> </button> </cell> </stack> </cell> </stack> </cell> </stack>
Related Topics
Process of Customizing Objects in Oracle CRM On Demand Desktop
|