Hello All,
I have seen this tip on the web.Its a good articale working fantastically.
Here is the link…
http://www.tlcc.com/tlcc/tips/selview.nsf/DemoFS?OpenFrameSet
But I have failed when I tried to use this in my database.
See tips explanation to get the code.
the agent is not executing at all.Why?
Thanks for your suggestions.
regards
Sanjay
Subject: Very good article - But I have failed to implement in my database - suggestions required
There could be any number of reasons why the code does not execute, but alas you did not peovide any details that would allow anyone to help you. Things such as what browser you are using, what part of the code is failing for you, etc.
For Howard:
The example there is quite interesting, but confusing as it was unclear how to remove an item from trash once it had been selected. Had to click and try a few things to figure it out.
Subject: thanks, use this to empty the trash
@Command( [EmptyTrash] ) Usage
This command permanently deletes any documents currently marked for deletion (use MoveToTrash @Command to mark documents for deletion).
You can use this command with Web applications. The View applet is also programmable via this @command.
We did not want to demonstrate this in our demo database since the documents needed for the view would get deleted! We did explain how to delete documents in the tips explanation. Did you see that?
Howard
Subject: RE: thanks, use this to empty the trash
I was thinking more along the lines of unmarking an item for deletion. It was not intuitive to me.
Subject: MoveToTrash is a toggle…
@Command( [MoveToTrash] )Usage
The View applet is programmable via this @Command.
@Command([MoveToTrash]) is identical to @Command([EditClear]) except, on the Web @Command([EditClear]) causes the current document to be deleted. @Command([MoveToTrash]) provides consistent behavior for the Notes Client and Web users.
This command does not permanently delete documents; it marks them for deletion. To permanently delete the documents marked for deletion, the user must refresh the view manually, or programmatically using any function that refreshes the view, such as the ViewRefreshFields @command. A user can also permanently delete documents marked for deletion by triggering the EmptyTrash @command.
MoveToTrash has the same functionality as selecting a document in a view and pressing the Delete key. You can toggle both. Just as you can remove the deletion mark from a selected document in a view by pressing the Delete key a second time, if you trigger the MoveToTrash command a second time, the mark for deletion is removed from the document.
Subject: RE: MoveToTrash is a toggle…
Oh I realize that. I was just looking at it from the perspective from an end user of the web application, especially one who has not used a Notes Client before. From a usability perspective, I am just suggesting that the buttons be changed a little bit, making it a two step process (which I think is very important in both the Notes Client and from a web browser):
One button that markes selected items for deletion (and keeps the checkbox selected), one to empy the trash using the commands demonstrated, and one that unmarks an item for deletion.
Subject: RE: Very good article - But I have failed to implement in my database - suggestions required
Thanks for your review…I am using IE6 browser.
Its not getting executed the agent its failing
why?could not able to arrive.
thanks
regards
Sanjay