Is there a process where I can configure how a form is viewed?
I am accessing a form via the form runner like so:
http://localhost:8080/orbeon/fr/cpf/AttachToForm/view/201506112but I also need to access it like so:
http://localhost:8080/orbeon/fr/cpf/AttachToForm/view/201506112?historical=truethe query parameter changes what data is returned from my persistence layer so I need to have this parameter passed through to the persistence GET request. I do something similar for edit and new forms by configuring the save-final process where I pass through 4 parameters that define where a form is saved in our system.
<property as="xs:string" name="oxf.fr.detail.process.save-final.cpf.*">
require-uploads
then validate-all
then save(
query = "{
if
(xxf:instance('fr-parameters-instance')/mode = 'new')
then
concat(
string-join(
for $name in
('patientId', 'episodeId', 'sectionId', 'documentCode')
return
if
(exists(xxf:get-request-parameter($name)))
then
concat($name,
'=',encode-for-uri(xxf:get-request-parameter($name)))
else
(),
'&'),
'&mode=',xxf:instance('fr-parameters-instance')/mode)
else
concat('mode=',xxf:instance('fr-parameters-instance')/mode)
}"
)
then
success-message("save-success")
then
navigate(uri= "javascript:window.history.back()")
recover
error-message("database-error")
</property>
Can I do this for a form view process somewhere? I tried configuring this in the review process but it doesn't seem to work.
thanks