Question
ibm
CN
Last activity: 5 Jun 2023 6:22 EDT
How to set a text input field editable while it's parent section is readonly
Dear there,
here is my source level relationship:
1) in section A, i add "Embedded Section" section B in it
2) in section B, i add a "Dynamic Layout" and put a text input UI control(name it TxtInput) into the Dynamic Layout
you can refer attachment "info.png" for better understanding.
i'm very confused on following 2 different settings:
Setting A:
A1) set "Presentation->Edit options->Read Only(When Rule)" of Embedded Section(references to Section B) to a When rule "Never"
A2) set the "Presentation->Edit options(Condition for read-only)" of text input UI control "TxtInput" in section B to a When rule which always return True.
The result is that the input text indeed can only readonly.
Setting B:
A1) set "Presentation->Edit options->Read Only(When Rule)" of Embedded Section(references to Section B) to a When rule "Always"
A2) set the "Presentation->Edit options(Condition for read-only)" of text input UI control "TxtInput" in section B to a When rule which always return False.
My supposed result is that the Text input should be editable, but the result is readonly.
here is my question:
why in setting A, the when rule on input text control will work, but in setting B, the when rule on the text input control does not work?