Skip to Content
0

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

Mar 28, 2017 at 01:09 PM

99

avatar image
Former Member

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 Former Member / Sai Vellanki ,

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Mar 29, 2017 at 10:14 AM
0

Anyone have clue/suggestions on this?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

Regards,

Srinivasan

0
avatar image
Former Member Jul 04, 2017 at 01:28 PM
0

treetablelook.png

Image for illustration of the requirement.


Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Former Member / Sai Vellanki ,

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

0