BusinessObjects Board

How to implement a message box for an error message

Hi All,

When I am entering a invalid values for a prompt/condition I am getting “No data fetch” window. I know that this occured because of invalid values. But I wolud like to have a window prompted with the error message like “Invalid Values” instead of “No data fetch”.
How can I achieve this in my report ? Any one can help me in this issue ?

Thanks in advance


psankati (BOB member since 2007-09-14)

You can suppress the default ‘no data to fetch’ message and create your own message box to show up when there are no rows returned by the dataprovider

.


haider :es: (BOB member since 2005-07-18)

See this for further information.


Jansi :india: (BOB member since 2008-05-12)

Hi

I tried a lot but stucked up after creating a variable.
Could you please explain me in detail.

Thanks


psankati (BOB member since 2007-09-14)

Create two blocks. 1) The block1 whose data you want when you select the right values. 2) The block2 just having “Sorry you have entered a typo. Please select again”

Create the variable with this.

nrow=NumberOfRows(DataProvider(<Year>))

Place the blocks one over the other and write hide condition in the appearance tab of the format table window.

For block1 write ==0 and then check hide
For block2 write = > 0 and then check hide.

Now when you run, if you enter right values, then block1 will be displayed. If not, the second block will be displayed with the message you have into it.

But this will give a friendly message after the report execution…

For just suppressing the error messages, you can have a look into other options from here.


Jansi :india: (BOB member since 2008-05-12)