Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
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

4 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.