I want to load a view into a frame using a formula. Since users access the same view on different servers, I want the loaded view formula to be dynamic depending on the server. Can’t seem to make that work using the frame properties wizard - it won’t accept any formula other than the one it writes automatically.
IN the Wizard…
Formula for the kind of named element:
“View”
Formula for the database:
“CN=NOTESS2/O=CS!!CIC/Call.nsf”
Formula for name of named element:
“PortalAllCalls”
when I try to make the formula for the database dynamic, with something like:
svr := @Environment(“MailServer”)
I get weird errors that tells me things like I can’ create a new directory, etc.
Anyone have any ideas?
Thanks
Subject: How do I select a view for a frame so that it source is dynamic based on server?
You can include the server as part of the formula for the database. I believe the syntax is “server!!dbname.nsf” - the formula must resolve to text. I saw similar errors using @Environment, but maybe you can get the server value from @maildbname or @dbname.
If you want the server to be the user’s home mail server:
srv := @subset(@maildbname;1);
srv+“!!dbname.nsf”
If you want the server to be the current server:
srv := @subset(@dbname;1);
srv+“!!dbname.nsf”
These seemed to work.
– Vin
Ibm
Subject: RE: How do I select a view for a frame so that it source is dynamic based on server?
Thanks - I will give it a try and get back to you.