cached submission trigger execution

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

cached submission trigger execution

mabu
Hi,

I have a simple cached submission with xxf:cache="true" and xxf:readonly="true". If I trigger this submission with xf:send then it will be executed only once (as expected). But from time to time the returned data of the submission changes.
Is there a possibility to rerun this cached submission?

Martin
Reply | Threaded
Open this post in threaded view
|

Re: cached submission trigger execution

Alessandro  Vernet
Administrator
Hi Martin,

You can invalidate the cached document by dispatching xxforms-instance-invalidate to the instance. More on this in section linked below. Would this work for you?

http://doc.orbeon.com/xforms/submission-caching.html#invalidation

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: cached submission trigger execution

mabu
Hi Alex,

it works fine. Thank you, that's what I was searching for.

Martin
Reply | Threaded
Open this post in threaded view
|

Re: cached submission trigger execution

Alessandro  Vernet
Administrator
Martin, perfect, I'm glad it helped.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet