I’ve been playing around with this for a while, but other than sending the link via HTML and using a querystring, I cant seem to get it to work.
I have an agent that exports a view to excel. Now I also have like 10 different views I want this functionality in. The problem is that I have a hardcoded value for the view name in the agent. Is there a way to find out what view the agent was called from and use it in the agent?
edit
I’ve also tried to use a notesuiview, but the uiview object doesnt contain what I need, and when I try to set my view = uiview, it says type mismatch.
Subject: Send the view name to an agent via an action button
please post your code. how is the agent kicked off (trigger) and from where?
Subject: RE: Send the view name to an agent via an action button
edit Nevermind. Viewing this i realised I messed up my variable names. “uiviewvw” and “uiview”…
Thanks for your help
Here is the code of relevance
Dim s As New NotesSession
Dim ws As New NotesUIWorkspace
'Notes initialization
Dim db As NotesDatabase
Dim vw As NotesView
Dim vc As NotesViewEntryCollection
Dim entry As NotesViewEntry
Set db = s.CurrentDatabase
Dim uiviewvw As notesuiview
Set uiviewvw = ws.currentview
Set vw = uiview.view
It cuts off at set vw = uiview.view saying variant does not contain an object.
Perhaps I can’t reference the view like this?
Subject: RE: Send the view name to an agent via an action button
Should not the line that says:
Set vw = uiview.view
read
Set vw = uiviewvw.view