redacted redacted redacted
As a modeler, I cannot make the Drop Down Selection readonly. The only readonly Binding that I can use is the Table List.
That being said, the recommendation for Readonly To-1 Bindings in CDMs is to put the readonly controls directly in A Control Grid on the Screen (see here).
If you want to hide these Controls if no Relationship Link has been made you can use the t_docRef Field (see here):
- In the CDM add a String Field, t_docRef, to the Group that represents the Relationship Link that you are evaluating
- Add a Boolean Field to the CDM but make sure it is outside the Group that represents the Relationship Link as you will use this for the Dependency
- Add a Computation Rule to set the Boolean value depending on whether t_docRef is filled or not
- Add the Dependent Group for the Group that represents the Relationship Link with the Computed Boolean as the trigger.
Since 2024.06-ext2 the read-only mode for individual Bindings can be activated by a developer (see Documentation > Developer > Relationship Engine > API Documentation, look for the readonly prop).
Moreover, if the whole form is set to read-only, the Bindings are rendered accordingly as well. The same form can thus be used in an editable and a read-only context. Whether the form is read-only or not, can be defined when the activity is initiated.
redacted redacted redacted