29 August 2005

Ajax meets DWT category views

I hope this is just the start of more fun with Ajax. I've taken single category views and have Ajax enabled them so that you can expand/collapse multiple categories. It's still a work in progress so I'm not posting a new version of DWT (yet). I want to work out the logic to handle any type of categorized view and not just the single category view. I know that Bob Obringer has been doing work on Ajax and Domino views and from a post to one of my blog entries I see that Erik Brooks has probably done everything that Bob and I are currently trying to do. Hopefully, everyone in the Domino community is benefiting from our work.

If you want to try out the multi-expand Ajax views then head on over to my DWT Online Demo and (using the dwt rendered outline) drill down to View Demo > single cat > True Single Category > example 1 (Multi-Expand). Or, if you prefer a more direct link, Here is where you can try it out. (Yes, I know that the image doesn't change when you expand. I'll get to that soon enough).

1. 8/29/2005 2:11:04 PM, Richard Schwartz wrote:

Nice! I've added it to my Domino and Ajax page at

{ Link }

-rich

2. 9/1/2005 1:26:53 PM, Erik Brooks wrote:

Hey Jack, you might be interested in this:

If you use ?ReadViewEntries with an &StartKey and &UntilKey parameter, you receive an attribute called "rangeentries" -- which appears to be the number of entries to which you have readers access.

Unfortunately there's two major problems: (1) it's not documented, and (2) you *have* to have both a StartKey and UntilKey. Getting a StartKey isn't too difficult, but an UntilKey is.

I guess you could use a WQO agent to pull the first and last document and grab their view values for use in as the Keys... interesting though.

3. 9/2/2005 8:20:11 AM, Jack Ratcliff wrote:

Erik,

Thanks for the tip. I use the StartKey and UntilKey for xml/xslt client-side dblookups. Did you know that there is a 'KeyType' argument as well? KeyType specifies the StartKey type of either text or time. The default is text if not specified but if you specify 'time' then you can specify a date/time value for your StartKey.

You're right about this not being documented at first but I believe they do document this now. Here's a Domino URL cheat sheet that includes these arguments.

{ Link }

4. 9/2/2005 8:36:09 AM, Erik Brooks wrote:

Yeah, I knew about 'KeyType' -- it's documented in the ND6 Designer Help. "rangeentries", though, isn't.

Unfortunately there's no 'KeyType=number' argument that allows you to start with an entry in a numeric column. Only text and date/time columns support that functionality. I've got an SPR open for that, and there's an enhancement request generated for it.

5. 1/4/2006 2:59:00 PM, owen wrote:

the two links return access denied - is there a name/password issue that I have missed?

Thanks

Add a new comment

(not displayed)
Remember Me?