This topic is locked

List grid refresh

10/17/2015 10:53:34 AM
PHPRunner General questions
P
PAGD author

I have a custom button on a List Grid which updates some of the fields. Is there way of refreshing the grid so as to show the updates?
Many thanks

Sergey Kornilov admin 10/19/2015

You can try something like this in ClientAfter event:

location.reload();
P
PAGD author 10/22/2015



You can try something like this in ClientAfter event:

location.reload();



Sorry I can't get this to do anything

Sergey Kornilov admin 10/22/2015

You are not giving any useful info. What exactly you tried, what didn't work, where exactly you adding this code.
Post some screenshots, error messages etc.

P
PAGD author 10/27/2015



You are not giving any useful info. What exactly you tried, what didn't work, where exactly you adding this code.
Post some screenshots, error messages etc.



Sir,
The button when pressed alters some of the field values on the grid, but after it is pressed the grid does not refresh to show the changes.
I've place the code location.reload(); in the 'Client after' of the 'Pay next year' button in the grid, but it appears to do nothing.
Phil

Sergey Kornilov admin 10/27/2015

My guess is that some error happens in client or server side of the button so this code never gets to run.
Here is the article that explains how to troubleshoot buttons:

http://xlinesoft.com/phprunner/docs/troubleshooting_custom_buttons.htm

P
PAGD author 10/28/2015



My guess is that some error happens in client or server side of the button so this code never gets to run.
Here is the article that explains how to troubleshoot buttons:

http://xlinesoft.com/phprunner/docs/troubleshooting_custom_buttons.htm



Sir,
After using Firebug, I'm getting the following error message:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
...pageObj.buttonEventAfter[ctrl.btnName](JSON.parse(result),ctrl,pageObj,proxy,pag...



I hope this helps.
Best wishes,
Phil