P
Patrick Tingen
Guest
I need to create an XML file with a set of tables. The requirement is that one of the tables is surrounded by an extra tag that indicates the plural form of the element below. As an example: for the orders of a customer the XML should look something like this: 1234 Lift Line Skiing 6 08/02/1993 1.829,50 ... I can achieve this with an extra temp-table in my dataset like this: DEFINE TEMP-TABLE ttCustomer LIKE customer. DEFINE TEMP-TABLE ttOrders FIELD custnum AS INTEGER. DEFINE TEMP-TABLE ttOrder LIKE order. DEFINE DATASET dsCustOrders FOR ttCustomer, ttOrders, ttOrder DATA-RELATION drCustOrder FOR ttCustomer, ttOrders RELATION-FIELDS(custnum,custnum) DATA-RELATION drOrders FOR ttOrders, ttOrder RELATION-FIELDS(custnum,custnum). But the table ttOrders is actually only needed to get the tag in the XML file. Is there a better way?
Continue reading...
Continue reading...