Login  Register

Re: Help on oxf.fr.detail.send.uri to post XML data rather than pdf link

Posted by Erik Bruchez on Sep 21, 2010; 2:54am
URL: https://discuss.orbeon.com/Help-on-oxf-fr-detail-send-uri-to-post-XML-data-rather-than-pdf-link-tp2528069p2547945.html

Han Ming,

I thought this was fixed pre-3.8. What version of Orbeon Forms are you using?

What the fix did was to post the XML if no PDF was generated,
otherwise to produce the link to the PDF as you see.

We hope to improve on this soon BTW.

-Erik

On Mon, Sep 6, 2010 at 1:42 AM, Han Ming Low <[hidden email]> wrote:

> Hi,
>
> I'm trying to configure my form to have a "Send" button that send the data
> as XML to a destination url.
>
> I try to follow the instruction in the url below
> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Workflow-send-button
>
> And, I have configured by properties-local.xml as follows
>     <property as="xs:string"  name="oxf.fr.detail.buttons.*.*"
> value="workflow-send clear"/>
>     <property as="xs:string"  name="oxf.fr.detail.send.pdf" value="false"/>
>     <property as="xs:string"  name="oxf.fr.email.attach-pdf" value="false"/>
>     <property as="xs:string"  name="oxf.fr.alfresco.send-pdf"
> value="false"/>
>     <property as="xs:string"  name="oxf.fr.detail.send.uri.*.*"
> value="http://localhost:8080/orbeon/data.jsp"/>
>
>     <property as="xs:boolean" name="oxf.fr.detail.new.accept-post.*.*"
> value="true"/>
>     <property as="xs:anyURI"
> name="oxf.fr.persistence.service.mysql.datasource" value="mysql"/>
>     <property as="xs:anyURI"  name="oxf.fr.persistence.app.uri.*.*.*"
> value="/fr/service/mysql"/>
> I think the last 3 lines shoudl not affect the workflow-send button
> functionality, but I'm not sure. So, I have included my entire
> properties-local.xml
>
> My problem is when I click on the "Send" button, the target page "data.jsp"
> received the content
> <?xml version="1.0" encoding="UTF-8"?>
> <url>/xforms-server/dynamic/1b123fc5b6ac18eb19735166364e2e1f</url>
> where the url is pointing to a pdf document.
>
> I would like it to be the xml document of the data entered by users as
> mentioned in the wiki developer guide.
> As I understand from the document, only if either of the properties
> oxf.fr.detail.send.pdf, oxf.fr.email.attach-pdf, or oxf.fr.alfresco.send-pdf
> is set to true, a PDF will be generated.
>
> Thus, as shown above, I specifically set these 3 properties to false, my
> destination jsp is still not getting the format as I expected below
> <?xml version="1.0" encoding="UTF-8"?>
> <form>
> <section-1>
> <control-1>my_value</control-1>
> </section-1>
> </form>
>
> Can anyone advise what I have configured wrongly for this?
>
> Thanks.
>
>
> Han Ming
>
>
>
>
> --
> 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
>
>


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