Hello all,
I am trying to understand the functionality of filterOn: method in GLMListingPresentation. I am not able trigger the block in glamour examples by typing the search criteria in the provided search box (c.f: multipleFinderWithFilter example). How do we trigger the filterOn: block so that the matching entities appear in the next pane of the example?
What I am trying to achieve is to reduce the list of items in a tree with the criterion provided in the search box. Currently with the searchOn: block, I can select the matching entities in the tree, my idea is to remove the entities from the tree which do not fulfill the selection criterion.
tx Usman
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
To understand what you need to add in the filterOn:, you have to look in the block.
In the case of multipleWithFilter, you get the following definition: filterOn: [:text :each | Compiler evaluate: '| each | each := self. ', text for: each logged: false ]; So, you should add use something like this as a query: each > $f Btw, there is a little help hint that appears with the explanation. Of course, if you just want to do a simple name pattern matching, you can change the logic of the block. Cheers, Doru On 2 Jun 2012, at 23:26, Usman Bhatti wrote: > Hello all, > > I am trying to understand the functionality of filterOn: method in GLMListingPresentation. I am not able trigger the block in glamour examples by typing the search criteria in the provided search box (c.f: multipleFinderWithFilter example). How do we trigger the filterOn: block so that the matching entities appear in the next pane of the example? > > What I am trying to achieve is to reduce the list of items in a tree with the criterion provided in the search box. Currently with the searchOn: block, I can select the matching entities in the tree, my idea is to remove the entities from the tree which do not fulfill the selection criterion. > > tx > Usman > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com "From an abstract enough point of view, any two things are similar." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
On Sun, Jun 3, 2012 at 9:41 AM, Tudor Girba <[hidden email]> wrote: To understand what you need to add in the filterOn:, you have to look in the block. In the example multipleFinderWithFilter, entering the query in search box of tree tab does not produce any results. My question was how to execute the query because its not working for me?
tx usman
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
filtering works in place. Which means that the displayed list will get smaller.
If you want to affect the #selection port, you need to use searchOn:. Cheers, Doru On 3 Jun 2012, at 10:24, Usman Bhatti wrote: > > > On Sun, Jun 3, 2012 at 9:41 AM, Tudor Girba <[hidden email]> wrote: > To understand what you need to add in the filterOn:, you have to look in the block. > > In the case of multipleWithFilter, you get the following definition: > filterOn: [:text :each | Compiler evaluate: '| each | each := self. ', text for: each logged: false ]; > > So, you should add use something like this as a query: > each > $f > > In the example multipleFinderWithFilter, entering the query in search box of tree tab does not produce any results. My question was how to execute the query because its not working for me? > > tx > usman > > > Btw, there is a little help hint that appears with the explanation. > > Of course, if you just want to do a simple name pattern matching, you can change the logic of the block. > > Cheers, > Doru > > > On 2 Jun 2012, at 23:26, Usman Bhatti wrote: > > > Hello all, > > > > I am trying to understand the functionality of filterOn: method in GLMListingPresentation. I am not able trigger the block in glamour examples by typing the search criteria in the provided search box (c.f: multipleFinderWithFilter example). How do we trigger the filterOn: block so that the matching entities appear in the next pane of the example? > > > > What I am trying to achieve is to reduce the list of items in a tree with the criterion provided in the search box. Currently with the searchOn: block, I can select the matching entities in the tree, my idea is to remove the entities from the tree which do not fulfill the selection criterion. > > > > tx > > Usman > > _______________________________________________ > > Moose-dev mailing list > > [hidden email] > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > -- > www.tudorgirba.com > > "From an abstract enough point of view, any two things are similar." > > > > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com "No matter how many recipes we know, we still value a chef." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |