Link to home
Start Free TrialLog in
Avatar of SuperRock
SuperRock

asked on

Domino Designer: How do I use a URL parameter value as part of a View Selection?

As part of the View Selection in a Domino view I want to use a parameter from the URL that calls the view.  For instance, if the URL is http://domain.com/viewname?openview¶m=11111"  I want to the view to display only those records with a RegistrationNumber of "11111".

How do I get that param value into my View Selection so that the View Selection is, essentially,

SELECT RegistrationNumber = "11111"?
Avatar of SysExpert
SysExpert
Flag of Israel image

Not sure that you can.

Is it possible to save the URL or the parameter somewhere so that it is easily available ?


I hope this helps !
Avatar of SuperRock
SuperRock

ASKER

Where can I save it so that it is usable in the View Selection?
perhaps as an enviroment variable that can be read from a Profile Doc that is used to set the view information.

You may need to use the view in a frame to be able to make it Dynamic.

Hopefully someone can provide more details.

There is a RestrictToCategory="category" optional parameter but the view must be categories for this to show. I'm not sure how your view is setup
Thanks brwwiggins.  But I think the challenge I'm trying to overcome is dynamically determining the "category" based on a param from the URL.  Do you know how I can do that?
I would use a combination of features.  The parameter that is passed in the Query_String CGI variable during a POST or GET operation can be parsed on the server side "before" you call the view.

So,  create a view where you store key-value pairs (if you wish) where the category is one member of the pair and the string passed in the URL is the other member. (You don't HAVE to do this but if you want to pass a parameter other than the category then you must.)

Then use the post submit event to return the view based on the processed parameter.

The URL would be more like this http://myserver.com/mydb.nsf/MyWebAgent?OpenAgent¶m=111111

The agent would provide server side processing of the url and parse the parameter to construct the 'new' view url such as http://myserver.com/mydb.nsf/viewname?Open view

The view would be a programtic (computed) single category view.
ASKER CERTIFIED SOLUTION
Avatar of behenderson
behenderson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.  Your explanation coupled with the cheat sheet was what I needed.  The RestrictToCategory argument did the trick.  Thanks!