Solved

Using URL To Pass Variables That Generate Views

Posted on 2000-03-14
3
294 Views
Last Modified: 2013-12-18
How can I get different "Views" of the Domino data by passing variables in the URL without having to hardcode the views???

In Cold Fusion, I can pass a field value and run an SQL statement to extract and display what I want! Domino/Notes does use SQL but isn't there some way of requesting the data (view) to be generated via the URL without hardcoding the view???
0
Comment
Question by:pdliles
3 Comments
 

Expert Comment

by:sam_clayton
ID: 2616366
AFAIK there is no way to do what you want.
You can restrict by user by using $Readers fields on the documents in the view.
You can time restrict using @Now/@Today in the view selection

What I did when I needed to do something similar to what you want is wrote an agent that did a database.search to get a doc. collection and then loop through them building html to output in 'view-ish' format.

Cheers,
Sam
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 2616986
Hi


If I got you right, you need to send a query to the domino server and extract the matching documents.

For that you can use search method to accomplish this.

search Lotus Notes and the Internet database located in doc directory for more info on search methods

Good Luck
~Hemanth

0
 

Accepted Solution

by:
DaddyDawg earned 50 total points
ID: 2620807
If you are in Notes 5.x you can use a Show Single Category view (read about it in the Designer Help).  If you are in a version earlier than R5.x, you can create an agent that performs a search (NotesDatabase.DBSearch, or NotesDatabase.FTSearch if the db is full text indexed).  Call the agent using the ?OpenAgent url command, and pass the search params to the agent in the Query_String.  Use NotesSession.DocumentContext to get the Query_String, then perform the search and return the results.

DaddyDawg
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question