title: View Panel cannot locate data var rowData - not found error
body: <p>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.</p>
  
  <p>When I open a XPage and click on the tab which the view panel exists, sometimes this error pops up (line 2 in the JavaScript Code is where the error is):</p>
  
  <hr>
  
  <pre><code>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
  </code></pre>
  
  <p>JavaScript code</p>
  
  <pre><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 + "&amp;action=openDocument&amp;rtr=yes";
  8: }
  9: else {
  10:     href + "/speakerProfile.xsp?documentId=" + docUNID + "&amp;action=openDocument&amp;rtr=yes";
  11: }
  </code></pre>
  
  <hr>
  
  <p>The viewColumn2 that is referenced above is a column in the view which has this formula:</p>
  
  <pre><code>@ReplaceSubstring(Form; "clientProfile" : "clientFeed" : "speakerProfile" : "speakerFeed"; "Client Profile" : "Client Feedback" : "Speaker Profile" : "Speaker Feedback")
  </code></pre>
  
  <p>I am not sure how that would throw the error above --- clicking on that tab on most XPages works fine.</p>
  
  <p>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.</p>
  
  <p>I cannot determine why sometimes the error appears and sometimes not.</p>
  
  <p>Any help would be great!</p>