cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Field is not set when an event is raised ( on press of button )

Former Member
0 Kudos

Hi Experts,

I need to set a flag ( FLAG1 ) when a button is pressed . This button raises an event EVENT1 in ABAP BE for triggering a roundtrip ) on Adobe Interactive Form.

I am using following script

-


data.#subform[0].Section3.ISR_FormEventButton::click: - (JavaScript, client) -


$record.FLAG1.value = "1";

xfa.record.CONTROL_PARAM.ISR_EVENT.value = "EVENT1";

ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");

This does not seem to set the value.

Any Help will be appreciated.

Thanks and regards,

Amit.

Accepted Solutions (0)

Answers (1)

Answers (1)

jagdishwar_b
Active Participant
0 Kudos

seem you merged usage of formcalc and javascript although you specified your script as of type Javascript.

For example, the following reference syntax returns the value of the current object:

$ // FormCalc

this.rawValue // JavaScript

in the click event of button, type something like:

adobeFieldName.rawValue = "MyValue";

You can use below docs for scripting reference:

http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_ba...

help.adobe.com/en_US/livecycle/es/FormCalc.pdf

regards,

BJagdishwar.