Hi,
I have a "Send" button, which do below actions:
<property as="xs:string" name="oxf.fr.detail.process.send.wniosek.andrzej-test" >
save()
then send(
method = "post",
content = "xml"
)
then navigate(uri = "javascript:of_success('{//token}')")
</property>
save() and send() creates document and insert data to orbeon_form_data table.
Is it possible to get "id" or "document_id" of created document and pass it to function navigate() ?
Something like that: then navigate(uri = "javascript:of_success('{ xxf:get-request-attribute('document_id ')}') ?
I'd like to know in javascript function ID of the created document. How to do it?
Thanks,
Andrzej