Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3212

Problem with the TreeTable Control bound to an OData Service to display on a third View(Page)

$
0
0

Good morning Guys,

 

I have a BIG problem since a couple of days and I have TRIED to solve it by myself to NO AVAIL. Please I need HELP. In my scenario I have three Pages(Views) to display. The FIRST page is just the Entry page with a StandardTile, the SECOND page displays a TABLE(sap.ui.table.Table) and the THIRD page should also display ANOTHER table using this time sap.ui.table.TreeTable. Now my PROBLEM is with this THIRD page, actually the TreeTable Control. This TreeTable Control is actually BOUND to an OData Model that FETCHES the hierarchical business data from a Gateway OData Service. The Service is WORKING. Now when  I do the BINDING in the THIRD VIEW(Page) on this TreeTable Control I get the following error =>

 

In this case the Page is NOT showed at ALL, NOTHING. But when I use instead of the TreeTable Control the Table Control I have some data DISPLAYED  on the SAME THIRD Page. The FUNNY thing is that when I now use the SAME TreeTable Control on the FIRST Page(View), it is DISPLAYED, NO ERROR, see the screenshot=>

 

 

 

What can be the PROBLEM? Has someone experienced it before? Bear in mind that I have declared my OData model in the Component.js as follow =>

 

/* Create the OData Model instance. The OData model will

     * call the back-end Service named '/ABCUI5/DCP_GWS_SRV/' to fetch the desired business data

     * */

   

    var sServiceUrlToABCUI5DCPGWS = "/sap/opu/odata/ABCUI5/DCP_GWS_SRV/";

   

    var oODataModelForABCUI5DCPGWS = new sap.ui.model.odata.v2.ODataModel(sServiceUrlToABCUI5DCPGWS,{

       

                                           json: true,

                                           defaultCountMode : "Request",

                                            useBatch : true

                                              

                                         });

   

    this.oStartView.setModel(oODataModelForABCUI5DCPGWS);

 

 

//The Definition of the TreeTable Control instance in the THIRD Page goes like this=>

    var oTreeTableCollaboration = new  sap.ui.table.TreeTable({

   id : "TreeTableCollaboration",
        title : "{i18n>StructureCollaborationViewPageTitle}",
        selectionMode : "Single",
        showColumnVisibilityMenu : true,
        enableColumnReordering : true
                                   });

 

//The  Rows Binding of the TreeTable in the THIRD PAGE goes like this=>

 

oTreeTableCollaboration.bindRows({

        path : "/TabViewDataSet",

         filters : aFilters,

         parameters : { 

             expand : "Children", 

             navigation : { 

                  "TabViewDataSet" : "Children" 

              } 

           }

    });

 

PLEASE I really TRIED to solve it alone but I couldn't, I need HELP and would appreciate any HINT. Thanks in ADVANCE and stay BLESSED


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>