Visible and Unvisible when Needed

To discuss Oracle Forms & Reports related technical issues.
Post Reply
najm
Posts: 74
Joined: Wed Apr 05, 2006 8:04 am
Location: Pakistan

Visible and Unvisible when Needed

Post by najm »

I have a Report and In the header of a report the data is like this (1st)

Program:MBA
Major:MIS
Start Date:1-Jan-2003
End Date:1Dec-2005

another format of a data is this (2nd)
Program:B.Com
Major:
Start Date:1-Jan-2003
End Date:1Dec-2005

as we saw there is no major in the 2nd data where as there is a major in the 1st data if you think it is not looking good.

my requirement is that i want if there is no major then the start date moves with head to the major location and End Date moves to the Start Date Location. and the Data shows like this of a 2nd is

Program:B.Com
Start Date:1-Jan-2003
End Date:1Dec-2005

It's Look Better
Please Can any one resolve my this issue

Thanks

Cheers
admin
Posts: 2063
Joined: Fri Mar 31, 2006 12:59 am
Location: Pakistan
Contact:

Post by admin »

Use conditional formatting hope would be useful. thanks
ahmadbilal
Posts: 615
Joined: Mon Sep 18, 2006 1:32 am
Location: United Arab Emirates
Contact:

Post by ahmadbilal »

select 'Major:'||major as major,'Program:'||programe as programe from tablename

and then apply condational formating on major,programe field to hide this when return null in major

if anybody have another idea then please post
najm
Posts: 74
Joined: Wed Apr 05, 2006 8:04 am
Location: Pakistan

Post by najm »

I use the following Formula Column for replace Major to Start Date

function CF_5Formula return Char is
PTITLE2 varchar2(60);
begin
select PR.PTITLE
into PTITLE2
FROM STPROGRAMDET P, TRANSCRIPT TR, PROGRAM PR
WHERE TR.SNO = P.SNO
AND PR.PCODE = P.PCODE
AND TR.PCODE = PR.PCODE
AND P.SNO = :P_SNO
AND P.PCODE = :P_PCODE
AND TR.SR =:P_SR;
return PTITLE2;
exception
<i><b>when others then return :Start_Date </b> </i> ;
end;

but on Start Date i am unable to get End Date and unable to do End Date Null.

If do not understand please let me know.
rtoogee
Posts: 4
Joined: Thu Jan 15, 2009 11:36 pm
Location: Indonesia

Post by rtoogee »

If the output of report is text, you can use format trigger to visible or invisible.

If the output is rtf template, you can use conditional formatting
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests