Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to display custome messages on the Dashboard viewlet

Hi,

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?

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Sep 07 '09, 8:41 a.m.

Question was seen: 5,515 times

Last updated: Sep 07 '09, 8:41 a.m.

Confirmation Cancel Confirm