cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member635443
Discoverer
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member635443
Discoverer
0 Kudos

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