COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: sg24 on 15 Feb 2011 04:27:30 AM

Title: Display the message
Post by: sg24 on 15 Feb 2011 04:27:30 AM
Hi Folks,

Please let me know how to display a message.
condition

If the chosen employee is not part of TMP, then the system should display a message "Employee is not part of TMP". If the employee is part of TMP, the page should list all the TMP details for the chosen associate.

Kindly share your ideas.
Title: Re: Display the message
Post by: venkiatmaruthi on 16 Feb 2011 09:48:46 AM
Hi,

Dont know you want this functionality on report studio?

If you want this in Report studio.... as per my knowledge you can't do direclty.

You will have to use Javascript for this.

try googleing on net. YOu will get code.

Hope this helps.
Title: Re: Display the message
Post by: MFGF on 16 Feb 2011 01:36:26 PM
Hi,

One of the key questions is how you can determine the employee. Is this based on the login of the user running the report, or is it prompted for, or are you thinking of a report showing multiple employees, some of which may belong to TMP?

MF.
Title: Re: Display the message
Post by: sg24 on 18 Feb 2011 06:34:28 AM
Thank you for reply Folks !

The employee code is prompted . i have used a select and search prompt and beside that is the value prompt of the radio type.
when the emp code is entered and the "inactive "prompt is selected and if there are no employees who are inactive it should not display a balnk page. it should display a message.

Title: Re: Display the message
Post by: MFGF on 21 Feb 2011 06:47:45 AM
Assuming you are running a more recent build of Cognos 8, if you select your display container (list, crosstab, chart etc) you should see a property called 'No Data Contents'.  If you set the value of this to 'Yes', you can then drop in a text item (for example) to be displayed in the event the list/crosstab etc is empty.

Regards,

MF.