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
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 |
Administrator
|
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 |
Hi Erik,
Thanks for the follow up.
My apologies for not updating.
I have solved the problem.
It's my configuration
My original config
<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"/> New config
<property as="xs:boolean" name="oxf.fr.detail.send.pdf" value="false"/>
<property as="xs:boolean" name="oxf.fr.email.attach-pdf" value="false"/> <property as="xs:boolean" name="oxf.fr.alfresco.send-pdf" value="false"/> The only difference is the type is xs:boolean instead of xs:string
Thanks.
Han Ming
On Tue, Sep 21, 2010 at 10:54 AM, Erik Bruchez <[hidden email]> wrote: 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 |
Hi Han Ming,
Could you retrieve the data as XML in your destination url. What is the complete configuration? I'm trying to do the same, but I still retrieve the content: <?xml version="1.0" encoding="UTF-8"?> > <url>/xforms-server/dynamic/1b123fc5b6ac18eb19735166364e2e1f</url> Help me please. Thank you very much! Josh |
Free forum by Nabble | Edit this page |