Code segments

  1. In the Create Rule form, specify the code segments that support automatic association of a template with an object.
  2. Specify OBJECTTEMPLATEGET1 for the Enum Query. Or your own query formed similar to these
    In this example, the query is ITEMTEMPLATEGET1.
    For a specification, the query is SPECTEMPLATEGET1.
    For a formula, the query is FORMULATEMPLATEGET1.
    1214CreateRuleSegmentsTemplate

The user can select the template when the user creates a new object.

When the object is created from a set template, the parameters from the template are assigned to the object. The new object is assigned to the template’s set. The description is copied from the template and should be changed.

You can use objPropertySet in the create rule. This function can be used to assign values to parameters in an object that is assigned to a template. In this case, use the VALUE.TPALL parameter instead of VALUE.TP1.

See the Infor PLM for Process Scripting Administration Guide for more information.