Modifying the form

  1. Modify a form in the Form Designer of Design Studio. For example, add or remove fields from the form. The form is saved in /your Ming.le location/content/forms/.

    For specific instructions on using the Form Designer, see the Infor Lawson Design Studio User Guide.

  2. Create a page and add a formlet object to it in the Portal Designer of Design Studio. Set the source property of the formlet by selecting an existing form definition in /your Ming.le location/content/forms/.
  3. Open the Datamap dialog and move the key fields of the form to the Ming.le page's data source.
  4. Use the script interface to access workunit variables or details to populate values in the formlet object.
    • Select Script at the bottom of the Designer.

    • Choose the Ming.le page object in the Object field and Oninit in the Events field. The Ming.le page default ID is portalpage, but it can be set to any value by the page author.

    • Enter code to set key values. All the variables from Workunit Variables and details from Workunit are available for you to use in the Ming.le page. You access workunit variables and details from the Ming.le using page.paramenters.variablename. (See the example below.)

      The Ming.le page is saved in / your Ming.le location /content/forms/

      For specific instructions on using the Designer and script functionality, see the Lawson Design Studio User Guide.

    Note: 

    You can use the same .xml file for multiple activity nodes, or you can create and reference as many .xml files as you need.

  5. When you define the User Action or HRTM activity nodes in your process, specify your unique .xml file names in the File Id fields. Be sure to include the file extension in the File Id field.