| Creating a modelTo create your own model, perform these tasks: - Duplicate the standard model.
- Add object types to the new model.
- Add actions to the object types.
- If the object consists of multiple tables, add table relations
to the object type.
- Add mappings to the object type.
- Validate the model.
See the following sections. Upon completion of this procedure, you must deploy the model.
See Deploying a model. Nota When you customize a model, you may also have to modify
scripts and libraries. See the Infor ES Programmer's Guide. Duplicating the standard model To duplicate the standard model: - Start the Modelli (ttocm0101m000) session.
- Select the standard model and click Duplicate.
- Specify the model code and description for the new
model.
- Save the new model.
Adding object types to the new model You can add multiple object types to the model. To add an object type to the new model: - In the Modelli (ttocm0101m000) session, select the new model.
- On the Visualizzazioni, Riferimenti o Azioni menu, select Object Types. The Tipi di oggetto (ttocm0102m000) session is started.
- Add an object type. See the session help.
- Save the new object type.
Adding actions to the object types You can add one or more actions to each object type. To add an action an object type: - In the Tipi di oggetto (ttocm0102m000) session, navigate to the object type.
- On the Actions tab, click New Action.
- Add an action. See the session help.
- Save the new action.
Adding table relations to the object types If the object contains data from multiple tables, you must
specify table relations between the tables used in the object. For example, the sales order object is based on the Sales Orders
(tdsls400) and Sales Order Lines (tdsls401) tables. An order header without
lines is useless. Therefore, for the sales order object type, you must specify
a relation from the Sales Order (orno) field in the tdsls401 table to the
tdsls400 table. To add a table relation to an object type: - In the Tipi di oggetto (ttocm0102m000) session, navigate to the object type.
- On the Table Relations tab, click New Table Relation.
- Add a table relation. See the session help.
- Save the new table relation.
Adding mappings to the object types You can add one or more mappings to each object type. To add a mapping to an object type: - In the Tipi di oggetto (ttocm0102m000) session, navigate to the object type.
- On the Mappings tab, click New Mapping.
- Add a mapping. See the session help.
- Save the new mapping.
Validating the model To validate the model: - In the Modelli (ttocm0101m000) session, select the new model.
- On the Visualizzazioni, Riferimenti o Azioni menu, select Convalida. A message, indicating whether the
validation was successful, is displayed.
- If errors occurred, view the log file and solve the
problem.
| |