xpages - filtering/searching on a repeat control -
in application, replace viewpanel repeat control.
however, part of functionality there ui aspect allows users select fields (that correspond view), , display documents match. view doing filter allows users select aspects of view create search (the code under search of view) allows view panel updated results of search.
one of things curious viewpanel has value of "#{javascript:view2}" vice actual view name.
the viewpanel defines search view , ...
i'd able apply same functionality repeat control. don't see attributes on repeat control... pointers? been while since i've worked xpages... long enough i've forgotten lot already....
tia !
read this blog post did while back, should explain need.
the view panel doesn't filter anything, displays rows datasource, same repeat control. indeed can add components viewpanel's column, pulling current row adding var
property dominoview datasource.
the view bound #{javascript:view2}
(which better done binding #{view2}
- there's no need call ssjs here). view2
dominoview datasource somewhere on page. datasource wrapper has properties capture settings filtering , searching want do. @ runtime, calculated , changes viewentries in datasource.
finally there's underlying domino view object available lotusscript. holds , hold entries. dominoview datasource queries using filtering , searching properties , retrieves viewentrycollection or viewnavigator.
so whether use view panel, repeat control, data view or whatever else, components visually represent collection of viewentries or documents. can bound dominoview datasource. repeat controls , data views give power can bind them any kind of collection, not dominoview datasource (e.g. documentcollection, viewentrycollection, multi-value field, java collection, etc).
Comments
Post a Comment