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



Nov 14, 2012, 5:07 PM
9 Posts
topic has been resolvedResolved

Constant Loop thru images in view

  • Category: Custom JSF code (Eclipse IDE)
  • Platform: Not Applicable
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2
I have an image control that pulls the thumbnail from a document in a view and displays the picture - works fine. 
 

var myview:NotesView = database.getView("ImageThumbnails");

var mydoc:NotesDocument = myview.getFirstDocument();

while (mydoc != null) {

var docid:String = mydoc.getUniversalID().toString();

return "/0/" + docid + "/$File/Welcome"

 
Is it possible to get this control to do a constant loop thru all the thumbnails in the view pausing between each one?  Once it reaches the bottom it would then start all over again etc.
 
The company doesn't want to install any custom controls at this time.
 
Thanks. 
 
 
  
Nov 15, 2012, 8:41 AM
43 Posts
Re: Constant Loop thru images in view
 Hi,
 
Don't understand your question exactly..But this is how you can have each and every document: :
 
 

var myview:NotesView = database.getView("ImageThumbnails");

var mydocCollection:NotesDocumentCollection = myview.getAllDocumentsByKey("/*  Pass some unique key here */")

 

for(i=0; i<

mydocCollection

.getCount(); i++)

{

var myDoc:NotesDocument= 

mydocCollection

.getNextDocument();

// Do your stuff here.. 
 
 }
 

 

Hope this helps.. 
 
Best Regards, 
Chintan P. 
Nov 16, 2012, 3:22 PM
9 Posts
Re: Constant Loop thru images in view
 
Many thanks for your help.   This should put me in the right direction.    

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