on 10-11-2009 11:14 AM
Hi experts,
I need to hide/show some forms/elements of Interactive form (WebDynpro for Java) appropriate to value of some attribute of the root node (value=="NO" > hide elements).
This is the code:
------------- ProformaData.BodyPage::docReady - (FormCalc, server ) --------------------
var val = xfa.record.theField.rowValue;
if (val=="NO")
{
// hide elements code that works
}
Elements that showld be hidden are displayed at run-time.
I think that something wrong in line
var val = xfa.record.theField.rowValue;
or may be this script is in wrong place: docReady event of BodyPage with FormCalc lenguage at server.....
Please help me!
Ola
Hi
Try to get the value from the Field name like.
var val = data.<PAGE>.<FIELD>.rawValue
//or
var val = $record.<FieldName>
//You can check the value is assigned to the variable using message box.
xfa.host.messageBox(val);
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.