Page Source Listings
The design will have three XML page sources:
•$XML1 is a tree that is created directly in the design. Its purpose is to store the end-user's selection of which customer's order details to display in the sub page. The $XML1 page source is shared by both pages of the design.
•$CUSTOMERS contains the details of three customers. The XML tree structure and the customer data are imported from the XML file Customers.xml (see listing below). The $CUSTOMERS page source is used in both the top page as well as the sub page.
•$ORDERS contains the details of six orders placed by the three customers of Customers.xml. The XML tree structure and the order details are imported from the XML file Orders.xml (see listing below). The orders in the $ORDERS page source are displayed in a table in the Orders sub page.
Located in the MobileTogether folder of the (My) Documents folder: MobileTogetherDesignerExamples\Tutorials\Customers.xml.
<?xml version="1.0" encoding="UTF-8"?> <Customers> <Customer code="123"> <Name>New Fashion</Name> <AddressLine01>56 Tromer Street</AddressLine01> <AddressLine02></AddressLine02> <City>Stockholm</City> <ZipCode>1000</ZipCode> <Country>Sweden</Country> <Email>contact01@newfashion.dummy</Email> <Phone/> </Customer> <Customer code="456"> <Name>HiDeHo</Name> <AddressLine01>7 Norsk Street</AddressLine01> <AddressLine02></AddressLine02> <City>Oslo</City> <ZipCode>7065</ZipCode> <Country>Norway</Country> <Email>contact02@hideho.dummy</Email> <Phone/> </Customer> <Customer code="789"> <Name>JuniorsRV</Name> <AddressLine01>81 Bjork Street</AddressLine01> <AddressLine02></AddressLine02> <City>Copenhagen</City> <ZipCode>4538</ZipCode> <Country>Denmark</Country> <Email>contact03@juniorsrus.dummy</Email> <Phone/> </Customer> </Customers>
|
Located in the MobileTogether folder of the (My) Documents folder: MobileTogetherDesignerExamples\Tutorials\AltovaProducts.xml.
<?xml version="1.0" encoding="UTF-8"?> <Orders> <Order number="001"> <CustomerCode>456</CustomerCode> <OrderDate>2015-04-03</OrderDate> <OrderAmount>4906.38</OrderAmount> <Currency>EUR</Currency> </Order> <Order number="002"> <CustomerCode>789</CustomerCode> <OrderDate>2015-04-03</OrderDate> <OrderAmount>8345.60</OrderAmount> <Currency>EUR</Currency> </Order> <Order number="003"> <CustomerCode>123</CustomerCode> <OrderDate>2015-04-04</OrderDate> <OrderAmount>5645.20</OrderAmount> <Currency>EUR</Currency> </Order> <Order number="004"> <CustomerCode>123</CustomerCode> <OrderDate>2015-04-05</OrderDate> <OrderAmount>3805.68</OrderAmount> <Currency>EUR</Currency> </Order> <Order number="005"> <CustomerCode>789</CustomerCode> <OrderDate>2015-04-06</OrderDate> <OrderAmount>2786.45</OrderAmount> <Currency>EUR</Currency> </Order> <Order number="006"> <CustomerCode>456</CustomerCode> <OrderDate>2015-04-07</OrderDate> <OrderAmount>7460.50</OrderAmount> <Currency>EUR</Currency> </Order> </Orders>
|