• pagerAddRows still not hiding initially

    By Thomas Adrian 1 decade ago

    the pagerAddRows control still does not hide initially, I have reported this earlier and it was supposed to be fixed by Philippe, but it is not.

     

    • Sorry don't recall

      By Philippe Riand 1 decade ago

      Can you send me the example where it fails?

      • Example database

        By Thomas Adrian 1 decade ago

        Hello Philippe

        Here is an example application

         

        I think the reason it fails is because I have enabled "Show multiple values as seperate entries" on the view.

        would be nice it this can be fixed to support this as I use this heavily in my application

         

         

        • Fixed

          By Philippe Riand 1 decade ago

          Thanks Thomas. This was due to the key="" option in the data source and this will be fixed in the build.

      • Another problem

        By Serdar Basegmez 1 decade ago

        Phillipe,

        I had a small problem as well. I have 5 lines in my repeat and 10 lines in the collection.

        If you add 5 another rows, the 'show more' link doesn't disable. But if you add another 6 rows, it is being disabled.

        • yes,this is a known one

          By Philippe Riand 1 decade ago

          The solution would unfortunately involve a change in XPages core, not extlib. In fact, partial refresh asks for x rows and the client side code guess they are more rows if the #of rows returned equals the number asked (x, in this case). When it is less, it means that it reached the end of the collection.

          Along  with the rows, the data iterator can generate a script variable that tells the client if rows are available.