• REST service (either one) - please use the new FTSearchSorted method in 8.5.3

    By Petter Kjeilen 1 decade ago

    Will the REST services (either one) use the new FTSearchSorted (8.5.3) method ?

    When using the search method, and the sortColumn has been set, the result should be sorted by this column.

    Thanks !

    regards,

    Petter Kjeilen

    • Need more information ...

      By Dave Delay 1 decade ago

      Hi, Petter.  What do you mean be "either one"?  Also, can you say more about the use case(s) you are thinking of?

       

      Thanks.

       

      -- Dave Delay
       

      • More information

        By Petter Kjeilen 1 decade ago

        Hi Dave.

        Today I use the viewJsonService with a dojo grid to display documents from an underlaying notes view.

        When displaying ALL the documents from the view, I'm able to sort the columns in the dojo grid which has sorting enabled in the underlying notes view + the grid is initially sorted by the column I specify in sortColumn.

        But, if I want to get a selection of documents from this notes view, I do this by using the search method on the viewJsonService.

        The dojo grid now displays the correct documents according to the query, but the grid is NOT sorted by the column specified in the sortColumn and it's not possible to sort the columns by clicking on the column headers.

        I assume this is because the search method on the service does a FTSearch on the underlying notes view.

        As you know, in notes 8.5.3, the notesview class has a new method, FTSearchSorted.

         

        To sum it up. I would like to be able to sort the viewJsonService store/ sort the dojo grid  when doing a search.

        This could also be done by making clientside sorting possible on the dojo grid.

        Thanks !

         

        regards,

        Petter Kjeilen

         

        • Got it.

          By Dave Delay 1 decade ago

          You are right.  We are using FTSearch now.  I like your suggestion to use FTSearchSorted.  That makes more sense than sorting on the client side.

           

          We'll take a look as soon as we can

           

          Thanks..

           

          -- Dave

          • RE: Got it

            By Petter Kjeilen 1 decade ago

            Hi Dave !

            That sounds great :-)

            Please also implement sorting when using categoryFilter and/or keys as well.

            It should ,of course, be possible to click on a column header to sort on another column.

            Thanks !

             

            regards,

            Petter Kjeilen