Skip to Content

Binding entityset for smarttable with named odata model

Hi All,

I am using multiple odata services in a application, so I mentioned those services in manifest file as shown below.but when i tried to bind the smarttable with 'a' model as shown below.it is not binding the data.Please help me to resolve this issue.

Thanks in Advance

1.jpg (34.7 kB)
2.jpg (20.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Hi Raghavendra,

    I have same scenario where i need to call additional service from other system and display data in Smart Table. But the data is not getting populate in View. Can i have XML on how to bind data to smart table

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 06, 2018 at 06:24 AM

    Thanks Vaibhav and Jun for quick reply,

    var view = this.getView();

    view.setModel(this.getOwnerComponent().getModel('a'));

    view.byId("LineItemsSmartTable").rebindTable();

    on onInit method solved my problem.

    Thank You

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 05, 2018 at 11:56 PM

    set default model of smart table to "a".

    this.getView().byId("LineItemsSmartTable").setModel(  <reference to model 'a'>  );

    Then tablebindingpath is just "entityset" and not "a>/entityset"

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 05, 2018 at 11:44 AM

    I think it should be no name

    Add comment
    10|10000 characters needed characters exceeded