...
- Does the record have a Display Culture String set? If yes, retrieve the Local String value for that Culture String, based on the current User's Culture. The Base String will be the Display Name (displayName) value. In the rare case where Display Name is not set, the Name (name) value will be used as the Base String. If no, proceed to step 2.
- If there is no Display Culture String set, use the Display Name value (displayName).
- If there is no Display Name set, use the Name value (name).
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
//If you already know the Entity metadata has been loaded, which is assured in Form Template Layout controls or in a client-side Generic Entity plug-in, you can use findByName, which is a synchronous call. //Get the Persons Entity metadata object and store it in personsMD. var personsMD = Aptify.framework.metaData.entities.findByName('Persons'); var personsLocalizedDisplayName = personsMD.displayNameLocalized; //Get the NameWCompany Entity Field metadata object from the Persons Entity Metadata. var nameWCompanyFieldMD = personsMD.fields.findByName('NameWCompany'); var nameWCompanyLocalizedDisplayName = nameWCompanyFieldMD.displayNameLocalized; |
Get Localized Entity Display Name (Alternate)
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
//Return the localized display name for the Persons Entity and store it in sPersonsDisplayName. var sPersonsDisplayName = Aptify.framework.metaData.entities.getDisplayName('Persons'); |
...