Custom Entity¶
Making a Custom Entity Timezone Aware
Custom Entities are created using Entity Configurations page in IFS Cloud.
Custom entities are suitable to use as lookup values for custom attributes, or to store arbitrary in flat "tables". They are not suitable for creating complex structures (e.g. hierarchies of master-child-grandchild etc.) because they do not have truly user-defined key columns, but instead rely on the unique ROWKEY column. Alternate Keys can be defined but they exist only in the metadata (so they do not enforce restrictions at the oracle table level), and null is accepted as a value in alternate-key columns. For complex data structures it may be better to recommend a customization.
Create Custom Entity¶
In IFS Cloud, navigate to Solution Manager > Configuration > Entity Configurations page to create a custom entity.
During the Custom Entity creation, you have the option to create a default Projection specific to the new Custom Entity. Once created, this Projection is not allowed to be modified. It is listed with type Generated Projection (Custom Entity)under Projection Configurations.
Making a Custom Entity Timezone Aware¶
If you wish to create your custom entity with timezone awareness, you can use the Time Zone Default Setting drop down menu in General section.
Value selection for Time Zone Default Settings drop down:
- None : Custom entity will not be annotated as timezone aware.
- Server : Custom entity will be annotated as timezone aware.
Note:
- If you selected None in Time Zone Default Settings drop down, custom entity will work according to browser timezone. However, since the entity is not timezone aware, using it within any IFS Cloud Web page will not support timezone conversion features.
- Annotating the Custom Entity as timezone aware ensures that all its attributes inherit timezone awareness.
- Consider annotating entities as timezone aware as much as possible, depending on your application's requirements. This practice helps minimize potential confusion when handling date/time values.