• "Custom view titles"

    By Aigars Perkons 2 decades ago

    There should be the title that are defined View design. In this early beta release grid titles are the formulas from view. I understand that's because ?ReadViewEntries doesn't contain any design information about specific view column.



    My first idea is following. You can make a some notes agent who makes a xml file on-the-fly. Using NotesDXLExporter quite easy get design information from view. After that there should be possible combine this result XML file combine with DominoXMLDataModel.js and get proper column titles.



    Maybe in later releases this technique will help for example get also view icons and not just numbers.



    Best regards.

    • 2nd idea

      By Aigars Perkons 2 decades ago

      Instead of making custom agent we can use "?ReadDesign" for views to get column names. Much easy way but seems undocumented :)

      • Already ahead of you :P

        By Rich Waters 2 decades ago

        My local development version is using ?ReadDesign&OutputFormat=JSON to grab the correct titles for columns, I'm also grabbing whether its an Icon and added a new renderer to display the proper image, and I started working on having it check whether or not the columns are set to be sortable so I can display some sort of indicator to the user that a column can be sorted.

        • Panel Tab titles from view data

          By oscar medina 2 decades ago

          Can't wait to view the next release.



          I created a simple js code to display document specific information on the panel tab. This script pulls the value from the xml data. As a result, first column entry text value is displayed on the tab.



          This is assuming the following xml format which is appropriate for the '?ReadViewEntries' URL command:



          <?xml version="1.0" encoding="UTF-8"?>

          &lt;viewentries toplevelentries=&quot;x&quot;&gt;<br/>
              &lt;viewentry position=&quot;x&quot; unid=&quot; &quot; noteid=&quot;xx&quot; siblings=&quot;xx&quot;&gt;<br/>
                  &lt;entrydata columnnumber=&quot;0&quot; name=&quot;xx&quot;&gt;<br/>
                      &lt;text&gt;xxxxx&lt;/text&gt;<br/>
                  &lt;/entrydata&gt;<br/>
               &lt;/viewentry&gt;<br/>
          

          </viewentries>





          The modified code is appended to the 'rowClick' function:



          rowClick : function(gridclicked, rowIndex, e){

          ……

          var childnode = node.getElementsByTagName('entrydata');

          var nodevalue = childnode[0].getElementsByTagName('text')[0].firstChild.nodeValue;

          showPage('center', unid, unid, nodevalue );

          },