API call back handler on UI side while saving the form

classic Classic list List threaded Threaded
1 message Options
Jay
Reply | Threaded
Open this post in threaded view
|

API call back handler on UI side while saving the form

Jay
Hi

We have angularjs application. we have used the iframe to display orbeon
form in our application.
Firstly integrated the orbeon form using java embedding api
https://doc.orbeon.com/form-runner/linking-and-embedding/java-embedding-api
able to access orbeon form from the jsp application, Jsp application
provides form url that url called by iframe from angularjs application,
Orbeon form is displayed in my angularjs application.

When click the send button send action will call the API to save orbeon form
data in DB,
This action we confirgured on property file like below

We want to get the response on our UI side without redirect on any page,
Like you mention navigate action, Can I get response on this action when

I write javascript method for example
<property as="xs:string"
name="oxf.fr.detail.process.send.Sapphire.Questionnaire-demo">
  send( uri =
"http://localhost:8181/api/orbeon/data?patientid={xxf:get-request-parameter('patientid')}%26questionnaireid={xxf:get-request-parameter('questionnaireid')}%26action=save",
        method = "POST",  
        content = "xml")
  then navigate(uri = "javascript:myFunction()")
</property>


Thanks,
Jay

--
Sent from: http://discuss.orbeon.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 post to this group, send email to [hidden email].