Solved

Showing documents based on a list

Posted on 2001-09-18
8
205 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
Comment Utility
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
Comment Utility
You could also copy or move those document to a folder.
0
 

Author Comment

by:Freerider
Comment Utility
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
 
LVL 4

Expert Comment

by:sloeber
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 13

Expert Comment

by:CRAK
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Ok, thanks for the info...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now