Skip to Content

How to bind data in sap.m.Panel

Feb 08, 2017 at 05:43 AM


avatar image
Former Member
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

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

            1 Answer

            Srikanth KV 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.

            10 |10000 characters needed characters left characters exceeded