You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/refguide10/modeling/integration/mapping-documents/xml-documents/importing-xml-documents.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,13 +34,13 @@ To prepare the data structure and the GUI, follow these steps:
34
34
35
35
1. Create the following **Customer** entity in your domain model:
5. Create the overview and detail pages to manage objects of the **XMLDocument** type.
46
46
6. Create a menu item to access the XML document overview page (for more information, see [Setting Up Navigation](/refguide10/setting-up-the-navigation-structure/)).
@@ -54,11 +54,11 @@ To add an XML schema (XSD), follow these steps:
54
54
1. Right-click a module in the **App Explorer** and select **Add Other** > **XML schema** from the menu.
55
55
2. Enter *CustomersXSD* as the **Name** and click **OK**:
3. On the **Select schema elements** dialog box, make sure **XML schema** is selected as the **Schema source**, and select **CustomerXSD** as the schema. Then, click **Expand all** to see the tree with elements.
77
77
4. Select the following elements: **Customer**, **ID**, **CompanyName**, **Address**, **City**, and **PostalCode**:
8. In the **Map entity** editor, do the following:
95
95
* Select **Find an object (by key)** for the **Method** (to be able to search for an object, you need to define one or more keys in the value-to-attribute mappings)
96
96
* Select **Create** for **If no object was found**
97
97
* Select attributes for all five value-to-attribute mappings
In this section, you will create the logic to import the customers stored in an [XML document](/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/importing-xml-documents/18581651.xml) in your application.
106
+
In this section, you will create the logic to import the customers stored in an [XML document](/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/importing-xml-documents/customers-xml.xml) in your application.
107
107
108
108
To create the import logic, follow these steps:
109
109
110
110
1. Open the **XMLDocument** overview page. It should look this, using a default layout:
3. Double-click the new button to open the **Edit Action Button** editor and do the following:<br />
119
119
1. Change the caption to *Import XML Document*<br />
120
120
2. For the **On click** event, select **Call a microflow**, then click **Select** for the microflow, create a new microflow, and name it *XMLDocument_Import*.<br />
4. Right-click the new **Import XML Document** button and select **Go to on click microflow** in the context menu. You should see an empty microflow with **XMLDocument** as the input parameter:
5. Open the **Toolbox** and drag an **Import with mapping** activity to the line between the start and end event. This inserts a new import XML activity.
130
130
6. Double-click the new activity to open the **Import With Mapping** dialog box and do the following:<br />
131
131
1. Select the input parameter **XMLDocument** as the **Variable**.<br />
132
132
2. Select the previously created XML-to-domain mapping **ImportCustomersMapping** as the mapping.<br />
1. Deploy the application, upload [Customers.xml](/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/importing-xml-documents/18581651.xml), and trigger the import microflow.
145
+
1. Deploy the application, upload [Customers.xml](/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/importing-xml-documents/sample-xsd.xml), and trigger the import microflow.
146
146
2. Open the customer overview page and check if the customer data has been imported into your application.
0 commit comments