Creating custom templates for ListPanel controls in Infor M3 only

This topic describes how you can create a template for producing lists for Infor M3 ListPanel mashups. You might use this feature if your mashup is intended to generate highly formatted output.

For example, suppose you wanted to create a list of employees that looked similar to this image:

Using a custom template would help you to format the information about each employee the way you want to see it.

Custom templates have the following requirements and limitations:

  • The list is displayed as a single column with no header and no position fields.
  • The bookmark used to start the ListPanel must always set correct values for the position fields to get a consistent behavior. Blank is allowed.
  • The list context menu supports options, related options, links and copy to clipboard. All other menu items are removed.
  • No personalizations are applied to the list. Any formatting must be done in the template.
  1. To use a custom template with a ListPanel, on the ListPanel Settings dialog box, select Template for the List Style option.
  2. In Templates indexes/names, you can specify a comma-separated list of zero-based column indexes or column names or a combination.

    For example, ITNO,ITDS,STAT or 0,1,4,7.

    Click Generate when you are ready to begin creating the template. A dialog box for specifying formatting the index data appears.

  3. On the Generate template dialog box, specify how you want your list items to look.

    You will be prompted to make sure you want to save the template when you click OK. This is because only one template can be stored in the ItemTemplate location so your new template will overwrite an existing, if one existed.

  4. If you need to edit formatting of a ListPanel that has been added through a template, you can do so by configuring the XAML code in the mashup.