Skip to Content
0
Former Member
Apr 28, 2009 at 03:45 PM

Mapping a complex data-list to a table within an WebDynpro UI

28 Views

Hi folks,

as described in my thread i get an list of logEntrys filled within my process.

Now i want to create a task, where all the log entrys get displayed (WD-UI with table).

The corresponding data object where the logEntrys get persisted is of the following type:

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/ServiceRequestProcess" xmlns:tns="http://www.example.org/ServiceRequestProcess" elementFormDefault="qualified">

    <complexType name="ServiceRequestProcessLog">
    	<sequence>
    		<element name="logEntry" type="tns:LogEntry" minOccurs="0" maxOccurs="unbounded"></element>
    	</sequence>
    </complexType>
 
    <complexType name="LogEntry">
    	<sequence>
    		<element name="Timestamp" type="dateTime" minOccurs="1" maxOccurs="1"></element>
    		<element name="ShortDescription" type="string" minOccurs="1" maxOccurs="1"></element>
    		<element name="LongDescription" type="string" minOccurs="0" maxOccurs="1"></element>
    	</sequence>
    </complexType>
</schema>

There you can also see that an unique logEntry consists of three values, a timestamp, long- and short description.

My question now is: How do i map this list into a WD UIs context to display all logEntrys in a table?

How should the context of the WD controllers and the view look like?

I already tried creating an own node "Log" with an cardinality of 0..1 and a subnode "logEntry" with cardinality 0..n, which contains the three attributes.

But there is a type mismatch if i try to map this at the Process Composers mapping editor...

Maybe i'm started the wrong way?

Can anybody help? 😊

See the screenshots of the [WD-controller context|http://www.qpic.ws/images/40V33491.jpg] and the [Task mapping|http://www.qpic.ws/images/kiS33423.jpg]

TIA

Michael