I built an HTML-only view which has checkboxes to process all selected documents. I built this because I HATE forcing users to use the awful applet.
Also because multi-document processing is rather inadequate in the applet. I’ve managed to replicate the categorized views in that the user clicks on the category name itself to expand it to display the documents in that category.
Expanding and collapsing work just as in the applet. However, I can’t seem to capture the state of the row being generated. What I mean is that I can’t get a handle on whether the category is expanded. I want to capture this so I can display a different image for the expanded category to truly emulate what the applet does (column header sorting is another matter).
I found this rather complex and murky code posted here about how to accomplish this :
http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/8c51bd57b8dc81fb85256efb0071fbd9?OpenDocument
But it’s hard to get what’s happening in the example. It’s obvious the poster worked hard to get it working, but I’d like to know if there is another way of accomplishing these custom HTML categorized views with custom twisties.
Sorry for the long post, many thanks if you made it this far 
Subject: Possible to capture the state of an expanded category in an HTML only view?
Have you looked at my Domino Web Tools project on OpenNTF? I am using the xml generated from Domino’s ?ReadViewEntries and ?ReadDesign URL commands to create better HTML views than what Domino gives out of the box. It handles categorized views quite nicely and it shows the correct image for a category depending on its state.
I haven’t added the code yet to allow a user to select a document from the view but that is coming soon.
Domino Web Tools Project:
http://www.openntf.org/Projects/pmt.nsf/ProjectHome?ReadForm&Query=Domino%20Web%20Tools
Online Demo:
http://jackratcliff.com/jratcliff/dwt/dwt-demo.nsf
Cheers,
Jack
Subject: Possible to capture the state of an expanded category in an HTML only view?
Apart from Jack’s suggestion, you can also serve everything as collapsed and call a JS function to mark a parent as expanded – use @DocNumber both for row ids and for the expandParent() call parameter. Every category has a link that does something like this, right:
![]()
If you modify it to:
![]()
you can swap the substring “collapse” for “expand” in both the image’s src and the links href in the expandParent() function. If you use @DocNumber(“_”), then all you need to do to find the parent id for anything that’s served is to lop the value off at the last underscore.
I hope that’s enough to work with.