Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

How do we use getDataObjectContents to import fields value from an attachment

$
0
0

Hi everyone,

 

I am testing this method on how to get a value from an attachment and put it on the current page opened, I've tried to do this: http://cjoint.com/13dc/CLruaj192OV_doc1.pdf

 

using the exemple on the AJS reference, but it doesn't work could you please help me to figure out the issue

 

 

var oDoc = this.openDataObject("attachment1");try{ 
var myField = this.getField("Text"); // get the value of "MarksTotal1" in PDF attachment 
var yourField = oDoc.getField("MarksTotal"); // view this value in "Text" 
myField.value = yourField.value; 
oDoc.closeDoc(); }catch(e) { app.alert("Operation failed");} 

 

tanks a lot


Viewing all articles
Browse latest Browse all 12130

Trending Articles



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