Over a year ago we started developing a template for invoices. That project was postponed, since another project took precedence. Now I had to revisit the old datamapper and template.
In our training we asked the trainer about our invoice xml structure, he acknowledged a software problem and gave us a workaround. He told us to do a loop on the first xml node (Rechnung) despite there always is only one Rechnung-Node in a dataset and not multiple.
That is this construct and back then it worked:
I was able to use the fields from the extract “Extraction Basisdaten” in the template in Designer by just dragging and dropping from the datamodel.
In one of the last versions the software behavior was changed, however. Now the data from the extraction is seen as looped data and if I try to drag and drop the data fields into the template I get the following error:
I took half a day to try to rescue the datamapping and template. But even if Datamapper allows dragging and dropping of steps and copy & paste of steps, the datamodel is damaged and no longer working if I do that (drag and drop the extraction outside of the Rechnung-loop or copy & paste the extraction outside of the Rechnung-loop).
I could just delete the extraction and recreate it, but since I had to rename the fields for usability and to avoid redundant field names that would be a lot of effort and would be prone to error, since I would have to reconstruct all field names. Unfortunately I cannot copy & paste a list of field names from the datamodel, to paste the field names later.
What can be done to salvage and rescue the datamodel and the template? Is there an option to deactivate the “nested detail fields”-message and just use the fields as non-looped fields?
TIA