Hi,
I have been working with XPages for a while now and there is loads i still need to learn. But there is one problem where the solution would really make a massive difference to my applications…
I have an XPage with multiple views on it. What I have always wanted to do is access a field value from the view, so get the row data from this view page.
If anyone could help with this and point me in the correct direction, I would really appreciate it.
Thanks
Subject: Access to RowData
Jamie, I think all the XPages gurus have gone away on vacation together. I’ve been working in XPages for a couple of months now so I’ll attempt an answer.
If you’re using ViewPanels to display your views, then on the All Properties tab, you need to define a name for the “var” variable. Then in your columns you can reference the “var” name which is a NotesViewEntry object. From there, you can get the document & any fields, or use “getColumnValue()” to get a view column value.
If you’re using Repeats to display your views, then assign a name to the “Collection name” (which also happens to be the “var” variable when you look at it using the All Properties tab) and that will get you access to the NotesViewEntries. You can then use the same methods, getColumnValue or getDocument() & getItemValue / getItemValueString.
Hope that helps.