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



Sep 27, 2012, 2:44 PM
24 Posts

View Panel cannot locate data var rowData - not found error

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
I have a View Panel in a tabbed panel that has the data > var property set to rowData.  I have this view set to mimic the Single Category view by using a viewScope value.
 
When I open a XPage and click on the tab which the view panel exists, sometimes this error pops up:
-------------------------------------------------------------------------------------------------
Unexpected runtime error
The runtime has encountered an unexpected error.
 
Error source
Page Name:/speakerReq.xsp
Control Id: viewColumn2
 
Exception
 Error while executing JavaScript computed expression
Script interpreter error, line=2, col=23: [ReferenceError] 'rowData' not found
 
 JavaScript code
   1: var href = facesContext.getExternalContext().getRequest().getContextPath();
   2: var docUNID = rowData.getDocument().getUniversalID();
   3: var formName = rowData.getDocument().getItemValueString("Form");
   4: var formType = rowData.getColumnValue("Form")
   5: 
   6: if(formName == "clientProfile") {
   7: 	href + "/clientProfile.xsp?documentId=" + docUNID + "&action=openDocument&rtr=yes";
   8: }
   9: else {
  10: 	href + "/speakerProfile.xsp?documentId=" + docUNID + "&action=openDocument&rtr=yes";
  11: }
 -------------------------------------------------------------------------------------------------
 
The viewColumn2 that is referenced above is a column in the view which has this formula:
@ReplaceSubstring(Form; "clientProfile" : "clientFeed" : "speakerProfile" : "speakerFeed"; "Client Profile" : "Client Feedback" : "Speaker Profile" : "Speaker Feedback")
 
I am not sure how that would throw the error above --- clicking on that tab on most XPages works fine.
 
The documents that are being displayed in the view are nothing special.  I compared two of them -- one that displays and one that throws the error and I could not find any differences that would cause this problem.
 
I cannot determine why sometimes the error appears and sometimes not.
 
Any help would be great!
 
Thanks!
Dan
 
Oct 6, 2012, 8:43 PM
586 Posts
Re: View Panel cannot locate data var rowData - not found error
 Well I can't tell you I have any idea what's happening here with your error.  So just some things for thought...
 
Try it without the tab control see if that makes a difference...  the native tab control doesn't render the non visible tabs.  So it's a bit of a pain sometimes.
 
Are any NEW documents involved?  could there be a problem there? 
 
I'm really not understanding your formula but I try not to use @Functions in XPages as much as possible.  what is "Form"...  is it declared with a "var" somewhere?  do any and all your variables gave "var" preceding them?  I've seen intermittent problems if you miss just one.
 
 hope that helps.
 
Dave 

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