Hi All,
The Form are created using AEM Adaptive Form and applied the bind reference with xml schema. The requirement is, have to create a OSGI REST service that should accept form name & xml data with reference to field binding and should return the Adaptive Form page URL with xml data binding.
Could you please suggest how to bind the xml data to Adaptive Form page and return in service?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@ramachandra_pokala - In your Submit section you can have pass XML to the workflow (REST) & you can read the same XML data in workflow.
@ramachandra_pokala - In your Submit section you can have pass XML to the workflow (REST) & you can read the same XML data in workflow.
@ramachandra_pokala You can go to form properties and bind the form the xsd. To get data from the form and send it to a service, call the below method and send the received response to your service.
https://helpx.adobe.com/experience-manager/6-3/forms/javascript-api/GuideBridge.html
guideBridge.getData({
success : function (guideResultObject) {
console.log("data received" + guideResultObject.data);
}
error : function (guideResultObject) {
console.error("API Failed");
var msg = guideResultObject.getNextMessage();
while (msg != null) {
console.error(msg.message);
msg = guideResultObject.getNextMessage();
}
}
});
- Mayank Gandhi
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@ramachandra_pokala That's exactly what XSD will help you with. Take a dummy data and convert to xsd(bunch of free tools available). Bind form with XSD and as the data will come it will be filled based on binding. Or use form data model, it supports both soap and REST.
Views
Likes
Replies