Reload object automatically

Hi,

I was using pimcore 4.5.0 and want to set up the system in 5 now.

In 4.5.0 i had a small plugin, that reloaded a saved object automatically, to prevent users from having to press “save” and “reload” every time they changed something.

I want to set this up in pimcore 5 now. But dont know how…

Ok sorry if my Edits were confusing.
In fact I need help with it, I don’t know how to set up a plugin for this.

Hi,

Have you found any solutions? I need a similar thing - I need to reload/refresh a folder programmatically.

Thanks,
Alex

Hi,

in fact I found a way to implement this but not the way it is intended.
In our environment the “members bundle” is installed. I just edited the code inside the startup.js file of this bundle and added the command “object.reload();” inside the postSaveObject function.

Cheers

Hi
I am using Pimcore 6.2.1.
I am calling onPreUpdate event and updating some data on the localized fields.
The object is updated but the UI does not reload so the user must reload the object in order to see the updated data.
Any suggestions how to reload the UI?
Thanks

Check function in your script

object.reload()

Example:

postSaveObject: function (object, type) {
     object.reload();
}