2024 December Release

COOSYSTEM@1.1:attrcontroloptionsexpr Permanent link for this heading

Expression for Calculating the Control Options

This expression is evaluated to determine additional options for the control used to present a property.
Please refer to the white paper 'Fabasoft Folio Controls' for a description of possible options for specific controls.
If the expression returns null or throws an error, the default behavior applies, i.e control arguments specified as parameters to the control or the control arguments specified at the attribute using attrrepresentation.

Explanation:
Defines an app.ducx expression computes the control options used to display the property (see also attrcontroloptionsexpr).

string[] COOSYSTEM@1.1:attrcontroloptionsexpr readonly(inst)(
  object ::root,
  AttributeDefinition ::attribute,
  boolean ::isvalue,
  boolean ::isedit,
  boolean ::iseditcommon,
  boolean ::isdashboard,
  boolean ::issingleattribute,
  Action ::context)

Local Scope: dictionary
Global Scope: dictionary
Returns: dictionary

Name

Description

::root

contains the object the expression is evaluated for. ::root is identical to cooobj.

::attribute

contains the property the expression is evaluated for.

::isvalue

contains true if the form is used for displaying values (edit mode or read-only mode) opposed to query mode (see valuetype in ApplicationView).

::isedit

contains true if the form is in edit mode opposed to read-only mode (see edittype in ApplicationView). ::isedit is only valid if ::isvalue is true.

::iseditcommon

contains true if the form is used to edit common properties of multiple objects. ::iseditcommon is only valid if ::isvalue is true. In this case ::root/cooobj refer to the first object of the selection.

::isdashboard

contains true if the property is displayed in a dashboard.

::issingleattribute

contains true if the expression is evaluated to determine whether the property is displayed in single attribute mode, i. e. when all other properties of a form page are hidden. Single attribute mode is used to edit a value like an aggregate or a list in a form initialized by editing in a cell (F2) or when showing a zoomed list by selecting "Show detail" on an overview page.

::context