cancel
Showing results for 
Search instead for 
Did you mean: 

JavaScript set value

Former Member
0 Kudos

Dear all,

suppose i have a webdynpro with a adobe form in the view. In my web dynpro context i have a node PdfData with an attribute SubmitContext.

When i push a submit button in the form (there are multiple), i want to set the value of SubmitContext through scripting. I was able to do this via the line:

xfa.form.PdfData.SubmitContext.rawValue = "SUBMITONE";

This is setting the value of inputfield that is bound to attribute SubmitContext of my data node. This means i have to put an invisible inputfield on my layout. Is it also possible directly set the value of the data attribute? I thought i was possible through the line:

xfa.datasets.data.PdfData.SubmitContext = "SUBMITONE" , but this doesnt seem to do anything.

Any help will be appreciated. This is the xml part of the datasets in, automatically generated by netweaver developer studio, the PdfData node is bound to my adobe elment in my webdynpro view.


<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
   <xfa:data xfa:dataNode="dataGroup"/>
   <dd:dataDescription xmlns:dd="http://ns.adobe.com/data-description/" dd:name="PdfData">
      <PdfData dd:minOccur="0" SubmitContext="" xfa:dataNode="dataGroup" xmlns="http://xml.sap.com/2003/06/webdynpro/adobe-integration"/>
   </dd:dataDescription>
</xfa:datasets>

kind regards,

J.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Ok, i found the solution, apparantly you can set the value directly with the following line:

xfa.datasets.data.PdfData.SubmitContext.value = "SUBMITONE";