Login  Register

Re: Re: A problem with unnecessary xforms-value-changed after replace="instance" submission and one more thing

Posted by Maciej Arciuch on Oct 19, 2009; 8:02am
URL: https://discuss.orbeon.com/A-problem-with-unnecessary-xforms-value-changed-after-replace-instance-submission-and-one-more-thing-tp252592p253279.html

Alessandro Vernet wrote
I see. Another option, with the current code, is to "set a flag"
(store in an element <submission-in-progress> of an  instance "true"
instead of "false") before you do the <xforms:send>. Then on
xforms-submit-done you reset the flag, and in xforms-value-changed,
you don't do anything if the flag is set.
I've tried to solve my problem like this, but my attempts failed, because xforms-submit-done is sent before the RRRR (refresh - which causes undesired xforms-value-changed, rebuild, recalculate, revalidate), so the resetting happend too early. Is there any event that marks "the end of submission and of all of its consequences" (RRRR)? I attach an excerpt from my event log here: http://gamma.mini.pw.edu.pl/~arciuchm/log.txt

This would be perfect place to place a trigger resetting another flag, the "dirty" flag (a flag that informs that the document has been modified after last save).

Anyways, huge thanks for providing me with the development build, Maciek