createDataObject in livecycle from a text field value

arvindkumar7

16-12-2015

Hi Experts,

Can anybody help me increating a data object from createDataObject from a text field's value. Text field contents is multiline.

These two simple lines are working great in acrobat console but not when under a livecycle click button event.

var cMyC = "sample string";

this.createDataObject("test.txt",cMyC);

Please suggest.

Regards

Arvind

Accepted Solutions (1)

Accepted Solutions (1)

radzmar

MVP

16-12-2015

In LiveCycle Designer you have to replace this with event.target to use Acrobat scripting methods.


var cMyC = "sample string";


event.target.createDataObject("test.txt",cMyC);


Answers (1)

Answers (1)

arvindkumar7

16-12-2015

Thanks radzmar,

It works like a charm, it was a small and stupid mistake from me.

Can you please tell me how to open a attachment with opendataobject.