Hello
I need to refresh an instance every few seconds. Is it possible to somehow send submissions automaticly? Thanks, Mischa -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Mischa,
> I need to refresh an instance every few seconds. Is it possible to > somehow send submissions automaticly? yes - you could use JavaScript to issue events periodically. I use that mechanism to backup the main instance every some seconds. You will find some postings describing this in the archives - look for "PeriodicalExecuter", that's the prototype class i'm using. HTH florian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Mischael Schill
Mischa,
As Florian mentioned, you can use JavaScript for this, but you can also use the delay="..." attribute on <xforms:dispatch> to dispatch an event after a certain delay. See the dispatch-delay (http://localhost:8080/orbeon/xforms-sandbox/sample/dispatch-delay) sandbox example, which after you press the "start" button increments a counter every second, all done in XForms. Alex |
Alessandro Vernet wrote:
> As Florian mentioned, you can use JavaScript for this, but you can also use > the delay="..." attribute on <xforms:dispatch> to dispatch an event after a > certain delay. See the dispatch-delay > (http://localhost:8080/orbeon/xforms-sandbox/sample/dispatch-delay) sandbox > example, which after you press the "start" button increments a counter every > second, all done in XForms. Thank you. I wrote the following in my model, but it didnt't work: <f:action ev:event="ProcessesReloadEvent"> <f:send submission="loadProcesses"/> <f:dispatch name="ProcessesReloadEvent" delay="1000" target="my-model"/> </f:action> <f:dispatch name="ProcessesReloadEvent" delay="1000" ev:event="xforms-ready" target="my-model"/> (The model has the id "my-model") Cheers, Mischael -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
> Alessandro Vernet wrote:
What version of Orbeon Forms are you using?
>> As Florian mentioned, you can use JavaScript for this, but you can >> also use >> the delay="..." attribute on <xforms:dispatch> to dispatch an event >> after a >> certain delay. See the dispatch-delay >> (http://localhost:8080/orbeon/xforms-sandbox/sample/dispatch-delay) >> sandbox >> example, which after you press the "start" button increments a >> counter every >> second, all done in XForms. > Thank you. I wrote the following in my model, but it didnt't work: > <f:action ev:event="ProcessesReloadEvent"> > <f:send submission="loadProcesses"/> > <f:dispatch name="ProcessesReloadEvent" delay="1000" target="my- > model"/> > </f:action> > > <f:dispatch name="ProcessesReloadEvent" delay="1000" > ev:event="xforms-ready" target="my-model"/> > > (The model has the id "my-model") Try enabling XForms logging to see what's happening: http://www.orbeon.com/ops/doc/reference-xforms-configuration#xforms-logging -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Erik Bruchez wrote:
> What version of Orbeon Forms are you using? A Nightly build from about a week ago- > Try enabling XForms logging to see what's happening: Thanks, that got me on the right track. It seems, the dispatch does not work when triggered by xforms-ready or xforms-model-construct-done. When executed from a trigger, everything works fine. I think this could be a Bug in orbeon. Cheers, Mischael -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Mischael,
Yes, this is a known bug. See: http://forge.ow2.org/tracker/index.php?func=detail&aid=313061&group_id=168&atid=350207 Alex |
Free forum by Nabble | Edit this page |