...
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. If you can't be sure, you need to use the loadEntity method and provide a callback, which turns the operation into an asynchronous operation.
//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; |
...