Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 layouts in the same report 2

Status
Not open for further replies.

latha9

Programmer
Dec 20, 2005
12
US
Hi,

I have created 2 reports but depending on the user selection i have to run the one report.

example i have th user parameter with 2 list of values.if the user selects one option one report has to run ,if the user selects the second option another report has to run.Can anyone please let me know how to create this report.

Thanks,
Latha
 
Add a trigger to your group frames something like:
Code:
function M_G_PRVYR_GRPFRFormatTrigger return boolean is
begin
  if    :P_YEAR = 2005  then
        return(TRUE);
  else  return(FALSE);
  end if;
end;

[sup]Beware of false knowledge; it is more dangerous than ignorance.[/sup][sup] ~George Bernard Shaw[/sup]
Consultant Developer/Analyst Oracle, Forms, Reports & PL/SQL (Windows)
My website: Emu Products Plus
 
Put each layout into separate frame of the variable vertical elasticity, place the frames one above another, but not overlapping, and create format triggers for each frame that would dijsplay the frame only for the appropriate values of the parameter.
Code:
 -----------
|           |
| LAYOUT 1  |
|           |
|           |
 -----------
 -----------
|           |
| LAYOUT 2  |
|           |
|           |
 -----------
 
Dear BJCooperIT ,
could you please kindly help me to understand how your approach solves the posted problem?
Thanks.
 
My approach is basically the same as yours, but you explained the layout better. If the report parameters had to do with requesting last year's reports (layout 1) or this year's report (layout 2), I was just trying to give a sample of the trigger on last year's frame that would produce this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top