• data view empty

    By Uwe E. Jandt 1 decade ago

    Hi experts,



    I am still quite new ("fighting" since a few weeks with xpages ;-) ) - and I'm not sure if this forum is the right place to ask questions:



    I just want to implement a data view (xe:dataView) on my page, dragged it on the page, define a source DB and view - but only get an empty page.

    A dynamic view with exactly the same settings shows the (notes) view.



    Must be a rookie mistake - but I do not see it.



    Thanks for any help in advance - or if this is the wrong place to post this: thanks for showing me the right one :-)



    Uwe

    • Did you pull out the data?

      By Simon McLoughlin 1 decade ago

      The dataview allows you to display contents of a view but you have to specify what it is you want to see. For example you create the dataview, add a datasource and then add what columsn you want to see. Like this:

       

       

      <xe:dataView id="dataView1" var="viewEntry"
      
      binding="#{viewStateBean.dataIterator}" collapsibleRows="true"
      
      collapsibleDetail="true" openDocAsReadonly="true"
      
      columnTitles="true" rows="10" pageName="document">
      
       
      
      <xe:this.data>
      
      <xp:dominoView var="dominoView"
      
      viewName="xpByMostrecent" dataCache="full" >
      
      </xp:dominoView>
      
      </xe:this.data>
      
       
      
      <xe:this.categoryColumn>
      
      <xe:viewCategoryColumn columnName="Date" columnTitle="Date">
      
      </xe:viewCategoryColumn>
      
      </xe:this.categoryColumn>
      
       
      
      <xe:this.summaryColumn>
      
      <xe:viewSummaryColumn columnName="Topic" columnTitle="Topic">
      
      </xe:viewSummaryColumn>
      
      </xe:this.summaryColumn>
      

       

      you should take a look at the demo app or the updated templates that come with the ExtLib to see these controls in action

      • thx :-)

        By Uwe E. Jandt 1 decade ago

        Thank you, Simon,

        I thought that it does it similarly to the dynamic view control.

        Was too fast … now i am working through the example…. with some success ;-)



        BTW: viewEntry["Abstract"] is a fixed expression, to show (which) abstract of a document?



        Uwe

        • viewEntry["Abstract"]

          By Fero Kossuth 1 decade ago

          This fetches property "Abstract" from object (map) viewEntry. Abstract may be column programatic name or title.

      • Hi

        By jason ajo 1 decade ago

        I am trying to learn the DATA VIEW custom control from Ext. Lib 8.5.2. I tried to used by dragging a panel on the EDITABLE AREA , but nothing is happening.I am trying to use the detail , and pager editiable areas. I used the define the view source,COLUMN TITLE, SUMMARY COLUMN, EXTRACOLUMNS setting fine. but with details not working.

        Appreciate any help.Thank you in advance.

        • Have you looked at the demo DB?

          By Philippe Riand 1 decade ago

          If so, and it is still failing, please attach your DB to this thread with the steps to reproduce.