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

Issue in binding data with backslash(/) in name in SAPUI5

$
0
0

Hi,

 

I am facing issue while binding a JSON with backslash(/) in name in SAPUI5. While binding UI5 is treating string as path instead of name.

 

Eg.

 

oModel.setData({

  "list":[

  {

  "na/me": "foo1 - initial selected - Now select another one"

  },

  {

  "na/me": "foo2"

  },

  {

  "na/me": "foo3"

  },

  {

  "na/me": "foo4"

  }

    ]       

  });

 

oList.bindAggregation("items", "/list", new sap.m.StandardListItem({

  title: "{na/me}"

  }));

 

Please find below link to snippix:

http://veui5infra.dhcp.wdf.sap.corp:8080/snippix/#41199

 

Please suggest how to bind data in such cases.

 

Regards,

Nikhil Agarwala


Viewing all articles
Browse latest Browse all 8150

Trending Articles



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