Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

createDataObject in livecycle from a text field value

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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);


View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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);


Avatar

Level 3

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.