home
design & development
Lotus application development
print design
web site development
request a design quote
solutions & consulting
Notes and Domino application development
Lotus Domino administration
Securence Mail Filtering
UNITRENDS backup and recovery
Lotus Notes / Domino Apps
free Lotus Notes apps
hosting
web site hosting
Lotus application hosting
check your mail
request a hosting quote
publishing
media and publishing
sound
client services
help & support
Make Payment
Client Access - Workboard
billing & payment policies
copyright & liability policies
pricing & turnaround policies
privacy statement
contact
e-mail MW
get files
send files
Open Different XPage for Various Documents in XPage ViewPanel
Mindwatering Incorporated
Author: Tripp W Black
Created: 12/14/2011 at 01:16 PM
Category:
Notes Developer Tips
XPages
Issue:
Application current design prohibits me from setting the form's web XPage to a specific XPage since the web form still also needs to be a regular web HTML form elsewhere in the application's web interface. Need ability to do similar to a view Form Formula override for the documents based on their forms. The "At runtime, open selected document using:" field on the View tab looks like the best place. Hacking a URL is possible for each column but is clunky for updates.
Solution:
Assuming you haven't given the viewPanel a specific var name (e.g. rowData), it has the default variable name of viewEntry.
So we can update the view panel's "
open selected document using
" field to:
var curDoc = viewEntry.getDocument();
return 'x' + curDoc.getItemValueString('Form') + '.xsp';
previous page
×