on 2008 May 08 1:39 PM
I am currently working with NWDS 7.14 and Life Cycle Desiger 7.1. My Requirement is the following: dependent on a user input (e.g. selected checkbox) i want to switch the attus of certain ui elements to "invisble".According to some previous posts, I use the follwing JS-code to achieve the described functionality:
var check = CheckBox1.rawValue;
if (check== '1') {
Subform3.presence="visble";
Subform3.presence="hidden";
}
(the code lies in the exit event of the checkbox)
unfortunately, nothing happens, the code does not work.
Could anyone please provide help?
Hi Alexander,
ACF is a pluggin for UI elements like buttons, textfields, radiobuttons etc. We have to install ACF in order to make these fields work correctly. If you are writing the same code as you have mentioned in the post then change it as following:
1. if you want to show the subform.
var check = CheckBox1.rawValue;
if (check== '1') {
Subform3.presence="visible";
}
2. if you want to hide the subform.
var check = CheckBox1.rawValue;
if (check== '1') {
Subform3.presence="hidden";
}
I hope it will work.
Regards,
Vaibhav Tiwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still no solution.
The issue described above does not neither am I able to foll a dropdown dynamically as described in other threads.
Could Internet Explorer 7.0 be an issue? Should I use Explorer 6.0?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, that's actually what I was tying to do initially.
We are talking about a regular Subform right? No special setting?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I amneded the script and installed ACF and so on. It still doesn't work in PDF Preview Mode.
When I amended the presence property on a conventional Textfield. It only affects the Value inside the Textfield. E.g. if set the presence to invisible, the text inside the Input field is gone, but the label and the inputfield are still visible, whereas setting it to hidden, doesn't affect the input field at all.
not a really complex problem, but nothing seems to work.
I really assume the preview mode shows how the form behaves once the WebDynpro app including the form has been deployed to server, right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just installed ACF on my system, but no change in behaviour so far.
As far as I understand ACF is a kind of a plugin for the Internet Explorer, but the Form is shown in Adobe Reader, so therefore I do not understand how the installation of ACF could affect the behavoiur of the rendered Form in Preview Mode in NWDS/Life Cycle Designer...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If your pdf type is put as activex, ACF is rerquired. else you can set the value as native in the interactive form properties.
If you are trying in the formcalc. You can try out writing the script in the click event of the check button.
if ( $.rawValue == 'X' ) then
$.parent.<SOM hierarchy>.presence = "invisible"
else
<.
endif.
You can try debugging it manually by setting a text field to see the value changes.
You may also use java script. But for these simple scripts, it is recommended to use form calc.
Thanks and Regards,
Antony John Isacc.
No, I do not remember installing Active Component Framework (ACF).
Is that required? How would I do that? Is it necessary to display the form in Preview mode already?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexander,
Is ACF installed on your system.
Regards,
Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
11 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.