Skip to main content
June 10, 2021
해결됨

How to bind XML data in Adaptive Form Page?

  • June 10, 2021
  • 5 답변들
  • 1739 조회

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?

 

이 주제는 답변이 닫혔습니다.
최고의 답변: user97597

@ramachandra_pokala - In your Submit section you can have pass XML to the workflow (REST) & you can read the same XML data in workflow.

5 답변

user97597답변
Level 3
June 14, 2021

@ramachandra_pokala - In your Submit section you can have pass XML to the workflow (REST) & you can read the same XML data in workflow.

Mayank_Gandhi
Adobe Employee
Adobe Employee
June 17, 2021

@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

June 17, 2021
Hi @mayank_gandhi, thank you for the reply.
Mayank_Gandhi
Adobe Employee
Adobe Employee
June 17, 2021

@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.

 

https://experienceleague.adobe.com/docs/experience-manager-learn/forms/adaptive-forms/prefill-service-adaptive-forms-article-use.html?lang=en#:~:text=To%20prefill%20adaptive%20form%20using,consume%20to%20prepopulate%20the%20fields.