Skip to main content
jielingl5323
April 8, 2023
Question

Refresh data fetching from task report

  • April 8, 2023
  • 4 replies
  • 0 views

Hello,

I have an interface which shown a corresponding gird with 10 records on a page, after user choose the one the would like to see. There is also a refresh bottom available within the interface.

All data shown in the grid came from task reports, and assume to be refreshed when either someone press the refresh bottom or make a choice.

The refresh itself do work, and my problem is that when the grid is on the second page , the way of data displayed after refreshed differs between

a.no actual update for the task report

b.do have update in the task report

When a the grid stay on the second page while under the situation of b, the gird will display data from the first page.

What should I add to my code to ensure that it maintains the same performance in all cases.

4 replies

April 8, 2023

You are very unclear with the requirements here and it's hard to understand what you want to achieve with the description

If you want to refresh grid data then you have specified refresh parameters in the gridField for that, you can use them.

jielingl5323
April 9, 2023

Thank you for your comment. I did success in getting the data refreshed, but just confusing about the way of data displayed in different situation, and that is what I am asking here.

mallepup3914
April 11, 2023

I think as you refresh the data it'll automatically returns to the first page, hence the new data will be added to first page. 

jielingl5323
April 11, 2023

The new data was shown in the second page in fact..