Skip to Content
Former Member
Apr 23, 2015 at 07:23 PM

Filtering of a List



I have a view and on a click of a icon, it displays a search popup window. Upon searching, we display the results in a list in the same popup. I need to do a filtering on this list.

The UI for the popup is defined in Dialog.Fragment.xml file. The list is also defined in the dialog fragment.

I wrote the below statements on the action handler of filtering in S2 controller.

var list = this.getView().byId("idList");
var binding = list.getBinding("items");
binding.filter(aFilters, "Application");

When I debug the code, list is coming as undefined.

How to retreive the id of the list from a dialog fragment.

I have attached the relative files for reference.



Attachments (885 B)