CARL Source
Determining the value of a control
Customization > Customization mode > Details on controls > Value of controls > Determining the value of a control

The value of a control is built from the element displayed in the form.
The element is described in the Dictionary where its attributes are listed.

The value in the control can simply be an attribute of the object, such as:

#{formAnimator.bean. brand } if "brand" is an attribute of the displayed object.

But it can also be an indirect attribute of the object, which will be determined by referring to the objects in the dictionary for which the entity is also an object.

 

Example: order address

Let us assume that we wish to display the order address on the [General] tab of the order:

  1. In the dictionary, open the PO object (PO) on the [Attributes] tab.
    The orderAddress attribute refers to the order address -> #{formAnimator.bean.orderAddress}
    The entity associated with this attribute is POADDRESS.
  1. Open the POADDRESS object (PO address) by clicking on the infozone , open the [Attributes] tab.
    The address attribute refers to the address component -> #{formAnimator.bean.orderAddress.address}
    The entity associated with this attribute is ADDRESS.
  1. Open the ADDRESS object (Address) by clicking on the infozone , open the [Attributes] tab.
    Here, we find the attributes address1, address2, address3, zipCode, etc.
    The entity associated with these attributes is STRING -> Impossible to go further.
    → The values of the controls are:
    #{formAnimator.bean.orderAddress.address.address1}
    #{formAnimator.bean.orderAddress.address.address2}
    #{formAnimator.bean.orderAddress.address.address3}
    #{formAnimator.bean.orderAddress.address.zipCode}
    and so on.

 

Special case of contact details

The contact details are all PHONE objects.
The phoneNum attribute must be preceded by the number type:

For example, we thus obtain:

#{formAnimator.bean.orderContact.phones.HOME_PHONE.phoneNum} to designate the telephone number of the order contact.


#{formAnimator.bean.contactPo.phones.HOME_PHONE.phoneNum} or #{formAnimator.bean.contactPoPhoneHome} to designate the telephone number of the supplier's order contact, with the second version only being usable for display.