2013 Oct 10 5:30 AM
Hello Experts,
Being new to adobe forms, we have a requirement such that an adobe output is displayed with item level information in a table.
We have columns such as Item number, material , unit price, total price and so on in the table.
Now that we have developed the form, user has requirement as, when unit price is changed in an item accordingly total price and the net price of total items should be changed automatically in the output.
Could somebody suggest how to achieve this in interactive adobe?
Regards,
Ramya
2013 Oct 10 6:18 AM
2013 Oct 10 7:04 AM
Hi Ramya,
You can achieve this requirement using Web Dynpro.
Just Google it. J
SuDEESH
2013 Oct 10 8:13 AM
Hi Sudeesh,
Thanks for the link! It was quite informative but am trying to achieve it just with script editor. Something like
Table1.Row1.Name.rawValue -where current values is passed.
And moreover even if i get current vlaue like this say Unit price, how to get the total for all items.
2013 Oct 10 10:24 AM
Hi Ramya,
Sorry for the delay!
Check this code.. I hope this will work out..
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
var total = 0;
for (var i=0; i <= fields.length-1; i++) {
if (fields.item(i).name == "PRICE") {
total = total + fields.item(i).rawValue;
}
}
this.rawValue = total;
Add this code in the total area..
With regards,
SuDEESH
2013 Oct 10 12:13 PM
2013 Oct 10 12:17 PM
No need of Thanx Friend.. Enjoy the life.. Just sharing what I know..
Hope your issue got solved . If it so, Please close the thread
SuDEESH