xpages - Want to create an column in Dynamic View Panel that displays "Favorites" icon -


i using dynamic view panel , create "favorites" column in view. underlying view has "favorites" multivalue names field contains users have flagged document favorite. handle conversion in "customizer" bean can compare current user stored vales in "favorites" column , see if in list. if present "green star" icon (not standard notes icon) else present empty star icon. make star icon live if click on star toggle favorite value in database on/off.

how implement such feature?

  1. what dominoviewcustomizer methods need override? (looking @ aftercreatecolumn)
  2. how , set column values? (really lost here)
  3. how column display notes resource image (my stars) or need store in directory on server?
  4. how make star icon clickable?
  5. how capture click event?

using domino v9.0.1

if don't have use dynamic view panel here's way of doing work view panel, repeat, or data table...

use "favorites" document each user. have contain 1 multi-value item store note ids of documents user favorited.

when user logs on read contents of multi-value field sessionscope variable. in view column need check if noteid of current row in sessionscope variable , display appropriate icon.

for part when user clicks on star have event handler on column lookup user's favorites document (create if doesn't exist) , add or remove noteid partial refresh on view.

you can still dynamic view panel can't speak particulars of since don't use much.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -