• webViews - AARGHHH

    By Scott Wichall 2 decades ago

    first of all I would like to say to Jack and the Team…..THANKS - ITS MARVELOUS



    But, and there is always a but



    When using single cat views, ie RestrictToCategory is set to a value, if one of the remaining column entries happens to be an icon, it breaks. (displays a text value for the icon number, and an image for the next column)



    I have looked at the ReadDesign command, and the column numbers in readdesign do not match readviewentries with a restricttocategory applied, - they are decremented by 1 in the readviewentries output compared to the readdesign.



    I am going to try a hack on the xsl stylesheet, and I will report back on progress - unless you have already noticed this, and planned to fix it :-)

    • first pass resolution

      By Scott Wichall 2 decades ago

      OK



      I have had a play with the file "webViews/xsl_DominoView_StandardTemplates6.xsl"



      Located at the start of template <xsl:template name="generateLinks" >



      replace the <xsl:variable name="curColNbr" select="@columnnumber"> with the following xslt



      <!– current column number being processed –>

      <xsl:variable name="curColNbr">

      <!– check to see if this is a restricted category, and increment the columns to get if so–>

      <xsl:choose>

        &lt;xsl:when test=&quot;$bDominoViewRestrictToCategory = 'true' &quot; &gt;<br/>
             &lt;xsl:value-of select=&quot;@columnnumber + 1&quot;/&gt;<br/>
         &lt;/xsl:when&gt;<br/>
         &lt;xsl:otherwise&gt;<br/>
            &lt;xsl:value-of select=&quot;@columnnumber&quot;/&gt;<br/>
         &lt;/xsl:otherwise&gt;<br/>
      

      </xsl:choose>

      </xsl:variable>



      I havnt tested it destructively, but it seems to work OK with my views :-) - all containing icons on restricted and full category views



      HTH



      Scott

      • Good Job Scott

        By Jack Ratcliff 2 decades ago

        Hi Scott,



        Great minds think alike. I just made the same changes to get it to work for me. When using the RestrictToCategory parameter, domino decrements all column numbers and therefore, as in this case, you have to add them back in order to sync the column numbers from ReadViewEntries to the column numbers in ReadDesign. In my opinion, what Lotus should do if you use RestrictToCategory is to leave the column numbers alone during a ReadViewEntries.



        There are other bugs with RestrictToCategory which prevent it from being extremely useful. For instance, if you have columns set to resort when clicked, they don't work when also using RestrictToCategory. I believe &StartKey also does not work with RTC.



        I have a enhancement request for this at Lotus but I can't get it prioritized. Steve Leland, the manager of the group that would do this says the only way to get it prioritized at Lotus is to get a big movement started in the development community that are wanted it or to get Ed Brill to push for it. Maybe we can get one or the other started and get these bugs fixed!

        • Next steps...

          By Scott Wichall 2 decades ago

          Hi Jack



          Thanks for the feedback - great minds do think alike.



          When IBM finally get the caveats ironed out of readviewentries, I think that is the way forwards with XSLT. We have had so many problems with the java applet (grey box on R5, even with JS resizing), security and firewalling issues, and HTML views give you insufficient control over the display with categorised views.



          The next steps I would like to consider, are loading view segments like the MSDN library TOC (http://msdn.microsoft.com/library/default.asp) - that would be an excellent enhancement i think



          Regards



          Scott