In Livecycle 8, I have a table with many rows which I'm using as a lookup table. Does anyone know if there is a javascript function that will search a single column of a table and return me the row number of that table?
thanks
Scott
In Livecycle 8, I have a table with many rows which I'm using as a lookup table. Does anyone know if there is a javascript function that will search a single column of a table and return me the row number of that table?
thanks
Scott
So the answer is no, there is no built-in fucntion for looking up data in a table.
But, you can write your own function. The first thing to do is to look at how the pseudo-table is setup by examining it in the Hierarchy Window. The table will be a regular structure of subforms and text fields. Make sure everything is named. Use this info to dynamically build the SOM path you will need to access any element. If the text fields are given unique row/column names, then the easiest solution is to use the "resolveNode" fucntion to search for just the text field name.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script