Skip to Content
-1

Data Binding using Aggregation

Dec 04, 2017 at 06:41 AM

54

avatar image
Former Member

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);

10 |10000 characters needed characters left characters exceeded

What does the structure of the data look like?

Regards,

Jamie

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Arjun Biswas Dec 05, 2017 at 04:10 AM
0

Hi Akhitha Veeravalli,

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

Regards,

Arjun Biswas.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member
Dec 06, 2017 at 01:16 AM
0

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);
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Dennis Seah,

Thanks for the response

The way I binded is also working but if the data is not there then radio button is appearing.

PFA the screen short

error1.jpg error3.jpg

Regards,

Akhitha.

error1.jpg (37.6 kB)
error3.jpg (25.1 kB)
0