Skip to Content
avatar image
-1
Former Member

Data Binding using Aggregation

Hello ,

I am facing one problem in Aggregation binding, binding has done but if there is no data its is showing radio button but i has to give no data.

PFB the code :

var vendorFilter = new sap.m.ViewSettingsFilterItem({

text: 'Vendors',

multiSelect: false

}).bindAggregation("items", "/items",

new sap.m.ViewSettingsItem({

text: '{VendorID} {VendorName}',

key: 'VENDOR:' + '{VendorID}'

}), null, null).setModel(vModel);

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 05, 2017 at 04:10 AM

    Hi Akhitha Veeravalli,

    You might have made an mistake while binding the field names with your model data. Check for cases.

    Regards,

    Arjun Biswas.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 06, 2017 at 01:16 AM

    Hi

    does this work?

    var vendorFilter = new sap.m.ViewSettingsFilterItem({
      text: 'Vendors',
      multiSelect: false
      items: {
        path: '/items',
        template: sap.m.ViewSettingsItem({
          text: '{VendorID} {VendorName}',
          key: 'VENDOR:' + '{VendorID}'
        })
      }
    });
    
    vendorFilter.setModel(vModel);
    
    Add comment
    10|10000 characters needed characters exceeded