cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to refresh/reload CMSCockpit's current element by a button?

former_member635443
Discoverer
0 Likes
416

Hi!

Let's say my task is to create a button in CMSCockpit, which has to be displayed on every XY type object. My button has some logic in it, for eg. the user is able to upload some child objects under the current XY object, but after the upload the button's task is to refresh/reload the current object, so the user is able to see the uploaded child elements.

How could I implement the second task (refreshing/reloading the current object)?

Cheers,
Adam

View Entire Topic
former_member635443
Discoverer
0 Likes

We have managed to solve this issue by calling the UISessionUtils.getCurrentSession().getCurrentPerspective().getEditorArea().setCurrentObject(this.typedObject); from the newly created renderer class.