So it’s not even 10am and I’ve learned my thing for the day. It’s amazing that there are these little nuggets of information which have passed me by all these years.
I was trying to delete a document from a web database this morning. I had accessed the document via the “0” view so the URL looked like http://myserver/mydb.nsf/0/[unid]?opendocument which of course worked fine. So what I told my user to do was just replace “opendocument” with “deletedocument” but he kept on getting an error. “Stupid bloody users” thought I, “Can’t even type a simple URL parameter”. But then I tried it and, shock, horror I got an “Invalid URL Exception” error returned as well. To be honest I was a little stumped but of course notes.net put me straight with the answer. You cannot use the “deletedocument” command against an unsorted view and it appears that the “0” view is indeed unsorted.
It’s good that there’s still stuff out there to learn, even if I should have known that a long time ago.