Component alias

Description

If you specify <DefaultAlias> a default alias will be used. If you specify an explicit alias, that value (prefixed with the alias of this component) will be used.

Discussion

An alias is required for all embedded objects. Alpha Anywhere will automatically generate an alias for you if a specific alias is not provided.

If you plan to call any functions on the embedded object, it is recommended that you specify an explicit alias. With an explicit alias, you will be able to access methods and properties for the embedded object. The following JavaScript placeholders and UX component methods use the alias:

For example, if an embedded Grid component has been given the alias "myGrid", you could call the component's refresh() method using the {dialog.EmbeddedGrid_[GridAlias]} as follows:

{dialog.EmbeddedGrid_myGrid}.refresh();

For more information about placeholders, see Aliases & Placeholders.

See Also