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



Mar 16, 2011, 11:15 AM
261 Posts

Re: The 'first' parameter (first row index) is missing using a view as a datasource for repeat control

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 3
How about not using a viewPanel, but binding a panel to a random document from the view using:
 
var vw:NotesView =  database.getView("yourView");
var nrEntries = vw.getEntryCount();
var randomIndex = @Integer( (nrEntries-1) * @Random() + 1 );

vw.getNthDocument( randomIndex );

Mark
Mar 17, 2011, 1:55 PM
178 Posts
The example Mark gave works perfectly!
I found an answer to my question in Mark's reply.

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