These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

internal table (access at runtime) / copy data to a javascript table

watson23
Registered: Mar 25 2008
Posts: 37
Answered

Hi,
could anyone please tell me whether it is somehow possible to gain access to an abap Internal Table at runtime (using javascript)? If not, is there a way to "copy" all the data from an Internal Table (e.g.: with 2 fields & 10 rows) to a 2-dimensional (2x10) javascript table? I've got some data (kept in an IT) that I need to have access to (at runtime) & I have no clue how I should work this one out.
Any help will be greatly appreciated.
Regards
T.M.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Because LiveCycle forms are XML based, they have the wonderful property of being completely exposed to JavaScript access. So yes, you can get to anything in a LiveCycle form with JS at runtime.

To do this you need to know the SOM path to the resource you're looking for. Take a look at the Hierarchy window. It contains a good deal of this information. Another way to get a handle on the SOM path is to select a form element and then look at the Scripting window. Select any event and you'll see the SOM path at the top of the script. For accessing nodes that are not fields, you can look at the XML view.

There are some document that can help, including the SOM reference at:

http://kb.adobe.com/selfservice/viewContent.do?externalId=330467&sliceId=2

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script