Redirect Processor in .xpl

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

Redirect Processor in .xpl

Chadatr0n
When using the redirect processor what is the intended result? I have something like this at the end of a pipeline. My intention is to redirect to an external page after submission. Is this the correct processor to use? As of right now it does not redirect.

<p:processor name="oxf:redirect">
    <p:input name="data">
                        <redirect-url>
                                <path-info> 
                                        http://www.google.com
                                </path-info>
                        </redirect-url>
               
    </p:input>
</p:processor>
Reply | Threaded
Open this post in threaded view
|

Re: Redirect Processor in .xpl

Alessandro  Vernet
Administrator
Hi Chad,

Looks right to me. I imagine this isn't working for you, if you're asking? Are you using Form Runner? (I'm asking as if you are, there might be a simpler way to do this.) If not, how if your XPL called?

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

Re: Redirect Processor in .xpl

Chadatr0n
Hi Alex,

Correct this is not working. I am using form runner and calling the form directly from a dedicated .../new link. The XPL is being called using a detail button property(below). The redirect itself is taking place after  multiple submissions to a web service(trampoline). The current behavior  after submission is save-success message and then nothing, the page just sits there.


 <property as="xs:string"
                          name="oxf.fr.detail.buttons.rpic.w9_test"
                          value="as-send"/>


 <property as="xs:string" debug="xxx form submit" name="oxf.fr.detail.process.as-send.*.*">
                require-uploads
                then validate-all
                then save
        then send(uri = "/fr/service/custom/orbeon/echo", content = "pdf-url", replace = "none")
                then send(uri = "/fr/service/custom/rpic/as-send?pdf-path={xxf:instance('fr-pdf-url-instance')}" , method = "post", replace = "none", prune = "false")
        then success-message("save-success")
        recover error-message("database-error")
    </property>