After no time at all I found myself writing new web-based agents without all that DocumentContext stuff in it. It's now as simple as this:
Sub Initialise Dim web As New WebSession() Print web.database.title Dim view as NotesView Set view = web.database.GetView("RSS") Print view.name Print web.document.isnewnote Print web.user.common web.setUser web.document.curruser(0) Print web.user.abbreviated Print web.URLQueryString("test") End Sub
As expected the output from the URL "test?OpenAgent&test=testes" was "HTMLArea Fields RSS True Fisher Anonymous testes"
Writing web agents from now on is going to be so much easier and I've already started using this new approach on actual projects I'm working on.
The only downside is that there's no autocomplete when writing code. Writing web.document and then another . doesn't bring up the list of methods and properties to choose from. I can live with that though.
I know what you're thinking. Where's that bloody download you promised? Well, it's close. Give me until Friday and I'll post something then. I just want to make sure it's suitable for use.