dbTalk Databases Forums  

Collapsing a column in layout dynamically in Oracle Reports 6

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Collapsing a column in layout dynamically in Oracle Reports 6 in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
OraRepDvlpr
 
Posts: n/a

Default Collapsing a column in layout dynamically in Oracle Reports 6 - 04-26-2005 , 04:46 PM






Hi,
I need help on the following issue:

I have a query that is the union of two sqls. Depending upon the report
type selected on Parameter Form, only one SQL is fired at a time. I am
using single layout for both the reports.
The result set of two SQLs differ by a column as explained below:

Result Set for SQL 1(Report1): Col1 Col2 Col3---------->
Result Set for SQL 2(Report2): Col1 Null Col3

Desrired Output for SQL2: Col1 Col3-------------------->

When the SQL2 (Report2)is fired, I get a blank for Col2 (i.e. null) and
there is a gap in the report output for null values.

What I want is to collapse Col3 so that it does not leave any space
after Col1 and is printed inplace of Col2. The arrows represent that
the border of the col2 shoudl be extended till end of row.
My initial guess was using the Horizontal Elasticity property to
Variable using PL/SQL code. I don't know if I can alter the properties
programitically.

Any ideas,

TIA.


Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: Collapsing a column in layout dynamically in Oracle Reports 6 - 04-26-2005 , 05:41 PM






OraRepDvlpr wrote:

Quote:
Hi,
I need help on the following issue:

I have a query that is the union of two sqls. Depending upon the report
type selected on Parameter Form, only one SQL is fired at a time. I am
using single layout for both the reports.
The result set of two SQLs differ by a column as explained below:

Result Set for SQL 1(Report1): Col1 Col2 Col3----------
Result Set for SQL 2(Report2): Col1 Null Col3

Desrired Output for SQL2: Col1 Col3--------------------

When the SQL2 (Report2)is fired, I get a blank for Col2 (i.e. null) and
there is a gap in the report output for null values.

What I want is to collapse Col3 so that it does not leave any space
after Col1 and is printed inplace of Col2. The arrows represent that
the border of the col2 shoudl be extended till end of row.
My initial guess was using the Horizontal Elasticity property to
Variable using PL/SQL code. I don't know if I can alter the properties
programitically.

Any ideas,

TIA.
Load a global temporary table and report from it.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)


Reply With Quote
  #3  
Old   
OraRepDvlpr
 
Posts: n/a

Default Re: Collapsing a column in layout dynamically in Oracle Reports 6 - 04-26-2005 , 10:35 PM



Thanx Daniel.
I found an easy way (accidently) of doing it by creating a new layout
(with two columns) and then hiding one layout at a time depending upon
report type. I would like to know about the global temp table that you
suggested. What should be in the global temp table?

Not related to this, I cannot get rid of the border around a OLE object
in the margin section even if I deselected all (TOP/LEFT/RIGHT/BOTTOM)
from Format-> Borders for an bmp. Any idea....


Reply With Quote
  #4  
Old   
DA Morgan
 
Posts: n/a

Default Re: Collapsing a column in layout dynamically in Oracle Reports 6 - 04-27-2005 , 12:41 AM



OraRepDvlpr wrote:
Quote:
Thanx Daniel.
I found an easy way (accidently) of doing it by creating a new layout
(with two columns) and then hiding one layout at a time depending upon
report type. I would like to know about the global temp table that you
suggested. What should be in the global temp table?

Not related to this, I cannot get rid of the border around a OLE object
in the margin section even if I deselected all (TOP/LEFT/RIGHT/BOTTOM)
from Format-> Borders for an bmp. Any idea....
I use global temporary tables, a lot, to stage data for reports.

Since the table is permanent, only the data is temporary, it is
simple to insert it into the table using PL/SQL and then report
on it.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)


Reply With Quote
  #5  
Old   
geturchandu (Offline)
Junior Member
 
Posts: 1
Join Date: May 2006

Default 05-02-2006 , 01:44 PM



I am facing the same problem as described in the posts.I am try to hide some fields depending on the parameters. Can u explain both the ways that can be used to solve this. ie creating a new layout and usage of global temporary tables.
Thanks in advance for any help offered.

sekhar

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.