It's all about the answers!

Ask a question

How to display custome messages on the Dashboard viewlet

geetu garg (81412) | asked Sep 07 '09, 8:41 a.m.

I have a custom viewlet with some links on it, each invoking a dialog with a form.

On finish, i want to hide the dialog and display a successful or failure message on the viewlet.

How do i do that?

One answer

permanent link
Adam Archer (83639) | answered Sep 08 '09, 11:28 a.m.
This is a very abstract question and there are many different ways you could achieve this. They all involve manipulating the DOM of the viewlet itself though.

How you go about this depends on what exactly you want to achieve. You can use css to show/hide any of the existing links that you want to still be visible while the message is displayed. In addition, you will want to get a reference to a DOM node that can be used to display the message and populate it appropriately. Once you have the node ready, you will probably want to add a css class to it to control exactly where/how it is shown.

For more detail on this you should research DOM manipulation using javascript as well as the tools available through dojo and, more specifically, dijit._Widget (which your viewlet extends automatically by extending our Viewlet class).

Adam Archer
Jazz Web UI Developer

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.