Use binding expressions
Use binding expressions
Technologies > User Interface Add-Ins > Assemblies with Multiple Panes > Find-Manage with Conditional Expressions
Binding expressions may be used to set button and panel titles, conditionally hide or disable action buttons, form fields, or tab pages, or set the initial values of form fields.
The
user
object contains properties and nested objects that describe the current user account, role, and employee information. The following example sets a default form field value and custom title:
<field name="phone" value="${user.employee.phone}">
<title>${user.name} Phone</title>
The
panel
object provides access to values displayed in the panel (form, grid, etc) as well as to underlying records. The following example uses the record's status to determine whether a button should be visible:
<action type="javaScript" onclick="approveProject" hidden="${record['project.status'] == 'Created'}">
This example allows the user to edit the work request id only if the record is a new record:
<field name="wr_id" readOnly="${!panel.newRecord}"/>
Hide a tab according to user criteria:
<tab name="page2" file="ab-ex-wizard-find-page2.axvw" hidden="${user.isMemberOfGroup('FIM')}">
Display task information:
<title>Task Information: activity = ${view.taskInfo.activityId}, task = ${view.taskInfo.taskId}</title>
For further discussion of data binding,
Conditionally display form elements Data Binding Overview