Code generation
Many events within Infor LN will result in sending context messages to the Infor OS Portal context widgets or to the Infor Ming.le context applications. To reduce the performance impact, the IIM is compiled to object code. For each session that can send context messages in certain events (selection of a record, change of a field, getting focus) a library is generated. This library can quickly compose the correct context message at runtime, without reading the model from the database. Those generated libraries will be part of the standard product, and can be regenerated by customers if they change the IIM.
The library generation uses this information to compose the libraries:
- Session model context messages and mappings, including the inherited ones
- Session model hooks
- Main table model generic hooks (if session has a main table)
- Referenced tables generic hooks (only for tables of which context messages are inherited)
- Message template from the Context Messages Configuration file
The code of the generated library is the same as the session code,
suffixed by “i
". For example, for session
tcmcs0145m000
the InContext Library is
tcmcs0145m000i
.