on 02-16-2016 9:55 AM
A.S.: Yes, I have searched through the forum in vain
My requirement:
Within a flowed subform I have:
- radiobutton with values Yes/No.
- a flowed subform containing:
- a textfield element
When the value Yes is selected, the textfield should be available for input.. in the other case it should disappear.
I am however unable to set the field hidden.. I can toggle editable or not.
The code I have:
if (this.rawValue == "X"){
this.resolveNode("parent.subform.textfield").access = "open";
else{
this.resolveNode("parent.subform.textfield").access = "readOnly";
}
This works in the layout:ready event to put the field editable or non editable according to the radiobox selected. (the event is on the radiobutton)
The code I would think I need to hide the field would be as follows:
if (this.rawValue == "X"){
this.resolveNode("parent.subform.textfield").presence = "visible";;
else{
this.resolveNode("parent.subform.textfield").precense = "hidden";
}
However this does not work. I have also tried to place it in the change event... still does not work.
I have also tried with absolute references.
So....
1. Is my suggested code faulty?
2. Should I place it in yet another event?
3. Is what I want not possible?
4. Should I just buy valium and go to sleep?
Kind regards and cuddles to whomever solves this...
This blog gives you a hint that the PDF needs to be rendered as a dynamic PDF form:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is actually interactive vs. (flat) print PDF and static vs dynamic.
interactive allows you to make changes, i.e. form fields are interactive.
static means no re-layouting of the form is necessary and hence dynamic means re-layouting might be necessary.
All frameworks and APIs have "dynamic" as a flag an you'll need to turn this on if you are dynamically showing/hiding form fields. In an ABAP print program use for example: gs_docparams-dynamic = abap_true.
In Designer you can use preview and select in the preview properties (Form Properties...) "dynamic XML form".
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.