?
Solved

Documents created using agent do not enforce readers field

Posted on 2000-04-03
4
Medium Priority
?
295 Views
Last Modified: 2013-12-18
Hi,

I have an agent which creates documents and populates readers and authors fields. Once the agent is done running, anyone with reader access to the database can access all of the documents, even if they are not in the readers field! Doing a ToolsRefreshAllDocuments fixes the problem, but I don't like this solution. I don't want anyone who is not listed as a reader to be able to view these documents at any time, instead of the current solution where they can see it between the time that document was created by the agent and the time the refresh is run.

Why is this like this and how can I fix it?

(Sorry I don't have more points to spare)

Zaphod.
0
Comment
Question by:Z_Beeblebrox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
sk5t earned 120 total points
ID: 2681736
If you are doing this with script, you'll need to set the .IsAuthors and .IsReaders properties on those fields.  Until the document is actually computed with the form (which [ToolsRefreshAllDocuments] does), whatever you have assigned to the fields are "just plain values" to Notes.  Use NotesDocument.ComputeWithForm in LotusScript.

If the agent is purely formula language, and it does not run on the frontend, then it gets kind of messy.  (By which I mean, you'll probably have to write the document's UNID to an environment variable, then do @Command([ToolsRunMacro]) for a LotusScript agent that gets the doc by that UNID and runs ComputeWithForm on it.)

Steve
0
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 2681783
Thanks for the quick response. calling doc.ComputeWithForm (True, True) just before saving the document did the trick.

Zaphod.
0
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 2681874
Whoah, I think I was a bit too quick to dish out the points. That solution worked a little too well. I had a field which was of type authors which had as a default value the creator of the document, namely me. However I can no longer see the documents. I know they are there, but there is no way that I can get to them.

Zaphod.
0
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 2681905
Yikes, another issue. I have a role called [Readers] which allows people to read all documents in the database. However the agent does not respect this.

I can get around the previous issue by manually setting the field to be the current user, but this role thing is a bit of a problem.

Zaphod.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month8 days, 12 hours left to enroll

764 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