pass document_id to navigate function

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

pass document_id to navigate function

Andrzej
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(
        uri        = "https://e-obywatel.pro3w.com.pl/orbeon-response.php",
        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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/ef272201-cf53-4b31-9ab3-aacca1bd4360n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: pass document_id to navigate function

Jarosław Kowalewski
Hi,
one of the option is to use xxf:instance('fr-parameters-instance')//document 
e.g. 
then navigate(uri = "javascript:of_success('{ xxf:instance('fr-parameters-instance')//document   }')")  

//Jarek


czw., 26 lis 2020 o 15:12 Andrzej Kaczówka <[hidden email]> napisał(a):
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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/ef272201-cf53-4b31-9ab3-aacca1bd4360n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAHFpwcUSw2%2BSb9MZ8XNuMqeSCb5%2BO2-9kvmn6TwUe9MuJUXDCA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: pass document_id to navigate function

Andrzej
Great! It works!

Dzięki,
Andrzej

czwartek, 26 listopada 2020 o 16:11:20 UTC+1 Jarek napisał(a):
Hi,
one of the option is to use xxf:instance('fr-parameters-instance')//document 
e.g. 
then navigate(uri = "javascript:of_success('{ xxf:instance('fr-parameters-instance')//document   }')")  

//Jarek


czw., 26 lis 2020 o 15:12 Andrzej Kaczówka <[hidden email]> napisał(a):
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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/ef272201-cf53-4b31-9ab3-aacca1bd4360n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/cbb061ce-6c73-4f6e-8d9d-4e48c45d2046n%40googlegroups.com.