Adding a Label, a Button, and a Selector Control
This task is a step in Process of Modifying the Customization Package to Add an MVG.
In this topic, you add a label, a button, and a selector control.
To add a label, a button, and a selector control
Use an XML editor to open the forms_xx.xml file.
Add a label for the MVG:
Locate the following section:
right side captions
Insert the following code immediately under the code that defines the Probability label:
<cell size="22"> <static id="0x20014" tab_order="166"> <text>#lbl_channel_partner</text> </static> </cell>
Add the button and primary selector control:
- Locate the following section:
right side fields
Add the following code immediately under the code that defines the Probability control:
<cell size="22"> <stack layout="horz"> <cell> <mvg_primary_selector id="channel_partner_mvg"> <source type="Opportunity.Channel_Partner.Association" left_id="OpportunityId" item_value="ChannelPartnerId" display_format=":[:(PartnerName):]"></source> <field>Primary Partner Id</field> </mvg_primary_selector> | </cell> <cell size="5"> </cell>cell size="22"> <button id="btn_mvgChannelPartner"> <text>...</text> </button> </cell> </stack> </cell>
Make sure you specify the Id for the button and the Id for the primary selector in the same way that you specified them in the script.
- Locate the following section:
Increase the size of the cell that contains the label, the button, and the selector control:
- Locate the following section:
Category bar
Locate the fifth cell that is included in the Category bar section.
Change the code of the fifth cell to the following code:
<cell size="153">
- Locate the following section:
Save and then close the forms_xx.xml file.