Solved

Showing documents based on a list

Posted on 2001-09-18
8
206 Views
Last Modified: 2013-12-18
I have an agent which checks a database for errors. When it is finished, it creates a text file of all the document IDs which have an error in them.

I would like to see these documents in a view, rather than have to check the list and search for the document.

Does anyone have any ideas about the best way of doing this?

If the agent identifies the docID, could it then somehow add that document to a view?

Thanks for your help...
0
Comment
Question by:Freerider
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 4

Accepted Solution

by:
sloeber earned 50 total points
ID: 6489905
The best thing you can do is make an extra field
name it ErrorList or something like that.
In you agent, the moment he found an error in the document, change the value from that field to Yes
thisdocument.ErrorList = "Yes"

Make a new view, named eg. ==> "Errorview"
With selection Select ErrorList = "Yes"

Now, you see all the document with an error.

PS : Dont forget to change the value back to No, when you solved the problem.
0
 
LVL 13

Expert Comment

by:CRAK
ID: 6489987
You could also copy or move those document to a folder.
0
 

Author Comment

by:Freerider
ID: 6490317
sloeber,

this solution works very well, although there's a bit of work involved (creating the field and populating it for 4000 documents). The problem is, I'm quite sure the person who will correct these documents will NOT remember to change the ErrorList field to "NO". Although I could add it to a button to save and close the document...

anyway,

CRAK,

as long as the moved documents are still visible in the existing views - the formula is something like:

 SELECT Form = "Document"

I would prefer to use this method. Using script, how can I move a document to a folder?

Andrew.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 4

Expert Comment

by:sloeber
ID: 6490458
Just use
Call doc.PutInFolder(foldername,True)


If the folder exist he copy your document to this folder else he makes a new folder for you.

!!!!! Now, if the user solved the problem, the document is also still in the folder until he removes the documente from the folder.

Or another solution is that you clear the folder every day, and run the agent to find the errors, every day again.
0
 
LVL 13

Expert Comment

by:CRAK
ID: 6490620
That's exactly how it works sloeber!
Nice teamwork!

Freerider,
sloebers instruction "PutInFolder()" will keep the document in the original view(s), just as you want. If you have collected all documents in a collection, DocumentCollection.PutAllInFolder(FolderName, CreateOnFail) could be an alternative.

When the documents are no longer required in the folder, either after processing or at a specified interval, use Doc.RemoveFromFolder(name). I probably don't have to warn you about deleting the document...!?
0
 
LVL 5

Expert Comment

by:snocross
ID: 6491691
Freerider, I'm just curious but are you able to gather what type of error happened on each document or just the basic fact that an error occured?  If so then I will provide points to figure out how you did that.  I would like to create a list of all documents in my database that have input validation errors in them and what the error is.

-Snocross
0
 

Author Comment

by:Freerider
ID: 6492657
snocross,

I'm only looking for specific errors. There's a field in each document which should contain the attachments. The agent looks at the other fields and checks for attachments, if it contains one, it's an error.

Sorry I couldn't be of more help.
0
 
LVL 5

Expert Comment

by:snocross
ID: 6493222
Ok, thanks for the info...
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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