parameter report [message #428589] |
Thu, 29 October 2009 01:14 |
asalam
Messages: 14 Registered: July 2009
|
Junior Member |
|
|
good morning
i have report but i want to path LOV through parameter from
but LOV contains status for client
for every status i must path different period from and to date
for example
if the client accept we enter date
and when client refused we entered another date from another table
what can i do
can you help me
thanx
|
|
|
|
Re: parameter report [message #428886 is a reply to message #428602] |
Fri, 30 October 2009 09:17 |
asalam
Messages: 14 Registered: July 2009
|
Junior Member |
|
|
thank u for reply, and i'm sorry because i did reply once you sent your message , i had problem with connection.
i did your script but i have a message rep_1401 , fetal error with after parameter form trigger
so i want to ask , would i define 3 paramters in report query model - one client_status and two from date_1 and date_2?
thank you again for your help
|
|
|
|
|
Re: parameter report [message #429015 is a reply to message #428978] |
Sun, 01 November 2009 01:51 |
asalam
Messages: 14 Registered: July 2009
|
Junior Member |
|
|
this is code
but it doesn't work
please write the paramEters in query model
function AfterPForm return boolean is
begin
IF :p_status = '1' then
SELECT PERM_DATE DATE1, PERM_DATE DATE2
INTO :P_from_DATE, :P_To_DATE
FROM perm;
ELSif
:p_status = '2' then
SELECT ADMIN DATE_1, admin DATE_2
INTO :P_from_DATE, :P_To_DATE
FROM TEMP
end if;
return (TRUE);
exception
when value_error then
dbms_output.put_line('Error'||SQLERRM||' '||SQLCODE);
return (false);
end;
|
|
|
|
Re: parameter report [message #429165 is a reply to message #429042] |
Mon, 02 November 2009 06:31 |
asalam
Messages: 14 Registered: July 2009
|
Junior Member |
|
|
hi littlefoot
thank you so much , i removed the exception handler unit, and i trace the output by using toad.
and now the report is working.
thank you again
and i'm sorry for upset you from my mistakes.
bye
|
|
|
Re: parameter report [message #429168 is a reply to message #429165] |
Mon, 02 November 2009 06:59 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
LOL, these things don't make me upset; their consequence is the fact that you get the answer much later than if you posted accurate information.
OK, never mind that, I'm glad you found the solution.
|
|
|