147
Views
3
Comments
Solved
How to refresh data table?


When first time on the aanvraag_lijst, refresh3 is not visible even it was saved to the database:


After using the pagination (going to 2 and back to 1), you see the table is refreshed and the most recent form off refresh3 is also visible.

Hi guys,


I want to refresh mine data table with a button called "refresh". I have a form where you must fill in some details, these details are visible on other page with all forms that are sent to the database. But somehow, when you fill in the form and save it to the database, it does not immidiatly occur on the database. For example: i fill in the form with the name "Paul", when i go to aanvraag_lijst, "Paul" is not visible on top of the table. But when i also fill in on other form with the name "Christel", now "Paul" is on top of the table, when i also fill in the form with the name "Eric", now "Christel" is on top of the table and so on. When i use the pagination and go to the next page and back to the first page, everything is visible and refreshed. 


So what i acctually want is when you fill in the form and save it to the database, it should be immidiatly visible on the aanvraag_lijst page (the table)

Refreshfout.oml
2018-10-04 11-09-42
Tiago Oliveira
Solution

Hello,

Try to change the "Default Value" of the variable "StartIndex" to 0 (instead of 1).

Feel free to tell me if it helps or if you need more help.

2020-09-19 13-34-26
Cássio Fagundes de Souza

Samed Gurses wrote:


When first time on the aanvraag_lijst, refresh3 is not visible even it was saved to the database:


After using the pagination (going to 2 and back to 1), you see the table is refreshed and the most recent form off refresh3 is also visible.

Hi guys,


I want to refresh mine data table with a button called "refresh". I have a form where you must fill in some details, these details are visible on other page with all forms that are sent to the database. But somehow, when you fill in the form and save it to the database, it does not immidiatly occur on the database. For example: i fill in the form with the name "Paul", when i go to aanvraag_lijst, "Paul" is not visible on top of the table. But when i also fill in on other form with the name "Christel", now "Paul" is on top of the table, when i also fill in the form with the name "Eric", now "Christel" is on top of the table and so on. When i use the pagination and go to the next page and back to the first page, everything is visible and refreshed. 


So what i acctually want is when you fill in the form and save it to the database, it should be immidiatly visible on the aanvraag_lijst page (the table)

 

 Hi,

It seems that your variable StartIndex has the default value set to 1, so your list is always skipping the first record, change the default value to 0 and that will solve your problem.


UserImage.jpg
Samed Gurses

Thank you guys, the problems is fixed!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.