cancel
Showing results for 
Search instead for 
Did you mean: 

Mark some of the rows read only in a table.

Former Member
0 Kudos

Dear SDN Community,

I have to read the line item data from the user in my Adobe form. I would populate the products based on the customers part# in the line items table and the user is supposed to enter the quantities. If the material is of a particular type I just want to make the quantity field to 1 and disable the row for the user not to update the quantity field. Can you please tell me how I can achieve this functionality of disabling a particular row in a dynamic table in Adobe forms. I am using 2004s and Designer 7.1.

Thanks!

Surya.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear surya,

You may check out the scripting options available.

Thanks and Regards,

Anto.

Former Member
0 Kudos

Anto,

Thanks for your reply. I am trying to find out a way to loop through all the cells in a table either by using Javascript or by FormCalc, can you please throw some light how I can loop the table. Once I get this, I would get a step close to locking a row in a table for an entry.

Thanks!

Surya.

Former Member
0 Kudos

[code]

Var record_count = $.table.data.all.length

For I = 0 upto ( record_count - 1 ) step 1 do

Statements ( here add the conditions and the statements whatever you

want to perform for each record with in the table)

Endfor[/code]

Answers (1)

Answers (1)

Former Member
0 Kudos

Surya,

Can you pls post ur code which u used to read the table content? I am trying to do that, but no luck for since a week now..

BM

Former Member
0 Kudos

Hi Surya,

I'm wondering why it doesn't work for you.

Try this.

1) Click on the first cell of your table.

2) Choose the event "initialize"

3) Put this code inside the initialize event

var nSubLength = Table.DATA.all.length;

xfa.host.messageBox(nSubLength);

4)Execute the form and see if the number of rows is prompted in a message box.

Hope this helps.

Cheers,

Mandrake!