Skip to main content
Known Participant
September 4, 2020
Answered

Image Field Value to Set in the Annotation Attachment

  • September 4, 2020
  • 2 replies
  • 953 views

Hello All,

 

Q1: I have question regarding Images, If I attached the Image in annonation, is there any we can put that image in the Image field so that user can see?

 

Q2: Is there anyway if user select the image in the Image field we can pass that value that image to annotaion to attach that image file, In short User does not need to browser the image again for the Annoantion. 

 

Thanks for your help in advance 

This topic has been closed for replies.
Correct answer try67

I'm using below Java Script, it's working, but not able to access JPEG.PNG images from Local machine. Is there anyway we can access Iamges from the below query

var doc = app.browseForDoc();
var one = this.getField(event.target.name);
var docPath = doc.cPath; // gets the file path of the selected file
one.buttonImportIcon(docPath); // uses the selected path to import the image as the "normal" or "up" button icon
this.importDataObject("myDataObjectFileName",docPath); // import the data object

 


Try this: app.browseForDoc({cFileFilter:2})

2 replies

Known Participant
September 8, 2020

Thanks for your reply, If I have attcahed the image in the Image Field, Is there any we can set that Image in the file attcahment at a same time

try67
Community Expert
Community Expert
September 8, 2020

I don't believe that's possible, either.

Known Participant
September 8, 2020

I'm using below Java Script, it's working, but not able to access JPEG.PNG images from Local machine. Is there anyway we can access Iamges from the below query

var doc = app.browseForDoc();
var one = this.getField(event.target.name);
var docPath = doc.cPath; // gets the file path of the selected file
one.buttonImportIcon(docPath); // uses the selected path to import the image as the "normal" or "up" button icon
this.importDataObject("myDataObjectFileName",docPath); // import the data object

 

try67
Community Expert
Community Expert
September 4, 2020

No to both. A script can't access the contents of the selected image in an annotation, only in a field or an Icon object.