Structure of ScenarioImporter when importing from xml
Verze z 17. 8. 2022, 12:11, kterou vytvořil Jana.safferova (diskuse | příspěvky) (založena nová stránka s textem „'''Example 2.:''' elements''' '''concerning the address we want to combine into the field ''<span class="underline">address</span>'''“)
We enter individual "columns" into the importer by listing all necessary elements, separated by an underscore.
XML:
<?xml version="1.0" encoding="utf-8" ?>
<order>
<customerId><![CDATA[322]] ></customerId>
<orderId><![CDATA[2017000123]] ></orderId>
<customerName><![CDATA[Frant Vomáčka (franta@franta.com)]] ></customerName>
<address>
<street><![CDATA[U Hvězdárny]] ></street>
<streetNumber><![CDATA[23]] ></streetNumber>
<city><![CDATA[Plzeň]] ></city>
<zip><![CDATA[32600]] ></zip>
</address>
<weightGrams><![CDATA[30100]] ></weightGrams>
<phone><![CDATA[603225588]] ></phone>
<email><![CDATA[franta@franta.com]] ></email>
<note><![CDATA[]] ></note>
</order>
Example1.: orderId we want to define as id
Syntax in the importer:
<string>id;order_orderId</string>
'Example 2.: elements concerning the address we want to combine into the field address
Syntax in the importer:
<ColumnsConcatenate>
<string>stop2;address;;dynamic;order_address_street</string>
<string>stop2;address;, ;dynamic;order_address_streetNumber</string>
<string>stop2;address; ;dynamic;order_address_zip</string>
<string>stop2;address; ;dynamic;order_address_city</string>
</ColumnsConcatenate>