1
0
-1

I have created a sample form using "Maguire - Default form" template and added two fields. see form structure below.

Have tried mapping submission data using Data Mapper with the below formseed.xml

<AvokaSmartForm>
<data>
<Name/>
<Age/>
</data>
</AvokaSmartForm>

Below the screenshot of data mapping screen.

After mapping the fields, below Submission Data properties of "Name" field are automatically set.

XML location → Absolute

XML Name → data/Name

Full Path → /AvokaSmartForm/data/Name

After completing the above setup, I have submitted a transaction and have queried  the Txn setting the tracking code & withAll() properties on TxnQuery() object. Below the formXml value of retried Txn.


<?xml version="1.0" encoding="UTF-8"?>
<AvokaSmartForm>
<SFMData>
<SystemProfile>
<FormCode>tesxmlmap</FormCode>
<TemplateVersionNumber>1</TemplateVersionNumber>
<UpdateUserProfile>false</UpdateUserProfile>
<HostContext>Page</HostContext>
<SubmissionType>Submitted</SubmissionType>
<OnlineSaveEnabledFlag>true</OnlineSaveEnabledFlag>
<Referer>
<![CDATA[https%3A%2F%2Fdev.wipro.transactcentral.com%2Fmanager%2Fadmin%2Fhome.htm%3F_wid%3D58]]>
</Referer>
<RequestLogKey>e949799f971f201d2a8e3565e5ee7a23</RequestLogKey>
<TestMode>false</TestMode>
<SubmissionNumber>2659</SubmissionNumber>
<DisplayMode>Entry</DisplayMode>
<ShareForm/>
<ComposerDataVersion>1.0.23</ComposerDataVersion>
<ServerBuildNumber>5.0.7</ServerBuildNumber>
<RevisionNumber>0</RevisionNumber>
<FormDataServiceURL>https://dev.wipro.transactcentral.com/maguire/servlet/FormDynamicDataServlet</FormDataServiceURL>
<OfflineSubmissionId>c3f72173850dfa0833f521f87bc97885</OfflineSubmissionId>
<TrackingCode>F2JFQHW</TrackingCode>
</SystemProfile>
</SFMData>
</AvokaSmartForm>


It does not have <data> and its child nodes as expected. Kindly advise on how to proceed with this.

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi,

      'data' is treated as a reserved name.  It works if you use something like 'details' instead.

      1. Balakrishnan Murugesan

        Thanks for your help, Bill.

      CommentAdd your comment...