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



May 2, 2011, 9:58 PM
29 Posts
topic has been resolvedResolved

Repeat not showing first document created

  • Category: Debugging
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: Repeat Control
  • Replies: 3
On my xpage I have a button the creates a new document, that all works fine.
 
I then have a repeat control that shows these documents I have created, it get's it docs via the following:
 
exerciseview=database.getView("exerciseByDate");
var dc:NotesViewEntryCollection=exerciseview.getAllEntriesByKey(sessionScope.startweek);
return dc
 
All works pretty well provided there is one document in the dc, .i.e. I click my button and it shows up right away. However for the first document I need to either reload the page or renavigate to to it.

Any suggestions would be appreciated. I'm thinking it looks like a bug?
 
 
May 3, 2011, 3:41 PM
122 Posts
Re: Repeat not showing first document created
Sounds similar to the problem we have with an embedded view in Notes Client, where you need to put focus on the embedded view and press F9 to get the first document to show. Does it work if you add after line 1 exerciseview.refresh();?
May 3, 2011, 6:48 PM
47 Posts
Re: Repeat not showing first document created
 I had the same issue on my 'to-fix' list; if the datasource for the repeat had at least one document in it already, it worked fine to add more, but the first one wouldn't show up until I did a full reload of the page. Following Paul's suggestion of refreshing the view I was accessing for my datasource worked for me. It is just odd that the refresh is required when there were previously no documents, but was not necessary if there had been some. As an aside, I was using view.getAllEntriesByKey() to feed my repeat, not the whole view.
 
Rich 
 
May 5, 2011, 2:04 AM
29 Posts
Re: Repeat not showing first document created
Paul thanks a ton, works..

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