Changing a submission's file name (8 hours left to get this to work)

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

Changing a submission's file name (8 hours left to get this to work)

Paul Saxelby
Hi all,

Thanks for the help Marcus.

I had a look at he government example at how to change the name of the
file being saved in the exist db.

The example seems to show that the way to do it is:

action="/exist/rest/db/orbeon/forms/{{xxforms:instance('parameters-instance')/form-id}}/{{xxforms:instance('parameters-instance')/document-id}}"

So I tried:

action="/exist/rest/db/orbeon/questionnaire/{{xxforms:instance('questionnaires-instance')/questionnaire/completedBy}}/response.xml"

and I get an error on the save.

If I use:
action="/exist/rest/db/orbeon/questionnaire/{{/questionnaire/completedBy}}/response.xml"

I get no error, but if for example I enter 'dd' in the completedBy
field on the form, the doc is not stored at:

http://localhost/ops/exist/rest/db/orbeon/questionnaire/dd/response.xml

What am I doing wrong please?
All I want is a form saved to a file that is identified in some way by
the value entered for 'completedBy'.

Many thanks,
Paul.



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Changing a submission's file name (8 hours left to get this to work)

Marcus-2
Hi Paul,
sorry, but i myself have not much time left :-(

Try the following:
------------------
action="/exist/rest/db/orbeon/questionnaire/response-{{xxforms:instance('questionnaires-instance')//completedBy}}.xml"

Hope that you'll find your file than at:
-------------------------------------
http://localhost/ops/exist/rest//db/orbeon/questionnaire/response-(completetBy).xml

Otherwise i hope someone else could help you today, because i have no time
at the moment!
I have to finish some functions today too and present it to the Prof... :-(

Regards, Marcus






--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Changing a submission's file name (8 hours left to get this to work)

Erik Bruchez
Administrator
In reply to this post by Paul Saxelby
Paul,

The Government Forms uses XSLT to glue the pieces of a form together,
which is why it uses double brackets ({{ and }}). If you use single
brackets in your @action attribute, things should work better.

-Erik

Paul Saxelby wrote:

> Hi all,
>
> Thanks for the help Marcus.
>
> I had a look at he government example at how to change the name of the
> file being saved in the exist db.
>
> The example seems to show that the way to do it is:
>
> action="/exist/rest/db/orbeon/forms/{{xxforms:instance('parameters-instance')/form-id}}/{{xxforms:instance('parameters-instance')/document-id}}"
>
>
> So I tried:
>
> action="/exist/rest/db/orbeon/questionnaire/{{xxforms:instance('questionnaires-instance')/questionnaire/completedBy}}/response.xml"
>
>
> and I get an error on the save.
>
> If I use:
> action="/exist/rest/db/orbeon/questionnaire/{{/questionnaire/completedBy}}/response.xml"
>
>
> I get no error, but if for example I enter 'dd' in the completedBy
> field on the form, the doc is not stored at:
>
> http://localhost/ops/exist/rest/db/orbeon/questionnaire/dd/response.xml
>
> What am I doing wrong please?
> All I want is a form saved to a file that is identified in some way by
> the value entered for 'completedBy'.
>
> Many thanks,
> Paul.
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws