Skip to content

MobileCRM.Localization.getComponentLabel

rescocrm edited this page May 15, 2023 · 9 revisions

Gets the display string for the passed entity and component (view, form) id.

Arguments

Argument Type Description
entityName String The entity logical name.
componentType String The component type. (View, DetailView).
viewName String The component id

This example demonstrates how to get the localized label for certain view for Account entity.

MobileCRM.Localization.initialize(startPointFn, MobileCRM.bridge.alert);
function startPointFn(localization) {
	var viewLabel = MobileCRM.Localization.getComponentLabel("account", "View", "Custom View");
	MobileCRM.bridge.alert(viewLabel);
}

Clone this wiki locally