In this step, you reference the newly created Technical Process in the List component and configure the display of the data.
To do this, insert a property in the <Properties/> area for each XML element previously created in the mapping. You then define the columns of the list to display in the <Columns/> area.
Then you reference the newly built List component in the WAD file of your Web App. This file contains the definition of your Web App, is created automatically when a Web App Project is created and cannot be deleted. Here, you add new modules or components to your Web App.
You can use the CTRL+SPACE key combination to display available elements and parameters in the editor.
Previous step: Defining the Technical Process: Inserting an End Point
Referencing the process
-
Open the
Customer_list.listcomponent in the editor. -
Add the value
process="<process_name>.wrf"to the second line of the component:<?xml version="1.0" encoding="UTF-8"?> <ListComponent xmlns="http://softproject.de/webapp/1.0" process="ProcessWebApp.wrf">
You can also drag and drop the corresponding Technical Process between the quotation marks.
-
Click
Save.
Inserting properties
-
In the
<Properties/>area, insert a property of theComplextype for theCustomerelement:<Properties> <Property name=Customer type="Complex"></Property> </Properties> -
Within the
Customerproperty, insert additional properties of theStringtype for all other subordinate XML elements:<Properties> <Property name="Customer" type="Complex"> <Property name="Vorname" type="String"></Property> <Property name="Nachname" type="String"></Property> <Property name="Firma" type="String"></Property> <Property name="Adresse" type="String"></Property> </Property> </Properties> -
Click
Save.
Defining columns
-
In the
<Columns/>area, create a column for each property of theCustomerproperty:<Columns> <Column value="#Customer.Vorname"></Column> <Column value="#Customer.Nachname"></Column> <Column value="#Customer.Firma"></Column> <Column value="#Customer.Adresse"></Column> </Columns> -
Use the
displayNameattribute to specify the names of the columns to display:<Columns> <Column value="#Customer.Vorname" displayName="Vorname"></Column> <Column value="#Customer.Nachname" displayName="Nachname"></Column> <Column value="#Customer.Firma" displayName="Firma"></Column> <Column value="#Customer.Adresse" displayName="Adresse"></Column> </Columns> -
Click
Save.
Inserting the List component into the Web App
-
Open the WAD file of your Web App.
-
In the
<Components/>area, insert a new<ComponentReference/>with the following values:<ComponentReference source="<Name der Component>.grid" path="Customers" displayName="Customers" default="false"/> -
Click
Save.
Next step: Opening the Web App in the Browser