logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • David Schmidt
    • Posted on Tue 12 Apr 2005

    You can mimic this functionality using XSLT, XPATH and ?readviewentries.

    Scenarios for categorized views (flat views are even more simple) Scenario 1 (slower, high cpu + mem usage): You download the whole view in xml using ?readviewentries&expandview&count=….. The data is only fetched once, the whole view is rendered into dynamic html. You can rather easy add smart view navigation and bookmark functionality. Limitation: &count > xxxxxx documents.

    Scenario 2 (faster, more complex): You only download the collapsed view (?readviewentries&collapseview). When the user clicks on a category, the data within that category is loaded into the page (xsl sample: ?ReadViewEntries&amp;Start=<xsl:value-of select="@position" />.1&amp;Count=<xsl:value-of select="@children" />&amp;Collapse=<xsl:value-of select="@position" />.1)

    http://fromdomino.com/__48256E5A001AB060.nsf/plinks/PDWD-5XQCGV http://free.corefusion.net/Free/wausau/home.nsf/$$NavigatorTemplateDefault?OpenF orm http://www.openntf.org/Projects/codebin/codebin.nsf/CodeBySubContributor/3B00647 5E3B5BCDE88256C4800728BCA http://jackratcliff.com/jratcliff/dwt/dwt-demo.nsf

    http://www.w3.org/Style/XSL/ http://www.topxml.com/xsl/default.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/con XSLTDevelopersGuide.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmr efxsldecimal-formatelement.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/XPa th_What_Is.asp

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: