This example explains the steps you could take to display information about a requisition (based on the Requisition (RQ10) form):

  1. In Design Studio, select Form Designer.
  2. Select the productline, the system code (RQ), and the form (RQ10.1 Requisition).
  3. Choose Quick Paint. Modify the form, set the initial FC to i for inquire in Forms Designer and save it as pfrq10_form.xml. The form is saved in /your Infor OS Portal location/content/forms/
  4. Select Portal Designer.
  5. Create a formlet and set its name to pfrq10.
  6. Set the source of the formlet to pfrq10_form.xml by clicking on the ... button next to the name.
  7. Select the page in design view and click the Datamap button in the property area. Move the formlet key fields [RQH-REQUESTER & RQH.REQ-NUMBER] into the page data source and save the changes.
  8. From design view in the Page Designer, set the name of the page. The default is portalpage.
  9. Select Script View.
  10. In the Script window, select the name of the page (default name is portalpage) in the Object field and Oninit in the Events field.
  11. Enter the following code to access workunit variable to populate values in the form, in this example, key variables are RQH-REQUESTER and RQH-REQ-NUMBER:
    Function portalpage_OnInit ()
    {
    pStorage = new PortalStorage ()
    pStorage.addElement("RQH-REQUESTER", page.parameters.RQH_REQUESTER)
    pStorage.addElement("RQH-REQ-NUMBER",page.parameters.RQH_REQ_NUMBER)
    page.setobjectvalues("pfrq10",pStorage)
    }

    Save the page as pfrq10.xml. The page is saved in

    / your Infor OS Portal location/content/pages/

  12. Design your process in Infor Process Designer. Specify the file name of your page (pfrq10.xml) in the File Id field on the UserAction Properties window.