Defining the Control that Contains the findByParameter Object Query Parameter

Add a control to pass the load parameter to Unwired Server. Define a screen that displays the results returned from the EIS.

  1. Define a control that passes the load parameter to Unwired Server from the screen (named Online Data) that contains the menu item (named Find) that invokes the findByParameter object query:
    1. Select an EditBox control and click in the control area.
    2. Name the EditBox DeptId.
    3. From the Properties view, select New key and name it DeptIdKey. Click OK.
  2. Select the Find menu item, and from the Parameter Mappings tab, map parameters to input keys defined for the controls. For example, map the deptIDLP parameter to the DeptIdKey key.
  3. Define a screen that displays the results of the findByParameter object query:
    1. From the Flow Design window, add a new Screen and name it Results. Select the Screen Design tab.
    2. Drag and drop a Listview control onto the control area.
    3. Select the Flow Design tab and double-click the Online Data screen to open it.
    4. Select the Find menu item, and in the Properties view, specify Results as the success screen.
      The Online Data screen now sends successful results returned by the EIS to the Results screen. The Flow Design window indicates the connection between the screens.

  4. Configure the Results screen to display the results. In this example, the Emp MBO, contains three attributes: Id, empName, and empDeptId. Create a Listview with a cell for each attribute to display the results returned from the EIS as a list:
    1. From the Flow Design window, double-click the Results screen to display it in the Screen Design window.
    2. Select the control area, select the General tab in the Properties view, and for the Input Data Binding Key select <MBOName> (where MBOName is the name of the MBO).
    3. Select the Cell tab, then click Add to add cell line 0.
    4. Select Add in the "Fields for cell line 0" section, then select the Emp_id_attribKey key. Click OK.
      This maps cell line 0 with the id attribute for the Emp MBO results returned by the object query.
    5. Repeat steps 3 and 4 again for the remaining two attributes.
  5. Select the Problems view, and verify there are no errors.
You now have a deployable workflow package that passes the DeptID value to the findByParameter object query which returns matching EIS results and displays them in the Results screen.