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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

saveXML and loadXML work in calculation event?

aka44356106
Level 4
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
_Bruce_Robertson
Correct answer by
Level 10
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

4 Replies
_Bruce_Robertson
Level 10
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

_Bruce_Robertson
Correct answer by
Level 10
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

aka44356106
Level 4
Level 4

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

Thanks a lot

Sirrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.