This example explains the steps you could take to display information about a requisition (based on the Requisition (RQ10) form):
- In Design Studio, select Form Designer.
- Select the productline, the system code (RQ), and the form (RQ10.1 Requisition).
- 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/
- Select Portal Designer.
- Create a formlet and set its name to pfrq10.
- Set the source of the formlet to pfrq10_form.xml by clicking on the ... button next to the name.
- Select the Infor OS Portal 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 Infor OS Portal page data source and save the changes.
- From design view in the Page Designer, set the name of the Infor OS Portal page. The default is portalpage.
- Select Script View.
- In the Script window, select the name of the Infor OS Portal page (default name is portalpage) in the Object field and Oninit in the Events field.
-
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 Infor OS Portal page as pfrq10.xml. The Infor OS Portal page is saved in
/
your Infor OS Portal location/content/pages/ - Design your process in Infor Process Designer. Specify the file name of your Infor OS Portal page (pfrq10.xml) in the File Id field on the UserAction Properties window.