Thanks for this! Really appreciating this great help! I am still struggling a bit however; as my view data sources are dynamic I cannot hard code a view name.
Basically my application consists of a number of "viewPage" Xpages displaying views from various .nsf's. The view data sources are set as custom properties on the "viewPage" Xpages.
All "viewPage" Xpages share the same dataView custom control called cc_dataViewControl. This dataView custom control points to the docPage Xpage as pageName to open with the doc data. Thus there is only one DocPage.
This is my code:
On every "viewPage" Xpage the view data source is defined by custom properties like this:
<xc:cc_dataViewControl
sourceDb="KS/ksfelles2.nsf"
viewName="xInnhold">
</xc:cc_dataViewControl>
The shared cc_dataViewControl appearing on every "viewPage" is defined like this:
<xe:dataView id="dataView1" collapsibleDetail="true" pageName="/docPage.xsp" var="rowHandle">
and of course this custom control has the custom properties referenced as well.
Database is sourceDb and view is viewName, as far as custom controls are concerned, then the actual db and data source is defined on the viewPage Xpages
---
Then on the "docPage" Xpage the only data source at present is this, from the parent dataView Xpage:
<xp:dominoDocument var="document1"
action="openDocument"
documentId="#{javascript:rowHandle.getNoteID()}"
databaseName="#{javascript:compositeData.sourceDb}"
formName="#{javascript:compositeData.formName">
</xp:dominoDocument>
pointing to the rowHandle var of the dataView custom control on the parent Xpage.
These custom properties are not defined on the docPage, only on the preceeding view page.
So what I'm too blind to see after looking quite a bit is How to get a handle back to the viewPage and select the next doc in that dataView?
Can I have a view data source on the docPage also pointing to the parent viewPage, and utilize the rowHandle?
Yes, if I was only more fluent in scripting...
Thanks in advance...
Vidar