on 01-10-2008 5:58 AM
Hi Experts ,
I am using an interactive form in NWDS . I have to decimal input fields and third field is of sum , now i want a simple scrpting as user enters data in two decimal fields , so on entering data script should calculate sum and put it in sum field. Kindly give one of have solution to this or any scrpting exmaple.
Thanks in advance
Regards
sanjyoti
Hi Satyabrata
Thanks for reply very quick reply , but this script is not working
I am doubtful about the path ," data.page1.DecimalField1" an you tell me what exactlly this path is , am I doing something wrong in path ?
I have this script in both input field and i have selected run at both client and server .
var val1 = xfa.resolveNode("data.page1.DecimalField1").rawValue;
var val2 = xfa.resolveNode("data.page1.DecimalField2").rawValue;
xfa.resolveNode("data.page1.Decima4Field").rawValue = val1+val2;
Regards
Abhay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sanjyoti,
Solution using Java Scripts
Write the java script on Exit event of both the input fields
sample code
var val1 = xfa.resolveNode("data.page1.InputField1").rawValue;
var val2 = xfa.resolveNode("data.page1.InputField2").rawValue;
xfa.resolveNode("data.page1.InputField3").rawValue = val1+val2;
You have to go to the node <data.page1.InputField1> to get the value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.