Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Re: Data binding issue with JSON Model

$
0
0

hi sir,

 

i am using below code but error is showing (json model is not a function)

 

 

onInit: function() {

         debugger;

         var sUrl = "http://services.odata.org/V3/Northwind/Northwind.svc/Categories?$select=CategoryID";

         var oModel = new sap.ui.model.json.JSONMODEL(sUrl);

         sap.ui.getCore().byId("tbldetail").setModel(oModel);

    

    },

 

and my table is

<Table id="tbldetail">

                <columns>

                    <Column>

                        <Text text="CategoryID"></Text>

                    </Column>

                   

 

                </columns>

            </Table>

   

please help me and solve the problem and send me my mail

ashwanishrm744@gmail.com


Viewing all articles
Browse latest Browse all 3019

Trending Articles



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