Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

ForceReload() - How does it WOrk


Go to End


3 Posts   1420 Views

Avatar
zenmonkey

Community Member, 545 Posts

21 January 2011 at 1:59pm

I have an action on a Custom LeftAndMain that updates the data using a plain SQL query. How do I force the Panel to reload after the action is complete

LeftAndMain::ForceReload;
return;

just gives me a Javascript error.

Avatar
rob.s

Community Member, 78 Posts

23 January 2011 at 12:25am

did you try

LeftAndMain::ForceReload();

as method not as property ?

Avatar
zenmonkey

Community Member, 545 Posts

23 January 2011 at 6:40pm

Yes, I've tried calling it as a method before the return on the action and as the return of the action.

I'd really like to find more documentation on it