TAS:Pokročilé/Pluginy/Input, Output/Import/ScenarioImporter/Struktura ScenarioImporteru při importu z xml/en: Porovnání verzí

Z Solvertech
Skočit na navigaci Skočit na vyhledávání
(založena nová stránka s textem „Structure of ScenarioImporter when importing from xml“)
 
(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>'''“)
 
Řádek 27: Řádek 27:
'''
'''


'''Example1.:''' <span class="underline"><span style="color: rgb(0,51,102);">''orderId''</span></span> chceme nadefinovat jako <span class="underline"><span style="color: rgb(0,51,102);">''id''</span></span>
'''Example1.:''' <span class="underline"><span style="color: rgb(0,51,102);">''orderId''</span></span> we want to define as <span class="underline"><span style="color: rgb(0,51,102);">''id''</span></span>


'''Syntax in the importer:'''
'''Syntax in the importer:'''

Aktuální verze z 17. 8. 2022, 12:11

Jiné jazyky:

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>