Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Uncaught TypeError: Cannot read property 'layout' of undefined error is coming in value help dialogue while displaying data

hi all,

var layout = new sap.ui.commons.layout.MatrixLayout('layout');

  var rPannel = new sap.ui.commons.Panel('rPannel'); 

  var oTable = new sap.ui.table.DataTable();

     oTable.addColumn( 

          new sap.ui.table.Column({ 

               label: new sap.ui.commons.Label({text: "CompanyCode"}), 

               template: new sap.ui.commons.TextField().bindProperty("value", "CompanyCode")

               

     }));

    

     oTable.addColumn( 

             new sap.ui.table.Column({ 

                  label: new sap.ui.commons.Label({text: "CompanyCodeName"}), 

                  template: new sap.ui.commons.TextField().bindProperty("value", "CompanyCodeName") 

                  

        })); 

    

     var oModel = new sap.ui.model.odata.ODataModel( 

             "services.odata.org/Northwind/Northwind.svc/", 

                                 true, 

                                 "usr", 

                                 "passs");

        oTable.setModel(oModel); 

        oTable.bindRows("/CompanyCodeValuehelp");

        rPannel.addContent(oTable);   

        layout.createRow(rPannel); 

        oValueHelpDialog.addContent(layout);

this is my code, contents from odata are notr getting dispalyed. plz help

thank you.

Former Member
Not what you were looking for? View more on this topic or Ask a question