Is it possible to call a service upon saving a form.

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

Re: Re: Re: Re: Is it possible to call a service upon saving a form.

MichaelCap
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Is it possible to call a service upon saving a form.

Alessandro  Vernet
Administrator
Michael,

At this point, you can't bypass the dialog. Orbeon Forms doesn't yet
have an option "don't show the dialog and directly go to the URL".
This wouldn't be hard to do, but would have to be implemented.

Alex

On Mon, Jul 26, 2010 at 8:43 AM, MichaelCap <[hidden email]> wrote:

>
> Thank you for your help. I was able to have Orbeon go to another url once a
> form has been submitted and passing the app/form/document Id.
>
> What I need help figuring out is to remove the the second button dialog once
> Orbeon has submitted a form. The Submit button persists the form and a
> confirmation dialog appears which takes the user to another url. I need a
> way for the Submit button to persist and take the user to the other url.
>
> Any help is appreciated.
>
> Thank you,
>
> Michael
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Is-it-possible-to-call-a-service-upon-saving-a-form-tp1470331p2302504.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Is it possible to call a service upon saving a form.

Alessandro  Vernet
Administrator
In reply to this post by Ketan
Ketan,

I am not sure why you would be getting an NPE in this case. How can we
reproduce this problem? Are you getting this by adding the properties
you mentioned if you click Submit in the Bookshelf form
(http://localhost:8080/orbeon/fr/orbeon/bookshelf/new/)?

Alex

On Fri, Jul 23, 2010 at 10:56 AM, Ketan <[hidden email]> wrote:

>
> Hi Alex,
>
> I am running Orbeon Forms 3.8 on Tomcat 6.0.20. I have build war file from
> "3_8_0_201005141841-0-g3fb94bb" tag.
>
> As I want to call the service upon saving a form, I followed your post. I
> updated my properties-local.xml file with following values.
>
> <property as="xs:string"  name="oxf.fr.detail.buttons.*.*" value="submit"/>
> <property as="xs:string"  name="oxf.fr.detail.submit.buttons.*.*"
> value="go"/>
> <property as="xs:string"  name="oxf.fr.detail.submit.go.uri-xpath.*.*"
> value="'http://www.orbeon.com/'"/>
>
> So, when I click on submit button, I get "Your information has been
> submitted, thank you." message. And then when I click OK, I got error
> message. "An error has occured". When I click on Show Details on that error
> pop up, I see "[No error message provided]".
>
> But in the log I see null pointer exception. Here is the stack trace for the
> same.
>
> 2010-07-23 12:21:01,625 ERROR ProcessorService  - Exception at  (running
> XForms action: action name='{http://www.w3.org/2002/xforms}load')
> java.lang.NullPointerException
>        at org.orbeon.saxon.functions.Evaluate.prepareExpression(Evaluate.java:194)
>        at org.orbeon.saxon.functions.Evaluate.iterate(Evaluate.java:294)
>        at
> org.orbeon.saxon.instruct.SimpleContentConstructor.evaluateItem(SimpleContentConstructor.java:270)
>        at org.orbeon.saxon.expr.Expression.iterate(Expression.java:370)
>        at
> org.orbeon.saxon.sxpath.XPathExpression.iterate(XPathExpression.java:141)
>        at
> org.orbeon.oxf.util.PooledXPathExpression.evaluate(PooledXPathExpression.java:252)
>        at
> org.orbeon.oxf.util.PooledXPathExpression.evaluateSingleKeepNodeInfo(PooledXPathExpression.java:224)
>        at org.orbeon.oxf.util.XPathCache.evaluateAsAvt(XPathCache.java:232)
>        at
> org.orbeon.oxf.xforms.XFormsUtils.resolveAttributeValueTemplates(XFormsUtils.java:984)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.resolveAVTProvideValue(XFormsActionInterpreter.java:445)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.resolveAVT(XFormsActionInterpreter.java:492)
>        at
> org.orbeon.oxf.xforms.action.actions.XFormsLoadAction.execute(XFormsLoadAction.java:81)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:295)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:256)
>        at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:66)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:295)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:256)
>        at
> org.orbeon.oxf.xforms.event.XFormsEventHandlerImpl.handleEvent(XFormsEventHandlerImpl.java:204)
>        at
> org.orbeon.oxf.xforms.xbl.XBLContainer.dispatchEvent(XBLContainer.java:1000)
>        at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:1012)
>        at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEventCheckTarget(XFormsContainingDocument.java:925)
>        at
> org.orbeon.oxf.xforms.XFormsContainingDocument.handleExternalEvent(XFormsContainingDocument.java:905)
>        at
> org.orbeon.oxf.xforms.processor.XFormsServer.createAndDispatchEvents(XFormsServer.java:519)
>        at org.orbeon.oxf.xforms.processor.XFormsServer.doIt(XFormsServer.java:328)
>        at
> org.orbeon.oxf.xforms.processor.XFormsServer.access$000(XFormsServer.java:63)
>        at
> org.orbeon.oxf.xforms.processor.XFormsServer$1.readImpl(XFormsServer.java:94)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445)
>        at
> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>        at
> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsTinyTree(ProcessorImpl.java:472)
>        at org.orbeon.oxf.processor.ProcessorImpl$3.read(ProcessorImpl.java:505)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:551)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(ProcessorImpl.java:503)
>        at
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:191)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:620)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
>        at
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:251)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:620)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
>        at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90)
>        at
> org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:100)
>        at
> org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
>        at java.lang.Thread.run(Thread.java:619)
>
> Thank you.
>
> Sincerely,
> Ketan
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Is-it-possible-to-call-a-service-upon-saving-a-form-tp1470331p2300524.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Is it possible to call a service upon saving a form.

Ketan
Alex,
 
Yes, Once I add following 3 lines in properies-local.xml file, I am getting an NPE for Bookshelf form and all other forms which I created. (It still saves data, but fails to redirect to given uri)
 
<property as="xs:string"  name="oxf.fr.detail.buttons.*.*" value="submit"/>
<property as="xs:string"  name="oxf.fr.detail.submit.buttons.*.*" value="go"/>
<property as="xs:string"  name="oxf.fr.detail.submit.go.uri-xpath.*.*" value="'http://www.orbeon.com/'"/>
 
 
If I remove these 3 lines in properties-local.xml file, everything works fine, no exceptions at all..
 
Do let me know, if you need more information on this.
 
Thank you very much.
 
Sincerely,
Ketan

On Mon, Jul 26, 2010 at 8:37 PM, Alessandro Vernet <[hidden email]> wrote:
Ketan,

I am not sure why you would be getting an NPE in this case. How can we
reproduce this problem? Are you getting this by adding the properties
you mentioned if you click Submit in the Bookshelf form
(http://localhost:8080/orbeon/fr/orbeon/bookshelf/new/)?

Alex

On Fri, Jul 23, 2010 at 10:56 AM, Ketan <[hidden email]> wrote:
>
> Hi Alex,
>
> I am running Orbeon Forms 3.8 on Tomcat 6.0.20. I have build war file from
> "3_8_0_201005141841-0-g3fb94bb" tag.
>
> As I want to call the service upon saving a form, I followed your post. I
> updated my properties-local.xml file with following values.
>
> <property as="xs:string"  name="oxf.fr.detail.buttons.*.*" value="submit"/>
> <property as="xs:string"  name="oxf.fr.detail.submit.buttons.*.*"
> value="go"/>
> <property as="xs:string"  name="oxf.fr.detail.submit.go.uri-xpath.*.*"
> value="'http://www.orbeon.com/'"/>
>
> So, when I click on submit button, I get "Your information has been
> submitted, thank you." message. And then when I click OK, I got error
> message. "An error has occured". When I click on Show Details on that error
> pop up, I see "[No error message provided]".
>
> But in the log I see null pointer exception. Here is the stack trace for the
> same.
>
> 2010-07-23 12:21:01,625 ERROR ProcessorService  - Exception at  (running
> XForms action: action name='{http://www.w3.org/2002/xforms}load')
> java.lang.NullPointerException
>        at org.orbeon.saxon.functions.Evaluate.prepareExpression(Evaluate.java:194)
>        at org.orbeon.saxon.functions.Evaluate.iterate(Evaluate.java:294)
>        at
> org.orbeon.saxon.instruct.SimpleContentConstructor.evaluateItem(SimpleContentConstructor.java:270)
>        at org.orbeon.saxon.expr.Expression.iterate(Expression.java:370)
>        at
> org.orbeon.saxon.sxpath.XPathExpression.iterate(XPathExpression.java:141)
>        at
> org.orbeon.oxf.util.PooledXPathExpression.evaluate(PooledXPathExpression.java:252)
>        at
> org.orbeon.oxf.util.PooledXPathExpression.evaluateSingleKeepNodeInfo(PooledXPathExpression.java:224)
>        at org.orbeon.oxf.util.XPathCache.evaluateAsAvt(XPathCache.java:232)
>        at
> org.orbeon.oxf.xforms.XFormsUtils.resolveAttributeValueTemplates(XFormsUtils.java:984)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.resolveAVTProvideValue(XFormsActionInterpreter.java:445)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.resolveAVT(XFormsActionInterpreter.java:492)
>        at
> org.orbeon.oxf.xforms.action.actions.XFormsLoadAction.execute(XFormsLoadAction.java:81)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:295)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:256)
>        at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:66)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:295)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:256)
>        at
> org.orbeon.oxf.xforms.event.XFormsEventHandlerImpl.handleEvent(XFormsEventHandlerImpl.java:204)
>        at
> org.orbeon.oxf.xforms.xbl.XBLContainer.dispatchEvent(XBLContainer.java:1000)
>        at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:1012)
>        at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEventCheckTarget(XFormsContainingDocument.java:925)
>        at
> org.orbeon.oxf.xforms.XFormsContainingDocument.handleExternalEvent(XFormsContainingDocument.java:905)
>        at
> org.orbeon.oxf.xforms.processor.XFormsServer.createAndDispatchEvents(XFormsServer.java:519)
>        at org.orbeon.oxf.xforms.processor.XFormsServer.doIt(XFormsServer.java:328)
>        at
> org.orbeon.oxf.xforms.processor.XFormsServer.access$000(XFormsServer.java:63)
>        at
> org.orbeon.oxf.xforms.processor.XFormsServer$1.readImpl(XFormsServer.java:94)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445)
>        at
> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>        at
> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsTinyTree(ProcessorImpl.java:472)
>        at org.orbeon.oxf.processor.ProcessorImpl$3.read(ProcessorImpl.java:505)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:551)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(ProcessorImpl.java:503)
>        at
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:191)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:620)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
>        at
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:251)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:620)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
>        at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90)
>        at
> org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:100)
>        at
> org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
>        at java.lang.Thread.run(Thread.java:619)
>
> Thank you.
>
> Sincerely,
> Ketan
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Is-it-possible-to-call-a-service-upon-saving-a-form-tp1470331p2300524.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


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




--

Sincerely,

 

Ketan Parikh

Portal & Enterprise Software Solutions Developer

8627 N. Mopac Expwy, Suite 130, Austin, TX 78759

Work Phone: 512-371-6522 Cell Phone: 301-509-4598  Fax: 512-340-0794
[hidden email] - www.xtivia.com - www.virtual-dba.comwww.virtual-websphereadmin.com

 

**NEW** Visit www.Virtual-WebSphereAdmin.com to see how Xtivia can help you reduce costs and increase uptime with Monitoring and Support for IBM WebSphere Application Server. 

www.Virtual-DBA.com & www.Virtual-WebSphereAdmin.com subscribers, for after hours support, please call (800) 205-7537. Provide your name, company name and database/app server platform.




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Is it possible to call a service upon saving a form.

Alessandro  Vernet
Administrator
Ketan,

You may have heard about this since then through some other channel
;), but for reference, this is fixed in the latest nightly build.

Alex

On Mon, Jul 26, 2010 at 8:20 PM, Ketan Parikh <[hidden email]> wrote:

>
> Alex,
>
> Yes, Once I add following 3 lines in properies-local.xml file, I am getting an NPE for Bookshelf form and all other forms which I created. (It still saves data, but fails to redirect to given uri)
>
> <property as="xs:string"  name="oxf.fr.detail.buttons.*.*" value="submit"/>
> <property as="xs:string"  name="oxf.fr.detail.submit.buttons.*.*" value="go"/>
> <property as="xs:string"  name="oxf.fr.detail.submit.go.uri-xpath.*.*" value="'http://www.orbeon.com/'"/>
>
>
> If I remove these 3 lines in properties-local.xml file, everything works fine, no exceptions at all..
>
> Do let me know, if you need more information on this.
>
> Thank you very much.
>
> Sincerely,
> Ketan
>
> On Mon, Jul 26, 2010 at 8:37 PM, Alessandro Vernet <[hidden email]> wrote:
>>
>> Ketan,
>>
>> I am not sure why you would be getting an NPE in this case. How can we
>> reproduce this problem? Are you getting this by adding the properties
>> you mentioned if you click Submit in the Bookshelf form
>> (http://localhost:8080/orbeon/fr/orbeon/bookshelf/new/)?
>>
>> Alex
>>
>> On Fri, Jul 23, 2010 at 10:56 AM, Ketan <[hidden email]> wrote:
>> >
>> > Hi Alex,
>> >
>> > I am running Orbeon Forms 3.8 on Tomcat 6.0.20. I have build war file from
>> > "3_8_0_201005141841-0-g3fb94bb" tag.
>> >
>> > As I want to call the service upon saving a form, I followed your post. I
>> > updated my properties-local.xml file with following values.
>> >
>> > <property as="xs:string"  name="oxf.fr.detail.buttons.*.*" value="submit"/>
>> > <property as="xs:string"  name="oxf.fr.detail.submit.buttons.*.*"
>> > value="go"/>
>> > <property as="xs:string"  name="oxf.fr.detail.submit.go.uri-xpath.*.*"
>> > value="'http://www.orbeon.com/'"/>
>> >
>> > So, when I click on submit button, I get "Your information has been
>> > submitted, thank you." message. And then when I click OK, I got error
>> > message. "An error has occured". When I click on Show Details on that error
>> > pop up, I see "[No error message provided]".
>> >
>> > But in the log I see null pointer exception. Here is the stack trace for the
>> > same.
>> >
>> > 2010-07-23 12:21:01,625 ERROR ProcessorService  - Exception at  (running
>> > XForms action: action name='{http://www.w3.org/2002/xforms}load')
>> > java.lang.NullPointerException
>> >        at org.orbeon.saxon.functions.Evaluate.prepareExpression(Evaluate.java:194)
>> >        at org.orbeon.saxon.functions.Evaluate.iterate(Evaluate.java:294)
>> >        at
>> > org.orbeon.saxon.instruct.SimpleContentConstructor.evaluateItem(SimpleContentConstructor.java:270)
>> >        at org.orbeon.saxon.expr.Expression.iterate(Expression.java:370)
>> >        at
>> > org.orbeon.saxon.sxpath.XPathExpression.iterate(XPathExpression.java:141)
>> >        at
>> > org.orbeon.oxf.util.PooledXPathExpression.evaluate(PooledXPathExpression.java:252)
>> >        at
>> > org.orbeon.oxf.util.PooledXPathExpression.evaluateSingleKeepNodeInfo(PooledXPathExpression.java:224)
>> >        at org.orbeon.oxf.util.XPathCache.evaluateAsAvt(XPathCache.java:232)
>> >        at
>> > org.orbeon.oxf.xforms.XFormsUtils.resolveAttributeValueTemplates(XFormsUtils.java:984)
>> >        at
>> > org.orbeon.oxf.xforms.action.XFormsActionInterpreter.resolveAVTProvideValue(XFormsActionInterpreter.java:445)
>> >        at
>> > org.orbeon.oxf.xforms.action.XFormsActionInterpreter.resolveAVT(XFormsActionInterpreter.java:492)
>> >        at
>> > org.orbeon.oxf.xforms.action.actions.XFormsLoadAction.execute(XFormsLoadAction.java:81)
>> >        at
>> > org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:295)
>> >        at
>> > org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:256)
>> >        at
>> > org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:66)
>> >        at
>> > org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:295)
>> >        at
>> > org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:256)
>> >        at
>> > org.orbeon.oxf.xforms.event.XFormsEventHandlerImpl.handleEvent(XFormsEventHandlerImpl.java:204)
>> >        at
>> > org.orbeon.oxf.xforms.xbl.XBLContainer.dispatchEvent(XBLContainer.java:1000)
>> >        at
>> > org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:1012)
>> >        at
>> > org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEventCheckTarget(XFormsContainingDocument.java:925)
>> >        at
>> > org.orbeon.oxf.xforms.XFormsContainingDocument.handleExternalEvent(XFormsContainingDocument.java:905)
>> >        at
>> > org.orbeon.oxf.xforms.processor.XFormsServer.createAndDispatchEvents(XFormsServer.java:519)
>> >        at org.orbeon.oxf.xforms.processor.XFormsServer.doIt(XFormsServer.java:328)
>> >        at
>> > org.orbeon.oxf.xforms.processor.XFormsServer.access$000(XFormsServer.java:63)
>> >        at
>> > org.orbeon.oxf.xforms.processor.XFormsServer$1.readImpl(XFormsServer.java:94)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445)
>> >        at
>> > org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>> >        at
>> > org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl.readInputAsTinyTree(ProcessorImpl.java:472)
>> >        at org.orbeon.oxf.processor.ProcessorImpl$3.read(ProcessorImpl.java:505)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:551)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(ProcessorImpl.java:503)
>> >        at
>> > org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:191)
>> >        at
>> > org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:620)
>> >        at
>> > org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
>> >        at
>> > org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:251)
>> >        at
>> > org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
>> >        at
>> > org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:620)
>> >        at
>> > org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
>> >        at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90)
>> >        at
>> > org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:100)
>> >        at
>> > org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> >        at
>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>> >        at
>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> >        at
>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> >        at
>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>> >        at
>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> >        at
>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> >        at
>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> >        at
>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>> >        at
>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>> >        at
>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>> >        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
>> >        at java.lang.Thread.run(Thread.java:619)
>> >
>> > Thank you.
>> >
>> > Sincerely,
>> > Ketan
>> >
>> >
>> > --
>> > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Is-it-possible-to-call-a-service-upon-saving-a-form-tp1470331p2300524.html
>> > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>> >
>> >
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> 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
>>
>
>
>
> --
>
> Sincerely,
>
>
>
> Ketan Parikh
>
> Portal & Enterprise Software Solutions Developer
>
> 8627 N. Mopac Expwy, Suite 130, Austin, TX 78759
>
> Work Phone: 512-371-6522 Cell Phone: 301-509-4598  Fax: 512-340-0794
> [hidden email] - www.xtivia.com - www.virtual-dba.com – www.virtual-websphereadmin.com
>
>
>
> **NEW** Visit www.Virtual-WebSphereAdmin.com to see how Xtivia can help you reduce costs and increase uptime with Monitoring and Support for IBM WebSphere Application Server.
>
> www.Virtual-DBA.com & www.Virtual-WebSphereAdmin.com subscribers, for after hours support, please call (800) 205-7537. Provide your name, company name and database/app server platform.
>
>
> --
> 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
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Is it possible to call a service upon saving a form.

Alessandro  Vernet
Administrator
In reply to this post by Alessandro Vernet
Michael,

Actually, let me precise what I said earlier: you can't do this with
the "send" button, but you can with the "workflow-send" button. You
can learn more on this at:

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Workflow-send-button

Alex

On Mon, Jul 26, 2010 at 6:34 PM, Alessandro Vernet <[hidden email]> wrote:

> Michael,
>
> At this point, you can't bypass the dialog. Orbeon Forms doesn't yet
> have an option "don't show the dialog and directly go to the URL".
> This wouldn't be hard to do, but would have to be implemented.
>
> Alex
>
> On Mon, Jul 26, 2010 at 8:43 AM, MichaelCap <[hidden email]> wrote:
>>
>> Thank you for your help. I was able to have Orbeon go to another url once a
>> form has been submitted and passing the app/form/document Id.
>>
>> What I need help figuring out is to remove the the second button dialog once
>> Orbeon has submitted a form. The Submit button persists the form and a
>> confirmation dialog appears which takes the user to another url. I need a
>> way for the Submit button to persist and take the user to the other url.
>>
>> Any help is appreciated.
>>
>> Thank you,
>>
>> Michael
>> --
>> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Is-it-possible-to-call-a-service-upon-saving-a-form-tp1470331p2302504.html
>> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>>
>>
>
>
>
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise -
> http://www.orbeon.com/
> My Twitter: http://twitter.com/avernet
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Is it possible to call a service upon saving a form.

MichaelCap
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Is it possible to call a service upon saving a form.

Alessandro  Vernet
Administrator
Michael,

At this point, not without changing Form Runner. Of course, this is
something that you can do if you wish to (see the source of Form
Runner in apps/fr).

Alex

On Tue, Aug 3, 2010 at 2:23 PM, MichaelCap <[hidden email]> wrote:

>
> Alex,
>
> The workflow-send button looks promising for displaying my confirmation
> message. I have Orbeon setup with the workflow-send button and all I need
> now is for the workflow-send button to also Post the app name form name and
> documentId. Is this possible?
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Is-it-possible-to-call-a-service-upon-saving-a-form-tp1470331p2312618.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Out of Office AutoReply: Is it possible to call a service upon saving a form.

vignesgangboard
This post was updated on .
In reply to this post by pappleby
  <property
                 as="xs:string"        
              name="oxf.fr.detail.buttons.testapp.testform"
            value="save-draft send"/> 



        <property
  as="xs:string"
  name="oxf.fr.detail.process.send.testapp.testform"
  value='require-valid
         then send("localhost")
         then navigate("/success")
         recover navigate("/failure")'/>
Hadoop Training
Hadoop Online Training
Online Informatica Training
[url=http://goo.gl/WFZM82]Learn Hadoop Online Training[/url]
12