Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

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

    Anyone have clue/suggestions on this?

    Add comment
    10|10000 characters needed characters exceeded

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

    treetablelook.png

    Image for illustration of the requirement.

    Add comment
    10|10000 characters needed 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