on 08-23-2013 4:55 PM
Dear friends
I would like to know form calc script logic to loop on internal table and populate to global work area as data in layout is displayed from global work area.
It would be helpful if some one can throw light how to get information of coding logic for FORMCALC.
Thanks
Lavanya
Guys i found solution as soon as posted this query and its in same lines as prabhu mentioned.#
Thanks for all replies
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can follow the below post for the solution.
Hi Lavanya,
I guess this is related to your another post on how to display data in itab instead of work area.
As work area can only hold one record at one time, and binding to form is a single instance only, so it wont be generated repeatedly even you populate different data into this workarea by looping the itab.
Thus, you will need to create a new table on form using the itab. Thanks. Hope this helps.
regards,
Xiang Li
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lavanya,
Could you please eloborate your issue little more detail. Do you want any data in table to populated in master page? If yes, then you could create a variable in code initialization and populate it accordingly. This would be an easy option than script.
Below logic is for 'Javascript' for looping through data of all fields on a form.
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
for (var i=0; i <= fields.length-1; i++)
{
if (fields.item(i).name == <fieldname>)
{
<Place your logic here>
}
}
similar logic is used for calculating sub-totals on a form
Thanks,
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
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.