Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Critic bug on setDataSource and fetch with ListGrid

    Using the latest nightly build, we've encounter a bug regarding data source changing on ListGrid.

    Our scenario is as follows:
    a user choose a data-source to show and a criteria to fetch with.
    than we set the grid`s data-source to the chosen one, and perform a fetch with the criteria.

    if the user switches the data-source more than three times, it doesn't work.
    in the server logs we see that it sends the request with a different data-source id than the one chosen by the user.
    In debug mode, we see that the ListGrid is set to the correct data-source and also the criteria is the right one.

    There is no code to add because we simply use:
    onSelection(newDS, criteria) {
    grid.setDataSource(newDS)
    grid.fetch(criteria)
    }


    Is it a known bug?

    Thanks!

    #2
    No, this is definitely not a known bug. Let us know if you are able to create a standalone test case.

    Comment


      #3
      it is a bit hard for me to generate code here, as mentioned before, we are working on isolated network.

      but basically we do nothing more than described.
      we have a list of datasources and a list grid.
      the user clicks a datasource and than the code above is run.
      really simple, nothing more.

      we don't instantiate a new grid in each selection.

      hope this will be enough,
      please let me know if not

      Comment


        #4
        Since there are samples that demonstrate DataSource switching and they work, this is definitely not enough.

        Let us know if you can reproduce the problem with a standalone test case.

        Comment


          #5
          Hi u4ibm,

          did you ever find a solution to this?

          Seems like we hava a similar issue.

          Any help appreciated

          Comment


            #6
            no, we could`t.

            but refreshing the page when happens makes it work again.

            Comment


              #7
              anything new?

              Comment


                #8
                this still happens.
                after N times we set the grid with a new DS and call the fetch operations it runs bad request on server.
                (the criteria sent on the client is correct. the server refer to it as if it was the previous DS, with current criteria.)

                thanks!

                Comment


                  #9
                  And we still have no standalone test, nor any other user reporting a problem. So work on a standalone test case if you really believe this is a framework problem.

                  Comment

                  Working...
                  X