|
|
|
|
Re: Matrix report csv fialed for the wrng input [message #459173 is a reply to message #459163] |
Thu, 03 June 2010 12:17 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
From your first message: what doesQuote:If it like 150 then simple report builder closing with an error. mean? "Error" is not a REP-XXXX error, is it? If query returns nothing because of an "invalid" parameter value (which, actually, causes nothing to be displayed), then you might create a text field and put "This not a Valid Dept" in there. Create a format trigger on that item which will check one of fields normally returned by report's query. Something like:return (:some_field is null); In other words: if query returns nothing, "some_field's" value will be NULL and format trigger will return TRUE, causing text item (and the message) to display. Otherwise, FALSE would prevent it to appear.
Once you have that text, you'd CSV it just as if it was a "normal" report result.
|
|
|
|
|
|
|
|
|
|
Re: Matrix report csv fialed for the wrng input [message #459589 is a reply to message #459104] |
Mon, 07 June 2010 06:14 |
lakshmi83
Messages: 12 Registered: August 2008 Location: Hyderabad
|
Junior Member |
|
|
Hello,
you can try in this way.
Write a cursor in a formula column and check if the dept is existing in the database or not by writing a query and check the below condition
var deptexists;
if exists then
deptexists=1
else deptexists=0;
in the layout for all the fields and frames in the format triggers place a condition
if deptexists=0 then hide object;
take a user parameter depttest(initial value='No Dept Exists,Please try to execute report again!!!"
Place this paramter as source for one of the field in the layout and for this also write a format trigger as below:
if deptexists=1 then
hide object;
Hopefully this will satisfy your requirement.
I mentioned only the logic here., please check the syntax's
Thanks,
Lakshmi.
|
|
|
|
|
|