PredefinedValue function usage specifics

This article describes the standards that apply to PredefinedValue function usage. All of the listed recommendations are mandatory unless noted otherwise.

The PredefinedValue global context function is intended for getting references to predefined items of catalogs, charts of characteristic types, or charts of calculation types, enumeration values, or business process route points by their string names.

Example:

BusinessIndividual = PredefinedValue("Enum.BusinessIndividual.Business");

The main purpose of this function is getting predefined values in the script that is executed in the thin client or web client (where objects like CatalogManager.<Catalog name> and EnumManager<Enumeration name> are not available).

Incorrect:

If String(BusinessIndividual) = "Business" Then

Correct:

If BusinessIndividual = PredefinedValue("Enum.BusinessIndividual.Business") Then
Next page: Using compilation directives


See also:

Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.