Step 1 – Add Attributes to Client Business Object
- Go to the Client business object and add a new attribute Age of type Number
- Save the Attribute
- Deploy you solution
Step 2 – Changing the Modify, Detail, and New Client Screens
- Add an Age NumberField to the Modify and New Client screens; make sure the field is bound to the attribute in the storeClients store
In the Modify and New Client screens also change the Department field to a Combobox by adding the following code in place of the Textfield
<ext:ComboBox runat="server" HiddenName="Department1_Value" FieldLabel="Department" AutoRender="False" ID="Department1"> <Template ID="XTemplate1" EnableViewState="False"></Template> <Items> <ext:ListItem Text="Professional Services" Value="Professional Services"></ext:ListItem> <ext:ListItem Text="Solution Delivery" Value="Solution Delivery"></ext:ListItem> <ext:ListItem Text="Engineering" Value="Engineering"></ext:ListItem> <ext:ListItem Text="Quality Assurance" Value="Quality Assurance"></ext:ListItem> </Items> </ext:ComboBox>
- In storeClients make sure all the new fields are connected to attributes of business object Client.
- To the Detail screen, simply add an Age label and also tie it back to the store.
- The altered pages should look thus:
- Make sure the pages are saved and deploy the solutionStep 2 – Changing the Modify, Detail, and New Client Screens
- Add an Age NumberField to the Modify and New Clien