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 29, 2011, 7:32 PM
14 Posts

Error - getDocument() is null Categorized Views and getDocument() on current row

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
Does anyone know why the following error is returned on my computed column in a categorized view. The first column is the view is categorized. I am using this formula on the second (uncategorized column), but I get the following error.
 
It works fine if I uncategorize the first column and make it a flat view instead.
 
I have tried to test for .isCategory, but it still won't allow me to use the getDocument() method. 
 

Exception

Error while executing JavaScript computed expression
Script interpreter error, line=1, col=36: 'rowData.getDocument()' is null

JavaScript code

   1: var refnum = rowData.getDocument().getItemValueString('refnum');
   2: var unid = rowData.getDocument().getItemValueString('docID');
   3: var url = "0/" + unid + "?opendocument";
   4: "<a href='" + url + "'>" + refnum + "</a>"

Stack Trace

 
Sep 27, 2013, 7:27 AM
30 Posts
Old problem but...

I had similar problem when my search on a view hit categorized row. I solved it by turning on option "ignore prefixes" on my category column. It's stll to soon to tell if that changed something on view behavior. It would be cool if someone could give us more input on this one....

 


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