cancel
Showing results for 
Search instead for 
Did you mean: 

Read Table data in off line interactive Adobe Form

former_member221372
Participant
0 Kudos

Hi All,

I have searched few links in SDN & solved some issues.

Now I was stuck up in reading table data.

I searched and implemented the below logic but still not able to read the table data.

So could you please let me know where I did a mistake.

This is all Off Line Interactive form.

var data1;

var norows = xfa.resolveNodes("data.sub.tableform.table1.row[*]").length;

for ( var i =0; i <norows; i++);

{

data1 = xfa.resolveNode("data.sub.tableform.table1.row["i"];

    if(data1.MATNR.rawValue != null || data1.MATNR.rawValue != "");

    {     

    xfa.host.messageBox("Sucess");

             }

}

}

Regards,

Bharat

Accepted Solutions (0)

Answers (1)

Answers (1)

ChrisSolomon
Active Contributor
0 Kudos

(1) Are you sure you have this script marked as "Javascript" and not "Formcalc" in your form?

(2) You do NOT have a closing ")" on this statement....

data1 = xfa.resolveNode("data.sub.tableform.table1.row["i"];

former_member221372
Participant
0 Kudos

Hi Solomon,

Yeah I am using Java Scripting only.

I have added the below code, but still not working.

data1 = xfa.resolveNode("data.sub.tableform.table1.row["i"]");

Regards,

Bharat

ChrisSolomon
Active Contributor
0 Kudos

Your Javascript looks wrong to me. Don't have time at the moment to debug. I would recheck if I was you. Use an online tool like JShint or something.

former_member221372
Participant
0 Kudos

I got the solution and solution is

var record = null;

var row = xfa.resolveNodes("xfa.form.data.sub.tableform.table1.row[*]").length;

for (var = i; i < row; i++)

{

record = xfa.resolveNode("xfa.form.data.sub.tableform.row["  +  i  +  "]");

}

Former Member
0 Kudos

Hi Bharath,

are you able to read row by row record?

the each row values i wanted to store in an array, if you find the way to retrieve the each row values,

it would helpfull for me also.

did you got the solution for this?

Thanks in advance

former_member221372
Participant
0 Kudos

Hello Sangeetha,

Are you able to read the record?

In my case, I just read the record and done the validation.

If you want to stored the records, then create drop down field and stored those values in that by using Addline syntax and hide that drop down field by using HIDE syntax.

Cheers,

Bharat