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 26, 2012, 10:59 PM
29 Posts

Button or link in repeat not working

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role:
  • Tags: Repeat Control
  • Replies: 2
I have a repeat control on an xpage, this displays records based on an FT search.
 
The problem I have is if I place a button or link in this repeat it doesn't work. All my records are displayed OK, the button just doesn't work.
 
If I remove the FTsearch the button works OK, but of course I have more records than I want displayed.
 
Here is the datasource code for my repeat..
 
myview=database.getView("contacts");
myview.refresh();
var dc:NotesDocumentCollection=myview.getAllDocumentsByKey(@Name("[CN]", @UserName()));
... some stuff in here for the strings etc..
var query:string = "\"" + requestScope.contactName + emailString + phoneString + "\"";
if (!query.isEmpty()) {
    query = "\"" + query + "\"";
    database.updateFTIndex(true);
    dc.FTSearch(query, 16);
    return dc
}
Mar 27, 2012, 10:13 AM
53 Posts
Re: Button or link in repeat not working
You don't say what your button actually does, but I assume it's setting the requestscope for the searches?
 
If so what I would I think is happening is you're then doing a refresh on the repeat panel which removes the requestscope variables so the repeat search isn't working. Try changing them to sessionScopes (you'd then need to make sure the variables are removed for when you don't need them any more)
 
If it's not that give some more info on exactly what's happening
Mar 27, 2012, 10:13 PM
29 Posts
Re: Button or link in repeat not working
thanks for the reply, anything in the button doesn't work, sessionScope, request scope. etc etc.. Working on it now hope to post my answer in here soon!!

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