Skip to Content
avatar image
Former Member

How to bind data in sap.m.Panel

Skip to Content Get Started 1
  • Support
  • Training
  • Community
    • Developer
      • Partner
        • About
            sap spotlight
          • Community/ Questions & Answers Actions

            Ask a Question

            The form below has errors. Correct the fields in red and try again. Your question

            I am try to bind data in Panel sapui5, but it not binding in the Panel.

            code which I am trying here:-

            type : "GET",
            url : URL,
            dataType : "json",
            async : false,
            success : function(data) {

            oModel1 = new sap.ui.model.json.JSONModel();
            oModel1.setData({"dataDetails" : data});
            sap.ui.getCore().byId("panel1").setModel(oModel1);//binding data in panel

            Add comment
            10|10000 characters needed characters exceeded

            • Get RSS Feed

            1 Answer

            • Feb 08, 2017 at 03:08 PM

              how are you validating that model is not set on the panel?

              Do you have UI controls in the panel which should display the data, if so provide the code of view.

              Add comment
              10|10000 characters needed characters exceeded