This website is not affiliated with, sponsored by, or approved by SAP AG.

Adobe Interactive Forms accessing table data

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Adobe Interactive Forms accessing table data

Postby Vindaloo » Thu Jan 27, 2011 9:09 am

I have an Offline Adobe Interactive Form, which contains a listbox showing the contents of an internal table (KUNNR). When an item is selected, I want to use some Javascript in the Change event to set the contents of another field (which relates to the ADRNR).

The problem I am having is that I can't access the individual rows of the table.
In the data view, the structure is as follows:
ZORDERS
- I_ORDERS
- - SHIPTO
- - - DATA
- - - - KUNWE
- - - - ADRNR

I am trying to access, for example the first row, in Javascript using $record.I_ORDERS.SHIPTO.DATA[1].ADRNR.rawValue but I get a TypeError: ... is undefined. If I use $record.I_ORDERS.SHIPTO.DATA then this returns a valid object, but I can't get at the actual rows of this table.

The Listbox Item Values binding is $record.I_ORDERS.SHIPTO.DATA[*]

Can anyone help, or provide a generic example of how to access table data?

Thanks,
Vindaloo
Vindaloo
 
Posts: 159
Joined: Mon Dec 09, 2002 4:45 am
Location: UK

Return to SAPscript/Smartforms

Who is online

Users browsing this forum: No registered users and 3 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.