Is there any way we can archive a document through code after the status of the document is changed to closed.And on button click they want to archive that particular document.
The answer depends on what you call archiving. Do you mean, move the doc to an archive database, or do you mean move that particular document to optical storage ?
In one case, a Simple Action is quite enough. In the other, you'll be talking with people like Adobe (and spending thousands for the pleasure to do so).
A/C to the requirements what i understand is once a report is being closed they want to archive it.So i guess they just want the report to be moved to some different archive database folder or something.
I would like to add that this functionality must be through Web and i did add a simple action to a View and it works fine from Notes browser can this be simulated through web.
And also not like from a view but from a document level.Like they hit a button and this should close the report and send the report to archive.
A browser is a lot more limited in what it can do in a Domino environment.
In your case, I'd choose setting a flag on the document when it is to be archived. Said flag could remove the doc from the user view, putting it into a temp view. An agent would then be necessary to actually move the doc from the production db to the archive db.
As for the content of the agent, just have it target all docs in view and use a Simple Action : Copy Doc to Db, then add a Remove Doc action and you should be about done.
I would do it script, obviously. More control that way.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.