Skip to Content

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


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)?


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 08 at 01:35 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.