This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jul 17, 2012, 8:07 PM
20 Posts
topic has been resolvedResolved

Categories expand/collapse

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: ViewPanel category Expand Collapse
  • Replies: 3
 I have a number of categorized views in my XPages application.  I would like to open these views with all categories initially collapsed.  Because the documents in these views contain Readers fields, a typical user will only be able to see a subset of the documents in each view.  Because of this, it is a design constraint that I check the "Don't show empty categories" property on the Domino view.  In the View Panel control based on the view, I set the expandLevel property to a sessionScope variable, which I can set to 0 (expanded) or 1 (collapsed) .  With empty categories hidden and expandLevel set to 1 or greater, no categories at all are displayed.  I get the same result using the Pager Expand/Collapse control in the XPages Extension Library.  I understand that this is a know "feature" in XPages.  Has anyone come up with a work-around for what I am trying to do?
Thanks. 
Jul 20, 2012, 12:27 PM
586 Posts
Re: Categories expand/collapse
 I can't say that I've tried this.  My solution is for you to try a different UI approach.  Collapsed Views are just not a standard web design element like they are in the notes client.
 
I suggest you put your categories in a combo box or type ahead field or something like that to get a hold of the category they are looking for and then use that to partial refresh a view control or repeat control showing them the filtered data.  That's a much more common web experience.
 
I don't think I have an exact example of this but there's one on my website that uses a  search my last name here:
 
http://xpagescheatsheet.com/cheatsheet.nsf/repeat1.xsp 
 
Just a thought. 
Jul 24, 2012, 8:41 PM
20 Posts
Re: Categories expand/collapse
 Thanks for the suggestion.  I have tried this approach.  Changed view columns from Categorized to Standard, then added combo boxes populated with a list of unique values in each column, and bound to scoped variables.  Used scoped variables to build a search string to filter the view results.  I have tried making some columns sortable at runtime by checking the "Sort column" checkbox on the column header, but this doesn't seem to work.  Is it possible to sort the results of a full text search in this way?
Jul 25, 2012, 3:17 PM
20 Posts
Re: Categories expand/collapse
 OK, got this to work.   The view column must be defined as "Sort: None" in the Domino view, with "Click on column header to sort" selected.  The Column Header in the XPages viewPanel must have "Sort column" selected.  

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal