I am trying to populate grid with result from a!queryEntity. Data loads with one

I am trying to populate grid with result from a!queryEntity. Data loads with one column sorted as mentioned in a!sortInfo. However, sort after clicking on grid column headers is not working. Clicking on header shows arrow and it doesn't throw any kind of error. I have attached the test code for this.

Any help is really appreciated.

Thanks!

QueryEntityGrid.txt

OriginalPostID-144870

OriginalPostID-144870

  Discussion posts and replies are publicly visible

Parents
  • @jayashrib223 Hi, just had a look at the code you attached. Your code should additionally handle the following - Reload the local!poDataToLoad with fresh values (data and pagingInfo) not only when Search button is clicked, but also when you interact with paging grid (i.e. sorting/ paginating). Rest of the code seems fine. Please do let me know if you have any follow up questions.
Reply
  • @jayashrib223 Hi, just had a look at the code you attached. Your code should additionally handle the following - Reload the local!poDataToLoad with fresh values (data and pagingInfo) not only when Search button is clicked, but also when you interact with paging grid (i.e. sorting/ paginating). Rest of the code seems fine. Please do let me know if you have any follow up questions.
Children
No Data