Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

saveXML and loadXML work in calculation event?

Avatar

Level 4

when i use a button to this script it worked fine

var mytext = Row1.Cell1.value.exData.saveXML();

Row2.Cell1.value.exData.loadXML(mytext,1,1);

but when i use it in calculate event of Row2.Cell1 it not worked

var mytext = Row1.Cell1.value.exData.saveXML();

Row2.Cell1.value.exData.loadXML(mytext,1,1);

why ?

plz help

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

We might need to know more about what your form is doing, but you could try moving the calculate event code up the form hierarchy, so maybe on Row2

Regards

Bruce

View solution in original post

0 Replies

Avatar

Level 10

Hi,

I would suspect that doing the Row2.Cell1.value.exData.loadXML() will rebuild the Form DOM for that field.  This would include the calculate event, so having the effect of interrupting the execution.

Bruce

Avatar

Correct answer by
Level 10

Hi,

We might need to know more about what your form is doing, but you could try moving the calculate event code up the form hierarchy, so maybe on Row2

Regards

Bruce

Avatar

Level 4

Good its worked Fine  after moving the calculate event code up the form hierarchy.

Thanks a lot

Sirrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.