Creating the database applications

The procedures for building the six database applications are described in these sections:

After building the database applications, you will create an event using the Event wizard to link the SOList application with the SOItemList application as shown in “Creating an event for SOList”.

StepsBuilding the SOList application

  1. From Mobile Web Studio, select Applications in the left pane, select New in the Application Manager Status menu, and click the New button to launch Application Builder.

  2. In the Application Builder, click the down arrow to the right of Add, and select Database Element.

  3. On the Database Element Definition window, make sure the Connection Cache option is selected.

    Enter:

    Click Next.

  4. Use the Define window to identify record 1 as the header row. In the Define Record Layout section, select Rows and click “Records contain labels.” Accept the 1 in “Labels are displayed in Record,” then click Next.

  5. In the Filter window, click Next.

  6. In the Configure Parameters window:

    1. Under Variable, select the box next to SalesRepID.

    2. Under Personalize, select Database Table from the drop-down list.

    3. Under Key, select XYZSalesRepID.

    4. Click Next.

  7. In the Preview window, in Element Name, enter SOList.

    Click Finish.

  8. In the Application Builder, click Save.

  9. On the Finish window, make these entries (otherwise accept the defaults):

    Content tab In Name, enter SOList.

    Roles tab Click Add All to add all roles to this application.

  10. Click Finish to save the application, and click OK to confirm.

  11. Click Close in the upper-right corner to close the Application Builder window.

  12. When you return to the Mobile Web Studio main window, select New from the Application Builder Status menu. The SOList application displays in the detail pane.

  13. In Mobile Web Studio, right-click the SOList application in the detail pane, and select Approval Status | Approved.

    Click OK.

  14. Select Approved from the Application Manager Status menu. You see the newly approved SOList application in the detail pane.

StepsBuilding the SOItemList application

  1. From Mobile Web Studio, select Applications in the left pane, select New in the Application Manager Status menu, and click the New button to launch Application Builder.

  2. In the Application Builder, click the down arrow to the right of Add, and select Database Element.

  3. On the Database Element Definition window, make sure the Connection Cache option is selected.

    Enter:

    Click Next.

  4. Use the Define window to identify record 1 as the header row. In the Define Record Layout section, select Rows and click “Records contain labels. Accept the 1 in the Labels are displayed in Record option, then click Next.

  5. In the Filter window, click Next.

  6. In the Configure Parameters window, under Variable select the checkbox next to SalesOrderID.

  7. In the Preview window, in Element Name, enter SOItemList.

    Click Finish.

  8. In the Application Builder, click Save.

  9. On the Finish window, make these entries (otherwise accept the defaults):

    Content tab In Name, enter SOItemList.

    Roles tab Click Add All to add all roles to this application.

  10. Click Finish to save the application, and click OK to confirm.

  11. Click Close in the upper-right corner to close the Application Builder window.

  12. When you return to the Mobile Web Studio main window, select New from the Application Builder Status menu. The SOItemList application displays in the detail pane.

  13. In Mobile Web Studio, right-click the SOItemList application in the detail pane, and select Approval Status | Approved.

    Click OK.

  14. Select Approved from the Application Manager Status menu. You see the newly approved SOItemList application in the detail pane.

StepsBuilding the CustomerList application

  1. From Mobile Web Studio, select Applications in the left pane, select New in the Application Manager Status menu, and click the New button to launch Application Builder.

  2. In the Application Builder, click the down arrow to the right of Add, and select Database Element.

  3. On the Database Element Definition window, make sure the Connection Cache option is selected.

    Enter:

    Click Next.

  4. Use the Define window to identify record 1 as the header row. In the Define Record Layout section, select Rows and click “Records contain labels.” Enter 1 in “Labels are displayed in Record,” then click Next.

  5. In the Filter window, click Next.

  6. In the Preview window, in Element Name, enter CustomerList.

    Click Finish.

  7. In the Application Builder, click Save.

  8. On the Finish window, make these entries (otherwise accept the defaults):

    Content tab In Name, enter CustomerList.

    Roles tab Click Add All to add all roles to this application.

  9. Click Finish to save the application, and click OK to confirm.

  10. Click Close in the upper-right corner to close the Application Builder window.

  11. When you return to the Mobile Web Studio main window, select New from the Application Builder Status menu. The CustomerList application displays in the detail pane.

  12. In Mobile Web Studio, right-click the CustomerList application in the detail pane, and select Approval Status | Approved.

    Click OK.

  13. Select Approved from the Application Manager Status menu. You see the newly approved CustomerList application in the detail pane.

StepsBuilding the ProductList application

  1. From Mobile Web Studio, select Applications in the left pane, select New in the Application Manager Status menu, and click the New button to launch Application Builder.

  2. In the Application Builder, click the down arrow to the right of Add, and select Database Element.

  3. On the Database Element Definition window, make sure the Connection Cache option is selected.

    Enter:

    Click Next.

  4. Use the Define window to identify record 1 as the header row. In the Define Record Layout section, select Rows and click “Records contain labels.” Enter 1 in “Labels are displayed in Record,” then click Next.

  5. In the Filter window, click Next.

  6. In the Preview window, in Element Name, enter ProductList.

    Click Finish.

  7. In the Application Builder, click Save.

  8. On the Finish window, make these entries (otherwise accept the defaults):

    Content tab In Name, enter ProductList.

    Roles tab Click Add All to add all roles to this application.

  9. Click Finish to save the application, and click OK to confirm.

  10. Click Close in the upper-right corner to close the Application Builder window.

  11. When you return to the Mobile Web Studio main window, select New from the Application Builder Status menu. The ProductList application displays in the detail pane.

  12. In Mobile Web Studio, right-click the ProductList application in the detail pane, and select Approval Status | Approved.

    Click OK.

  13. Select Approved from the Application Manager Status menu. You see the newly approved ProductList application in the detail pane.

StepsBuilding the SOCreate application

  1. From Mobile Web Studio, select Applications in the left pane, select New in the Application Manager Status menu, and click the New button to launch Application Builder.

  2. In the Application Builder, click the down arrow to the right of Add, and select Database Element.

  3. On the Database Element Definition window, make sure the Connection Cache option is selected.

    Enter:

    Click Next.

  4. Use the Define window to identify record 1 as the header row. In the Define Record Layout section, select Rows and click “Records contain labels.” Enter 1 in “Labels are displayed in Record option,” then click Next.

  5. In the Filter window, click Next.

  6. In the Configure Parameters window:

    1. Select all the parameters.

    2. For the SalesRepID parameter, under Personalize, select Database Table from the drop-down list.

    3. Under Key, select XYZSalesRepID.

    4. Change the Kind for all parameters to Update.

    5. Accept all values in the Default fields.

    6. Click Next.

  7. In the Preview window, in Element Name, enter SOCreate.

    Click Finish.

  8. In the Application Builder, click Save.

  9. On the Finish window, make these entries (otherwise accept the defaults):

    Content tab In Name, enter SOCreate.

    Roles tab Click Add All to add all roles to this application.

    Click OK.

  10. Click Close in the upper-right corner to close the Application Builder window.

  11. When you return to the Mobile Web Studio main window, select New from the Application Builder Status menu. The SOCreate application displays in the detail pane.

  12. In Mobile Web Studio, right-click the SOCreate application in the detail pane, and select Approval Status | Approved.

    Click OK.

  13. Select Approved from the Application Manager Status menu. You see the newly approved SOCreate application in the detail pane.

StepsBuilding the SOItemCreate application

  1. From Mobile Web Studio, select Applications in the left pane, select New in the Application Manager Status menu, and click the New button to launch Application Builder.

  2. In the Application Builder, click the down arrow to the right of Add, and select Database Element.

  3. On the Database Element Definition window, make sure the Connection Cache option is selected.

    Enter:

    Click Next.

  4. Use the Define window to identify record 1 as the header row. In the Define Record Layout section, select Rows and click “Records contain labels.” Enter 1 in “Labels are displayed in Record option,” then click Next.

  5. In the Filter window, click Next.

  6. In the Configure Parameters window:

    1. Select all the parameters.

    2. Change the Kind for all parameters to Update.

    3. Click Next.

  7. In the Preview window, in Element Name, enter SOItemCreate.

    Click Finish.

  8. In the Application Builder, click Save.

  9. On the Finish window, make these entries (otherwise accept the defaults):

    Content tab In Name, enter SOItemCreate.

    Roles tab Click Add All to add all roles to this application.

  10. Click Finish to save the application, and click OK to confirm.

  11. Click Close in the upper-right corner to close the Application Builder window.

  12. When you return to the Mobile Web Studio main window, select New from the Application Builder Status menu. The SOItemCreate application displays in the detail pane.

  13. In Mobile Web Studio, right-click the SOItemCreate application in the detail pane, and select Approval Status | Approved.

    Click OK.

  14. Select Approved from the Application Manager Status menu. You see the newly approved SOItemCreate application in the detail pane.