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



Oct 16, 2012, 7:18 AM
21 Posts

Hide document in view listing

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: view,hide,filter
  • Replies: 3
 
I have xpages form with embeded view  at the bottom of page. The view have a list of saved document.
Is there any way I can hide the current document that I open from the listing.
 
For example, I have xpages with A, B & C document saved. Currently I open A document.
So I should see only B & C in the view listing at the bottom.
 
TQ in advance. 
Oct 16, 2012, 1:46 PM
298 Posts
Control the data source
Not sure you can do this with the view panel, but, you can compute the data source for a repeat. You would get your view, get all the documents in that view, find the document that is open and remove it from the collection. Then pass the collection into the repeat data source. I think you can do the same with the view panel too... Howard
Oct 17, 2012, 1:12 AM
21 Posts
Re: Hide document in view listing
 Ok,
 
I'll try.. thanks Howard.. 
Oct 18, 2012, 3:27 PM
586 Posts
Re: Hide document in view listing
  I really don't use view panels much - I prefer repeats for their flexibility...  So I've not actually looked at view panels in a long time.  Especially for anything fancy.
 
You can get a row var in a view panel.. so it MIGHT be possible..   But I've not  really messed with trying to compute columns and all that.
 
I'll go with Howard...  suggest you look at Data Tables or full repeat controls.  Life will be easier for this.

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