Step 1 – Create a new page
- Click on Presentations and then Pages.
- Click New Page
- From Categories, select General and from Templates select Blank; name the page Navigation New; click Save.
- On save you will be redirected to the detail page of the Navigation New page, from here launch the Page Builder by clicking on Page Builder
- In the Page Builder, find the DOM tab and click on PageManager
- Click on Settings
- Click on the Resources tab and click Add
- Set Name to NavLib, type to Ready
- Click on the magnifying glass on the far right of the Uri and load the Navigation Library by clicking on the green checkmark
- Click Save and click Save again in the Configuration window
- In Data Sources click the Add button and add a Unified Store
- Set its ID to storeNew and click Create
- Make sure storeNew is selected and in the Properties panel at the right of the screen, click on Settings
- Set Data Source Type to Business Objects
- Set Data Source to Client
- Check the Create checkbox
- Click on the Create tab and click on Properties
Into the Success textbox paste the following code:
var callbackParams = { Id: args.data.DATA.root_Client.Journal.Item.Key, FirstName: FirstName1.getValue() }; EcxPageNav.Util.executeParentCallback(callbackParams); EcxPageNav.Util.closeMe();
- Click Save
- In the Sections tab in the Page Builder, make sure pnMain is selected
- Find Layout in Properties and change it from fit to form, set its padding to 20 and click Save at the bottom of the Properties panel.
- You will now add elements to to pnMain
- Add a Form Panel called pnGeneralInfo, title General Information; set its border to false
- To pnGeneralInfo add a panel called pnTopColumns1 and set its border to False; set its layout to column and its height to 90
- Add two FormPanels to pnTopColumns, one called pnLeft1 and one called pnRight1, and set their ColumnWidths each to .5, and their borders to false
- Double click on pnLeft1 to see its design surface
- In Data Sources click on storeNew and find all the storeNew fields in the Toolbox
- Drag FirstName, LastName, and Age into pnLeft1; make sure text is left blank and click Create
- Follow the same steps in pnRight1 except add Email and MobilePhone
- In the Sections tab, click on pnGeneralInfo and find pnGeneralInfoon the design surface
- Again, click on storeNew in Data Sources and drag the MailingAddress field from the Toolbox onto pnGeneralInfo
- Change its control type from TextField to TextArea; make sure Text is set to blank; in Properties, set its width to 400
- Click Create
- To pnGeneralInfo add a panel called pnTopColumns1 and set its border to False; set its layout to column and its height to 90
- Create a similar panel for Department Information for the following final result when viewed in Preview:
- To create the Department combobox paste the following text into the Source tab
<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>
- Click Apply Source Code
- Add a Form Panel called pnGeneralInfo, title General Information; set its border to false
- Make sure pnMain is selected and click on TopBar in the Properties panel
- Add a button called Save with Icon Accept; click Apply
- In the Listeners tab, select Click and from Fn select PageManager.ruleAction_execute_storeNew_Create
- Click Apply and click Save
- Click on Save Page at the top left of the screen, and click Ok to the Page Was Saved notification