Add a control to pass the load parameter to Unwired Server. Define a screen that displays the results returned from the EIS.
- 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:
- Select an EditBox control and click in the control area.
- Name the EditBox DeptId.
- From the Properties view, select New key and name it DeptIdKey. Click OK.
- 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.
- Define a screen that displays the results of the findByParameter object query:
- From the Flow Design window, add a new Screen and name it Results. Select the Screen Design tab.
- Drag and drop a Listview control onto the control area.
- Select the Flow Design tab and double-click the Online Data screen to open it.
- 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.
- 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:
- From the Flow Design window, double-click the Results screen to display it in the Screen Design window.
- 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).
- Select the Cell tab, then click Add to add cell line 0.
- 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.
- Repeat steps 3 and 4 again for the remaining two attributes.
- 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.