Skip to Content

how can i get the absolute path for odata binding??


I am trying to attach a models to a view, but it is not getting an absolute path and therefore not showing the output

how do I fix this??


 <IconTabFilter id="fltComments" text="Comments" icon="sap-icon://comment" key="Comments" iconColor="Critical">
       <FeedListItem text="{spCom>SPcomment}" icon="sap-icon://personnel-view" info="{spCom>appLvl}" sender="{spCom>userName}"/>

JS, {
     success: function (oData, response) {
      if (oData.results !== "undefined" || oData.results !== null) {
       var UsageModel = new sap.ui.model.json.JSONModel({
        "spData": oData.results
       that.getView().setModel(UsageModel, "spCom");
     error: function (error) {
      var message = "Error";, sap.m.MessageBox.Icon.ERROR, "Error");

UI5 Diagnosis



ui5diagnosis.png (41.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 18 at 02:08 AM

    Siddharth what does your Odata call return can you please attach that screen shots also? If your feed list items are multiple which normally is then you should use List as parent control of this item with items binded via absolute path as aggregation. Then in feed you can refer via relative path as done here

    Add comment
    10|10000 characters needed characters exceeded