Quantcast
Viewing all articles
Browse latest Browse all 1237

Access Web Dynpro node with Javascript within Interactive form

Hi,

 

I'm struggeling around with this since some time and try to find an answer here now. Actually it's quite simple, but I'm new to Adobe forms in scope of scripting and got this problem now, after I have got it to run, but somehow the Livecycle editor has deleted my scripts. :-(

 

I have a Web Dynpro node like this:

 

Image may be NSFW.
Clik here to view.
screenshot_node.jpg

Image may be NSFW.
Clik here to view.

 

And the XML interface looks like this:

 

Image may be NSFW.
Clik here to view.
screenshot_xml.jpg

 

Within the form in the initialize event of a table, I have the following javascript code, which works fine:

 

var oFields = xfa.resolveNode("xfa.record.FIELDS");

var nLength = oFields.nodes.length;

var nValue = oFields.nodes.item(0).ON_PAGE_NUMBER.value;

 

In nValue I have the value of ON_PAGE_NUMBER now.

But my question now is, how to get the whole node information for one attribute. I remember, it was something like this:

 

var oFields = xfa.resolveNode("xfa.record.FIELDS.DATA[*].FIELDNAME");

var nLength = oFields.length;

 

But this is crashing for me. I need to do this to be able to retrieve node fields dynamically, as I will have to build up a table with dynmaic number of columns and fill the body rows then.

 

Thank you for your help!

 

Best regards,

 

Michael


Viewing all articles
Browse latest Browse all 1237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>