Hi,
We have a requirement to render PDF from Adaptive form on AEM 6.5.
The rendered PDF should have the data from the Adaptive form as well.
Currently I am using the below code
window.guideBridge.getDataXML(
{
success: function(result) {
var formData = new FormData();
formData.append("dataXml",result.data);
var url = "servletpath?data=" + result.data + "&path="+path;
to fetch the formdata from the adaptive form. This script is trigged on clicking a button in Adaptive form.
A custom servlet is called from this script, which uses
formservice.outputservice to render static PDFs along with data.
The issue that we are facing is that the application is placed behind SI proxy and the request is then redirected from SI proxy server to AEM load balancer. In this case, the SI prxy server is appending url /abc/def/ to access all the pages on AEM.
As a result, the AF are available on <SIProxydomain>:/abc/def/content/..path of adpative form.
This is causing problem when window.guideBridge.getDataXML in the script is trying to access
<SIProxydomain>:/content/..path of adpative form/jcr:content/guideContainer.af.internalsubmit.jsp
as this is internally generated url, I am not able to add /abc/def to this url.
Is there any other way to get form data from form fields in an adaptive form and pass it to custom servlet.
Thank you.