COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: nsrajiv on 11 Aug 2005 02:01:20 AM

Title: Validating in Prompt Page
Post by: nsrajiv on 11 Aug 2005 02:01:20 AM
Hi All

i need help.

I have a prompt page. It has a textbox that gets the value of a column.

When I enter a valid value in that text box I get the report perfectly. When I enter an invalid value into the textbox I get the report with no records. Thatââ,¬â,,¢s fine.
But I need to Print "Invalid Input " on the report when an invalid input in given into the textbox......got it?

Any idea how this could b done?

Thanks & Regards,
Rajiv.
Title: Re: Validating in Prompt Page
Post by: JO on 11 Aug 2005 02:19:55 AM
Hi,

Use a HTML item in the prompt page. and write java script to validate the text box.

Cheers
JO
Title: Re: Validating in Prompt Page
Post by: nsrajiv on 11 Aug 2005 03:34:00 AM
thanx Jo.

iam new to cognos reportnet. can u please explain it how to do.
i have a prompt page with a "Text Item" and a "finish" button below.

how can i validate the "TextItem" on click of "finish" button.

Thanks and Regards
Rajiv.
Title: Re: Validating in Prompt Page
Post by: JO on 11 Aug 2005 03:38:44 AM
can u explain me briefly, what is there in prompt page and report page. and also explain ur requirement.

JO
Title: Re: Validating in Prompt Page
Post by: nsrajiv on 11 Aug 2005 04:15:25 AM
as already said  i have a prompt page with a "Text Item" and a "finish" button below.

how can i validate the "TextItem" on click of "finish" button.

Thanks and Regards
Rajiv.
Title: Re: Validating in Prompt Page
Post by: Merri on 16 Aug 2005 05:20:13 PM
Based on your original request, you have two options:
either validate the input data via javascript as previously suggested;
or accept the invalid data, let the report run, and display "Invalid input" on the report.

You can achieve the second option by using conditional formatting on a text box in the list header or footer.