ProApp Designer - Release 14 (Package 27)

Simple Controls

Following API works with all simple controls like Text, List, Checkbox, RichText, Item and Items.

getControlValue

Gets the value of the simple control based on its name.
var controlValue = appStudioWizard.getControlValue(controlName);

setControlValue

Sets value for the simple control based on its name.
appStudioWizard.setControlValue(controlName, controlValue);

setSelectFilterExpression

This API sets a default filter expression inside the SelectItem flyout when it opens for selecting an item. It is supported for Item and Items controls. Additionally, an optional boolean parameter, enforce, can be passed to hide the configured filter expression from the user.

// creating a custom expression string

let expressionString = “classification EqualTo Item AND id NotEqualTo 8D58C2D8DC1649279E64CCF5BD2FF7A7";

// Refer to filterCollectionItems section on how to build your expression string
appStudioWizard.setSelectFilterExpression(controlName, expressionString, enforce);

setControlLabel

Control label can be updated, given its control name & label value.
appStudioWizard.setControlLabel(controlName, label);