The following naming guidelines are recommended when working with the IFS Aurena Framework.
Naming of elements:
Element Type | Guideline |
---|---|
Entityset | Should be the plural of the entity (e.g., ShopOrders, CustomerOrders, MaintenanceOrders, People, Companies). If the plural noun is the same as the singular noun, use the suffix ‘set’ (e.g. InvoiceSeries → InvoiceSeriesSet). |
Entity/Query | Use the entity name as the first choice if it is understandable. If not, use a meaningful name derived from the entity name (e.g., entity name = “QmanControlPlanManuf” → possible projection entity name = “ManufacturingControlPlan”). Avoid using prefixes\suffixes like LOV, Query, Entity, Qry etc for the entity name, for instance, do not name the entity CompanyLov and the corresponding entityset CompanyLovs. Instead try to use meaningful query names such as UserAllowedCompany(entity name) and UserAllowedCompanies (entityset name). |
Attribute | The name of the attribute should be singular and should explain the business purpose. Note: The attribute name in a datasource might need to be modified when exposing the attribute as an attribute in a projection entity. For example, Site instead of Contract, ExpiryDate instead of ExpDate). |
Reference | Should be suffixed with "Ref" (e.g. reference UnitcodeRef(Unitcode) to IsoUnit(UnitCode); ) |
Array | Should be plural. If the plural noun is the same as the singular noun, use the suffix “Array” (e.g. InvoiceSeries → InvoiceSeriesArray). |
Enumeration | Should contain the suffix "Enum". |
Structure | Should contain the suffix "Structure". |
Virtual | Should contain the suffix "Virtual". |
Singleton | Should contain the suffix "Singleton". |
Summary | Should contain the suffix "Summary". |
Naming of elements:
Element Type | Prefix\Suffix |
---|---|
Navigator entry | Should contain the suffix "NavEntry" |
Selector | Should contain the suffix "Selector" |
Dialog | Should contain the suffix "Dialog" |
Group | Should contain the suffix "Group" |
List | Should contain the suffix "List" |
Card | Should contain the suffix "Card" |
Command | Should contain the suffix "Command" |
Command Group | Should contain the suffix "CmdGroup" |
Advanced LOV List | Should contain the suffix "LovList" |
Chart | Should contain the suffix "Chart" |
Singleton | Should contain the suffix "Singleton" |
Variable | The suffix should be based on the datatype; Str (for String), Num (for Number), Dt (for Date) Bool (for Boolean). For example, "EmpNoStr", "IsValidBool". |
It is recommended to name fragment files in the following format in general:
<Fragment name\><Fragment type\>.fragment
Examples:
PersonDocumentList.fragment
EmployeeStatusAssistant.fragment
TransferEmployeeDataDialog.fragment
<LovViewName\>Selector.fragment
There are many different opinions about whether one projection should always have one client file connected to it, or if it can be many.
Below is a general recommendation that was followed by the MTG tool during conversion phase, but it is up to the product groups to decide how the projection and client files should be scoped and mapped.
IEE Navigator Text | Projection Name | Client Name | Page URL |
---|---|---|---|
Shop Order | ShopOrderHandling.projection | ShopOrder.client | Page/ShopOrder/Form |
Shop Orders | ShopOrdersHandling.projection | ShopOrders.client | page/ShopOrders/List |
Use the below coding syntax guidelines in the IFS Aurena model files.
Adding design history in the projection, client, and fragment files are to be decided by each product group. If a product group prefers to have a design history, follow the format given below. Note that, this section should be added to the top of the file.
//-------------------------------------------------------------------------------------- -- Date Sign History -- ---------- ------ --------------------------------------------------------------- -- 2018-03-19 EfGhse, Converted from tbwAbc using MTG Version: 1.15 -- 2018-03-16 AbCdlk , Added state indicator to the page. -- 2018-03-15 AbCdlk , Converted from frmAbc using MTG Version: 1.14 //------------------------------------------------------------------------------------