Xpages - view panel and 'var'-value in the properties

I’m trying to get access to the row data in the view panel. I have added the var value of ‘rowData’ to the view panel properties. When I attempt to load the page I a get a 500 error. If I remove the var it loads with no issue. The view is categorized, however, if I apply the same var and use a flat view the view renders fine. Any thoughts? Thanks.

Subject: Did you use the variable already?

Hi,

You might check if you’ve used the row variable somewhere already. If you use a formula like row.getDocument() somewhere, an error will be thrown since for category entries a document doesn’t exist.

Mark

Subject: Resolved!

No. However, with a fresh mind this morning, you got me thinking. I had a view icon formula that was using different variable name. As soon as I changed that variable to rowData it worked.

I had:

viewEntry.getColumnValues().get(3);

Changed it to:

rowData.getColumnValues().get(3);

It did work when the there was no var assigned in the panel properties. It must have caused a conflict by having the two different variables.

Thanks for that nudge!!