cancel
Showing results for 
Search instead for 
Did you mean: 

sap.ui.table.TreeTable with XML data model with the pasted XML data.

Former Member
0 Kudos

treetablelook.png

Hi,

My requirement is to create a SAP UI5 tree table (JS views) with the below features:

1. using 'XML data model' or 'by converting XML model to JSON model (any conversion libraries of SAP specific library (like jQuery) name with example)'

2. Type in search to filter the node available in the tree table. (there will be a separate text box in the UI to filter)

It would be great if someone can help me on this with a demo code in JSBin/plunker/any open source code platform as soon as possible.

XML Data:

<?xml version="1.0" encoding="utf-8"?>
<Rowsets>
<Rowset>
<Row>


<ServiceCode>Code123</ServiceCode>
<Item>Item010</Item>
<ItemDesc>---</ItemDesc>
<Level1>OutlineLevel1</Level1>
<Level1Desc>abc</Level1Desc>
<Level2>OutlineLevel2</Level2>
<Level2Desc>xyz</Level2Desc>
<Level3>---</Level3>
<Level3Desc>---</Level3Desc>
<Level4>---</Level4>
<Level4Desc>---</Level4Desc>


<ServiceCode>Code123</ServiceCode>
<Item>Item010</Item>
<ItemDesc>---</ItemDesc>
<Level1>OutlineLevel1</Level1>
<Level1Desc>---</Level1Desc>
<Level2>---</Level2>
<Level2Desc>---</Level2Desc>
<Level3>---</Level3>
<Level3Desc>---</Level3Desc>
<Level4>---</Level4>
<Level4Desc>---</Level4Desc>




<ServiceCode>Code456</ServiceCode>
<Item>Item010</Item>
<ItemDesc>---</ItemDesc>
<Level1>OutlineLevel1</Level1>
<Level1Desc>abc</Level1Desc>
<Level2>OutlineLevel2</Level2>
<Level2Desc>xyz</Level2Desc>
<Level3>---</Level3>
<Level3Desc>---</Level3Desc>
<Level4>---</Level4>
<Level4Desc>---</Level4Desc>




</Row>
</Rowset>
</Rowsets>

Hi dennis.seah / saivellanki ,

Can you please kindly help here? Or may be some clue on how to proceed with this.

Atleast, I need to build this structure as shown in the image (attached) with the XML Model data (pasted in the query).

Thanks a lot in advance.
Best Regards,

Venky

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

treetablelook.png

Image for illustration of the requirement.

Former Member
0 Kudos

Hi dennis.seah / saivellanki ,

Can you please kindly help here? Or may be some clue on how to proceed with this.

Atleast, I need to build this structure as shown in the image (attached) with the XML Model data (pasted in the query).

Thanks a lot in advance.
Best Regards,

Venky

Former Member
0 Kudos

Anyone have clue/suggestions on this?

Former Member
0 Kudos

Please take a look at SAPUI5 Explored - Tree Table. It may help.

Regards,

Srinivasan