• DynamicViewPanel

    By Fero Kossuth 1 decade ago

    Please provide more control over generated columns.

    1) Links are generated for non formula columns, what makes no sense. Please remove that condition - columns computed by formula are perfectly fine to be shown as link to document.

    2) I want to format columns, but there is no information you can rely on. Please, pass programmatic name of column to generated html (tr, td). That way we can address the elements in CSS/JS. We often use specific programmatic names for columns (col_Summary, col_Author, col_Created and so on, which makes view/table controls sources more readable).

    • like this...

      By Philippe Riand 1 decade ago

      As far as I remember, we prevented formulas because it some times generate empty values and thus it is not clickable. Maybe we should be smarter and still generate a links for formulas that are summary values? Is this what you're looking for?

      for 2-, what are you looking for exactly? Have you tried to use a customization bean on the server side?

      • dynamic formating by programatic name

        By Fero Kossuth 1 decade ago

         

        > As far as I remember, we prevented formulas because it some times generate empty values and thus it is not clickable.

        Ehm, even field may be empty and it leads to the same links you can not click on.

         

        >Maybe we should be smarter and still generate a links for formulas that are summary values?

        That would be nice.

         

        >for 2-, what are you looking for exactly? Have you tried to use a customization bean on the server side?

        What exactly is customization bean?

        I am looking for anything, that will pass column information into rendered html. Let's say I have column with company name as value. I will tag this kind of columns (in all views in my application) by programmatic name "col_Company". If there was attribute of TR tag, let's say "columnid", containing this programatic name, I can run CSJS to format it properly (append link, apply class and so on.)

         
        
        • Made a fix

          By Philippe Riand 1 decade ago

          So formulas with summary values can be a link. This will be in the next build.

          The customization bean is a managed bean (or a simple Java class) that you can assign to the dynamic view panel. For a domino view, it must implement DominoViewCustomizer. It can be used to create the columns used by the view, from scratch, or customize the one that had been generated.

          • Customizer?

            By Fero Kossuth 1 decade ago

            Thanks for the fix.

            According to customizer: I can not find DominoViewCustomizer interface in sources distributed in latest release. Are you sure about it? Anyway, I have found the code for DynamicViewPanelVisualizer, is that what you meant? I will try to extend it.

            • No this is the DominoViewCustomizer

              By Philippe Riand 1 decade ago

              It is defined as an inner class of the DominoDynamicColumnBuilder. Please, have a look at this source file.

              • D'OH

                By Fero Kossuth 1 decade ago

                I was searching just for filenames... Thanks.