My xpage have a simple 'status' field and a xp:link in A database. The xp:link have a script action to redirect to B database:
<xp:eventHandler event='onclick' submit='true' refreshMode='complete'>
<xp:this.action><xp:executeScript>
<xp:this.script><![CDATA[#{javascript:facesContext.getExternalContext().redirect('http://domino/databaseB.nsf/testLink.xsp');
}]]></xp:this.script></xp:executeScript>
</xp:this.action></xp:eventHandler>
How can I pass the 'status' value to testLink.xsp in B database?
The best and easiest way would be to adding a query parameter like "testLink.xsp?status=xxx".
Of course in this case you would be revealing the information sent in the url. If it's not desirable (you don't want the user o see the value you have transferred), you can design an intermediatte page (e.g. an XAgent) in database B. You send two parameters to this page;
/dbB.nsf/redirect.xsp?status=XXX&redirectTo=testLink.xsp
Then you add this value to the sessionScope at the redirect.xsp and redirect the user to the other page.