including the form name in the submitted XML(workflow-send)

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

including the form name in the submitted XML(workflow-send)

Håvard Nesvold2

Hi everyone!

 

When using the workflow-send functionality to submit XML to a URL specified by the oxf.fr.detail.send.uri.*.* property I would very much like the form name to be included with the submitted XML, is there any way to achieve this?

 

Thanks for all help

 

-Håvard

 



Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende beregnet for den institusjonen
eller personen den er sendt til eller ment sendt til. Dersom e-posten er sendt feil, bes du informere Gjensidige pr e-post eller telefon, dessuten slette e-posten og
eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver bruk av informasjonen er i tilfelle ulovlig.
Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges overbevisning er fri for virus og andre feil som kan påvirke PC eller it-systemer, åpnes e-posten
på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke denne e-posten.



--
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: including the form name in the submitted XML(workflow-send)

Erik Bruchez
Administrator
Håvard,

Currently not. We would like to improve this functionality soon though.

-Erik

2010/8/17 Håvard Nesvold <[hidden email]>:

> Hi everyone!
>
>
>
> When using the workflow-send functionality to submit XML to a URL specified
> by the oxf.fr.detail.send.uri.*.* property I would very much like the form
> name to be included with the submitted XML, is there any way to achieve
> this?
>
>
>
> Thanks for all help
>
>
>
> -Håvard
>
>
>
> ________________________________
> Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
> opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
> beregnet for den institusjonen
> eller personen den er sendt til eller ment sendt til. Dersom e-posten er
> sendt feil, bes du informere Gjensidige pr e-post eller telefon, dessuten
> slette e-posten og
> eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver bruk
> av informasjonen er i tilfelle ulovlig.
> Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges overbevisning
> er fri for virus og andre feil som kan påvirke PC eller it-systemer, åpnes
> e-posten
> på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
> økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke denne
> e-posten.
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: including the form name in the submitted XML(workflow-send)

Håvard Nesvold
Thanks Erik.
Keep up the good work fellas!

-Håvard


Den 21. august 2010 03:21 skrev Erik Bruchez <[hidden email]> følgende:
Håvard,

Currently not. We would like to improve this functionality soon though.

-Erik

2010/8/17 Håvard Nesvold <[hidden email]>:
> Hi everyone!
>
>
>
> When using the workflow-send functionality to submit XML to a URL specified
> by the oxf.fr.detail.send.uri.*.* property I would very much like the form
> name to be included with the submitted XML, is there any way to achieve
> this?
>
>
>
> Thanks for all help
>
>
>
> -Håvard
>
>
>
> ________________________________
> Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
> opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
> beregnet for den institusjonen
> eller personen den er sendt til eller ment sendt til. Dersom e-posten er
> sendt feil, bes du informere Gjensidige pr e-post eller telefon, dessuten
> slette e-posten og
> eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver bruk
> av informasjonen er i tilfelle ulovlig.
> Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges overbevisning
> er fri for virus og andre feil som kan påvirke PC eller it-systemer, åpnes
> e-posten
> på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
> økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke denne
> e-posten.
>
>
>
> --
> 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




--
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: including the form name in the submitted XML(workflow-send)

Han Ming Low
In reply to this post by Erik Bruchez
Hi Erik,
 
Sorry if I have interrupted this thread.
 
Just like to know that if I would like to include the application and form name into the XML submitted, where in the code would it be a good place to start looking at?
 
Would greatly appreciate any advise.
 
Thanks.
 
 
Han Ming

2010/8/21 Erik Bruchez <[hidden email]>
Håvard,

Currently not. We would like to improve this functionality soon though.

-Erik

2010/8/17 Håvard Nesvold <[hidden email]>:
> Hi everyone!
>
>
>
> When using the workflow-send functionality to submit XML to a URL specified
> by the oxf.fr.detail.send.uri.*.* property I would very much like the form
> name to be included with the submitted XML, is there any way to achieve

> this?
>
>
>
> Thanks for all help
>
>
>
> -Håvard
>
>
>
> ________________________________
> Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
> opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
> beregnet for den institusjonen
> eller personen den er sendt til eller ment sendt til. Dersom e-posten er
> sendt feil, bes du informere Gjensidige pr e-post eller telefon, dessuten
> slette e-posten og
> eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver bruk
> av informasjonen er i tilfelle ulovlig.
> Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges overbevisning
> er fri for virus og andre feil som kan påvirke PC eller it-systemer, åpnes
> e-posten
> på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
> økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke denne
> e-posten.
>
>
>
> --
> 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




--
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: including the form name in the submitted XML(workflow-send)

Erik Bruchez
Administrator
You could use the following expressions to read the data:

xxforms:instance('fr-parameters-instance')/app
xxforms:instance('fr-parameters-instance')/form

and then store this into your XML.

We *hope* to include this as a built-in feature soon.

-Erik

On Sun, Sep 12, 2010 at 8:11 PM, Han Ming Low <[hidden email]> wrote:

> Hi Erik,
>
> Sorry if I have interrupted this thread.
>
> Just like to know that if I would like to include the application and form
> name into the XML submitted, where in the code would it be a good place to
> start looking at?
>
> Would greatly appreciate any advise.
>
> Thanks.
>
>
> Han Ming
>
> 2010/8/21 Erik Bruchez <[hidden email]>
>>
>> Håvard,
>>
>> Currently not. We would like to improve this functionality soon though.
>>
>> -Erik
>>
>> 2010/8/17 Håvard Nesvold <[hidden email]>:
>> > Hi everyone!
>> >
>> >
>> >
>> > When using the workflow-send functionality to submit XML to a URL
>> > specified
>> > by the oxf.fr.detail.send.uri.*.* property I would very much like the
>> > form
>> > name to be included with the submitted XML, is there any way to achieve
>> > this?
>> >
>> >
>> >
>> > Thanks for all help
>> >
>> >
>> >
>> > -Håvard
>> >
>> >
>> >
>> > ________________________________
>> > Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
>> > opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
>> > beregnet for den institusjonen
>> > eller personen den er sendt til eller ment sendt til. Dersom e-posten er
>> > sendt feil, bes du informere Gjensidige pr e-post eller telefon,
>> > dessuten
>> > slette e-posten og
>> > eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver
>> > bruk
>> > av informasjonen er i tilfelle ulovlig.
>> > Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges
>> > overbevisning
>> > er fri for virus og andre feil som kan påvirke PC eller it-systemer,
>> > åpnes
>> > e-posten
>> > på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
>> > økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke
>> > denne
>> > e-posten.
>> >
>> >
>> >
>> > --
>> > 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
>>
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: including the form name in the submitted XML(workflow-send)

Han Ming Low
Hi Erik,
 
Thanks for the tip.
 
But sorry to ask another simple question.
 
I have managed to output the value of the app and form with your help using
<xforms:output value="xxforms:instance('fr-parameters-instance')/app"/>
<xforms:output value="xxforms:instance('fr-parameters-instance')/form"/>
However, how can I "link" this 2 values to the XML submitted or fr-form-instance?
 
I try to use
<xforms:setvalue ref="instance('fr-form-instance')/form/section-1/app" value="xxforms:instance('fr-parameters-instance')/app"/>
with a new field "/form/section-1/app"
But, it was unsuccessful.
I have to say I not even sure if I have included this line in the right place.
I have tried to insert the code in the <xform:model> and <xhtml:body> section, but they are unsuccessful.
 
Any advise on this?
 
Really appreciate all your help.
 
Thanks.
 
 
Han Ming


 
On Tue, Sep 14, 2010 at 12:58 PM, Erik Bruchez <[hidden email]> wrote:
You could use the following expressions to read the data:

xxforms:instance('fr-parameters-instance')/app
xxforms:instance('fr-parameters-instance')/form

and then store this into your XML.

We *hope* to include this as a built-in feature soon.

-Erik

On Sun, Sep 12, 2010 at 8:11 PM, Han Ming Low <[hidden email]> wrote:
> Hi Erik,
>
> Sorry if I have interrupted this thread.
>
> Just like to know that if I would like to include the application and form
> name into the XML submitted, where in the code would it be a good place to
> start looking at?
>
> Would greatly appreciate any advise.
>

> Thanks.
>
>
> Han Ming
>
> 2010/8/21 Erik Bruchez <[hidden email]>
>>
>> Håvard,
>>
>> Currently not. We would like to improve this functionality soon though.
>>
>> -Erik
>>
>> 2010/8/17 Håvard Nesvold <[hidden email]>:
>> > Hi everyone!
>> >
>> >
>> >
>> > When using the workflow-send functionality to submit XML to a URL
>> > specified
>> > by the oxf.fr.detail.send.uri.*.* property I would very much like the
>> > form
>> > name to be included with the submitted XML, is there any way to achieve
>> > this?
>> >
>> >
>> >
>> > Thanks for all help
>> >
>> >
>> >
>> > -Håvard
>> >
>> >
>> >
>> > ________________________________
>> > Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
>> > opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
>> > beregnet for den institusjonen
>> > eller personen den er sendt til eller ment sendt til. Dersom e-posten er
>> > sendt feil, bes du informere Gjensidige pr e-post eller telefon,
>> > dessuten
>> > slette e-posten og
>> > eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver
>> > bruk
>> > av informasjonen er i tilfelle ulovlig.
>> > Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges
>> > overbevisning
>> > er fri for virus og andre feil som kan påvirke PC eller it-systemer,
>> > åpnes
>> > e-posten
>> > på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
>> > økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke
>> > denne
>> > e-posten.
>> >
>> >
>> >
>> > --
>> > 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
>>
>
>
>
> --
> 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




--
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: including the form name in the submitted XML(workflow-send)

Håvard Nesvold
Something that works and that can be set up for all of your forms is adding a snippet to the template.xml located under orbeon-form-builder.jar/forms/orbeon/builder/form/ (yes - it is a modification of the orbeon.war...): Find the below xml, and add the "form-metadata" element:

<!-- Main instance -->
<xforms:instance id="fr-form-instance">
  <form>
     <section-1>
        <control-1/>
     </section-1>
     <form-metadata>
        <form-name/>
        <application-name/>
     </form-metadata>
  </form>
</xforms:instance>

And (e.g. directly below it), add a snippet to populate the form instance data with the appropriate values;
<xforms:setvalue ref="instance('fr-form-instance')/form-metadata/form-name" ev:event="xforms-ready" value="instance('fr-form-metadata')/form-name"/>
<xforms:setvalue ref="instance('fr-form-instance')/form-metadata/application-name" ev:event="xforms-ready" value="instance('fr-form-metadata')/application-name"/>

This way, the form name and application name is at least included in the submitted XML, and for ALL forms created in the form builder from that point. (you can of course add the xforms manually for each form too :))

Perhaps there are better ways to place code like this?



2010/9/14 Han Ming Low <[hidden email]>
Hi Erik,
 
Thanks for the tip.
 
But sorry to ask another simple question.
 
I have managed to output the value of the app and form with your help using
<xforms:output value="xxforms:instance('fr-parameters-instance')/app"/>
<xforms:output value="xxforms:instance('fr-parameters-instance')/form"/>
However, how can I "link" this 2 values to the XML submitted or fr-form-instance?
 
I try to use
<xforms:setvalue ref="instance('fr-form-instance')/form/section-1/app" value="xxforms:instance('fr-parameters-instance')/app"/>
with a new field "/form/section-1/app"
But, it was unsuccessful.
I have to say I not even sure if I have included this line in the right place.
I have tried to insert the code in the <xform:model> and <xhtml:body> section, but they are unsuccessful.
 
Any advise on this?
 
Really appreciate all your help.
 
Thanks.
 
 
Han Ming


 
On Tue, Sep 14, 2010 at 12:58 PM, Erik Bruchez <[hidden email]> wrote:
You could use the following expressions to read the data:

xxforms:instance('fr-parameters-instance')/app
xxforms:instance('fr-parameters-instance')/form

and then store this into your XML.

We *hope* to include this as a built-in feature soon.

-Erik

On Sun, Sep 12, 2010 at 8:11 PM, Han Ming Low <[hidden email]> wrote:
> Hi Erik,
>
> Sorry if I have interrupted this thread.
>
> Just like to know that if I would like to include the application and form
> name into the XML submitted, where in the code would it be a good place to
> start looking at?
>
> Would greatly appreciate any advise.
>
> Thanks.
>
>
> Han Ming
>
> 2010/8/21 Erik Bruchez <[hidden email]>
>>
>> Håvard,
>>
>> Currently not. We would like to improve this functionality soon though.
>>
>> -Erik
>>
>> 2010/8/17 Håvard Nesvold <[hidden email]>:
>> > Hi everyone!
>> >
>> >
>> >
>> > When using the workflow-send functionality to submit XML to a URL
>> > specified
>> > by the oxf.fr.detail.send.uri.*.* property I would very much like the
>> > form
>> > name to be included with the submitted XML, is there any way to achieve
>> > this?
>> >
>> >
>> >
>> > Thanks for all help
>> >
>> >
>> >
>> > -Håvard
>> >
>> >
>> >
>> > ________________________________
>> > Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
>> > opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
>> > beregnet for den institusjonen
>> > eller personen den er sendt til eller ment sendt til. Dersom e-posten er
>> > sendt feil, bes du informere Gjensidige pr e-post eller telefon,
>> > dessuten
>> > slette e-posten og
>> > eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver
>> > bruk
>> > av informasjonen er i tilfelle ulovlig.
>> > Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges
>> > overbevisning
>> > er fri for virus og andre feil som kan påvirke PC eller it-systemer,
>> > åpnes
>> > e-posten
>> > på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
>> > økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke
>> > denne
>> > e-posten.
>> >
>> >
>> >
>> > --
>> > 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
>>
>
>
>
> --
> 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




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

Re: Re: Re: Re: Re: Re: including the form name in the submitted XML(workflow-send)

Han Ming Low
Hi Håvard,
 
Thanks for the steps.
 
Works beautifully!!!
 
I'm really grateful for the tip.
 
Thanks again.
 
 
Han Ming


 
On Tue, Sep 14, 2010 at 9:09 PM, Håvard Nesvold <[hidden email]> wrote:
Something that works and that can be set up for all of your forms is adding a snippet to the template.xml located under orbeon-form-builder.jar/forms/orbeon/builder/form/ (yes - it is a modification of the orbeon.war...): Find the below xml, and add the "form-metadata" element:

<!-- Main instance -->
<xforms:instance id="fr-form-instance">
  <form>
     <section-1>
        <control-1/>
     </section-1>
     <form-metadata>
        <form-name/>
        <application-name/>
     </form-metadata>
  </form>
</xforms:instance>

And (e.g. directly below it), add a snippet to populate the form instance data with the appropriate values;
<xforms:setvalue ref="instance('fr-form-instance')/form-metadata/form-name" ev:event="xforms-ready" value="instance('fr-form-metadata')/form-name"/>
<xforms:setvalue ref="instance('fr-form-instance')/form-metadata/application-name" ev:event="xforms-ready" value="instance('fr-form-metadata')/application-name"/>

This way, the form name and application name is at least included in the submitted XML, and for ALL forms created in the form builder from that point. (you can of course add the xforms manually for each form too :))

Perhaps there are better ways to place code like this?



2010/9/14 Han Ming Low <[hidden email]>

Hi Erik,
 
Thanks for the tip.
 
But sorry to ask another simple question.
 
I have managed to output the value of the app and form with your help using
<xforms:output value="xxforms:instance('fr-parameters-instance')/app"/>
<xforms:output value="xxforms:instance('fr-parameters-instance')/form"/>
However, how can I "link" this 2 values to the XML submitted or fr-form-instance?
 
I try to use
<xforms:setvalue ref="instance('fr-form-instance')/form/section-1/app" value="xxforms:instance('fr-parameters-instance')/app"/>
with a new field "/form/section-1/app"
But, it was unsuccessful.
I have to say I not even sure if I have included this line in the right place.
I have tried to insert the code in the <xform:model> and <xhtml:body> section, but they are unsuccessful.
 
Any advise on this?
 
Really appreciate all your help.
 
Thanks.
 
 
Han Ming


 
On Tue, Sep 14, 2010 at 12:58 PM, Erik Bruchez <[hidden email]> wrote:
You could use the following expressions to read the data:

xxforms:instance('fr-parameters-instance')/app
xxforms:instance('fr-parameters-instance')/form

and then store this into your XML.

We *hope* to include this as a built-in feature soon.

-Erik

On Sun, Sep 12, 2010 at 8:11 PM, Han Ming Low <[hidden email]> wrote:
> Hi Erik,
>
> Sorry if I have interrupted this thread.
>
> Just like to know that if I would like to include the application and form
> name into the XML submitted, where in the code would it be a good place to
> start looking at?
>
> Would greatly appreciate any advise.
>
> Thanks.
>
>
> Han Ming
>
> 2010/8/21 Erik Bruchez <[hidden email]>
>>
>> Håvard,
>>
>> Currently not. We would like to improve this functionality soon though.
>>
>> -Erik
>>
>> 2010/8/17 Håvard Nesvold <[hidden email]>:
>> > Hi everyone!
>> >
>> >
>> >
>> > When using the workflow-send functionality to submit XML to a URL
>> > specified
>> > by the oxf.fr.detail.send.uri.*.* property I would very much like the
>> > form
>> > name to be included with the submitted XML, is there any way to achieve
>> > this?
>> >
>> >
>> >
>> > Thanks for all help
>> >
>> >
>> >
>> > -Håvard
>> >
>> >
>> >
>> > ________________________________
>> > Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
>> > opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
>> > beregnet for den institusjonen
>> > eller personen den er sendt til eller ment sendt til. Dersom e-posten er
>> > sendt feil, bes du informere Gjensidige pr e-post eller telefon,
>> > dessuten
>> > slette e-posten og
>> > eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver
>> > bruk
>> > av informasjonen er i tilfelle ulovlig.
>> > Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges
>> > overbevisning
>> > er fri for virus og andre feil som kan påvirke PC eller it-systemer,
>> > åpnes
>> > e-posten
>> > på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
>> > økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke
>> > denne
>> > e-posten.
>> >
>> >
>> >
>> > --
>> > 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
>>
>
>
>
> --
> 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




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




--
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: Re: including the form name in the submitted XML(workflow-send)

Erik Bruchez
Administrator
In reply to this post by Håvard Nesvold
Håvard,

Hopefully in the future we can place such code in the propose envelope
mechanism:

http://wiki.orbeon.com/forms/projects/form-runner-data-envelope

-Erik

On Tue, Sep 14, 2010 at 6:09 AM, Håvard Nesvold <[hidden email]> wrote:

> Something that works and that can be set up for all of your forms is adding
> a snippet to the template.xml located
> under orbeon-form-builder.jar/forms/orbeon/builder/form/ (yes - it is a
> modification of the orbeon.war...): Find the below xml, and add the
> "form-metadata" element:
> <!-- Main instance -->
> <xforms:instance id="fr-form-instance">
>   <form>
>      <section-1>
>         <control-1/>
>      </section-1>
>      <form-metadata>
>         <form-name/>
>         <application-name/>
>      </form-metadata>
>   </form>
> </xforms:instance>
> And (e.g. directly below it), add a snippet to populate the form instance
> data with the appropriate values;
> <xforms:setvalue ref="instance('fr-form-instance')/form-metadata/form-name"
> ev:event="xforms-ready" value="instance('fr-form-metadata')/form-name"/>
> <xforms:setvalue
> ref="instance('fr-form-instance')/form-metadata/application-name"
> ev:event="xforms-ready"
> value="instance('fr-form-metadata')/application-name"/>
> This way, the form name and application name is at least included in the
> submitted XML, and for ALL forms created in the form builder from that
> point. (you can of course add the xforms manually for each form too :))
> Perhaps there are better ways to place code like this?
>
>
> 2010/9/14 Han Ming Low <[hidden email]>
>>
>> Hi Erik,
>>
>> Thanks for the tip.
>>
>> But sorry to ask another simple question.
>>
>> I have managed to output the value of the app and form with your
>> help using
>> <xforms:output value="xxforms:instance('fr-parameters-instance')/app"/>
>> <xforms:output value="xxforms:instance('fr-parameters-instance')/form"/>
>> However, how can I "link" this 2 values to the XML submitted or
>> fr-form-instance?
>>
>> I try to use
>> <xforms:setvalue ref="instance('fr-form-instance')/form/section-1/app"
>> value="xxforms:instance('fr-parameters-instance')/app"/>
>> with a new field "/form/section-1/app"
>> But, it was unsuccessful.
>> I have to say I not even sure if I have included this line in the right
>> place.
>> I have tried to insert the code in the <xform:model> and <xhtml:body>
>> section, but they are unsuccessful.
>>
>> Any advise on this?
>>
>> Really appreciate all your help.
>>
>> Thanks.
>>
>>
>> Han Ming
>>
>>
>> On Tue, Sep 14, 2010 at 12:58 PM, Erik Bruchez <[hidden email]>
>> wrote:
>>>
>>> You could use the following expressions to read the data:
>>>
>>> xxforms:instance('fr-parameters-instance')/app
>>> xxforms:instance('fr-parameters-instance')/form
>>>
>>> and then store this into your XML.
>>>
>>> We *hope* to include this as a built-in feature soon.
>>>
>>> -Erik
>>>
>>> On Sun, Sep 12, 2010 at 8:11 PM, Han Ming Low <[hidden email]>
>>> wrote:
>>> > Hi Erik,
>>> >
>>> > Sorry if I have interrupted this thread.
>>> >
>>> > Just like to know that if I would like to include the application and
>>> > form
>>> > name into the XML submitted, where in the code would it be a good place
>>> > to
>>> > start looking at?
>>> >
>>> > Would greatly appreciate any advise.
>>> >
>>> > Thanks.
>>> >
>>> >
>>> > Han Ming
>>> >
>>> > 2010/8/21 Erik Bruchez <[hidden email]>
>>> >>
>>> >> Håvard,
>>> >>
>>> >> Currently not. We would like to improve this functionality soon
>>> >> though.
>>> >>
>>> >> -Erik
>>> >>
>>> >> 2010/8/17 Håvard Nesvold <[hidden email]>:
>>> >> > Hi everyone!
>>> >> >
>>> >> >
>>> >> >
>>> >> > When using the workflow-send functionality to submit XML to a URL
>>> >> > specified
>>> >> > by the oxf.fr.detail.send.uri.*.* property I would very much like
>>> >> > the
>>> >> > form
>>> >> > name to be included with the submitted XML, is there any way to
>>> >> > achieve
>>> >> > this?
>>> >> >
>>> >> >
>>> >> >
>>> >> > Thanks for all help
>>> >> >
>>> >> >
>>> >> >
>>> >> > -Håvard
>>> >> >
>>> >> >
>>> >> >
>>> >> > ________________________________
>>> >> > Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
>>> >> > opplysninger underlagt rettslig taushetsplikt. E-posten er
>>> >> > utelukkende
>>> >> > beregnet for den institusjonen
>>> >> > eller personen den er sendt til eller ment sendt til. Dersom
>>> >> > e-posten er
>>> >> > sendt feil, bes du informere Gjensidige pr e-post eller telefon,
>>> >> > dessuten
>>> >> > slette e-posten og
>>> >> > eventuelle vedlegg, uten å ta kopier eller videresende e-posten.
>>> >> > Enhver
>>> >> > bruk
>>> >> > av informasjonen er i tilfelle ulovlig.
>>> >> > Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges
>>> >> > overbevisning
>>> >> > er fri for virus og andre feil som kan påvirke PC eller it-systemer,
>>> >> > åpnes
>>> >> > e-posten
>>> >> > på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade
>>> >> > eller
>>> >> > økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke
>>> >> > denne
>>> >> > e-posten.
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> > 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
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > 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
>>>
>>
>>
>>
>> --
>> 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
>
>


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