Only one column header in delimited report ?
Hi!
Is there a way to put only one line of column header on delimited report?
(By default the Report builder puts the header in every record line...
as well the delimited_hdr = no command prompt property is not good, because puts out no header)
Thanks!
(I use RB 6i)
Hello,
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/bld_delim_hdr.htm
DELIMITED_HDR command line keyword
DELIMITED_HDR is used to remove boilerplate text (such as the report header) when running a report with DESFORMAT=DELIMITED or DESFORMAT=DELIMITEDDATA.
This parameter exists in Reports 6i too .
Regards
Similar Messages
-
Change Column Heading in ALV Report
Hi,
I have developed a ALV Report, showing correct output.
Problem is that Column Heading is not showing correct...means it is showing as per field name. But We want to change as per our understand. i.e. One column heading is like Unrestricted Stock but we want Unrestricted Stock...(BILF is an indicator)..
We have write in the code..
FORM build_fieldcat10.
CLEAR fieldcat_ln.
ADD 1 TO col_pos.
fieldcat_ln-ref_tabname = 'MARD'.
fieldcat_ln-fieldname = 'LABST'.
fieldcat_ln-seltext_m = 'BILF Unrest.Stock'.
fieldcat_ln-key = space.
fieldcat_ln-do_sum = space.
fieldcat_ln-col_pos = col_pos.
fieldcat_ln-no_out = space.
fieldcat_ln-qfieldname = space.
fieldcat_ln-hotspot = space.
APPEND fieldcat_ln TO fieldcat.
ENDFORM. " BUILD_FIELDCAT1
But after change the selection text...not showing correct text..How can i change Column heading???
Please help me..Thanks a lot dear..
My problem resolved by using SCRTEXT_L. -
How to make only one column non reorderble
I want to make only one column (Column 0) of my JTable non reorderble.
I also want to make the same column non resizable and I want to give it a specific size.
Please help me on this?I have implemented a RowHeaderTable class which displays 1, 2, 3, ... in the first column. The column is in the scrollpane's RowHeaderView, so it is not resizable nor reorderable. But its width can be set in your code. Maybe this is what you need.
Use the class the same way you use a JTable, except 3 added methods:
getScrollPane();
setMinRows(int r);
setRowHeaderWidth(int w);
Note: The table works perfectly in skinless L&F, such as the default java L&F. It looks ugly in Liquid L&F because I don't know how to steal column header's UI to use on a JList. If someone can help me on this one, I thank you in advance.
* RowHeaderTable.java
* Created on 2005-3-21
* Copyright (c) 2005 Jing Ding, All Rights Reserved.
* Permission to use, copy, modify, and distribute this software
* and its documentation for NON-COMMERCIAL purposes and without
* fee is hereby granted provided that this copyright notice
* appears in all copies.
* JING DING MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
* SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING
* BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. JING DING
* SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT
* OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
import java.awt.BorderLayout;
import java.awt.Component;
import javax.swing.AbstractListModel;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListCellRenderer;
import javax.swing.UIManager;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumn;
import javax.swing.table.TableModel;
* @author Jing Ding
public class RowHeaderTable extends JTable {
private int minRows = 10; // Minimum size of the row header.
private static final int DEFAULT_WIDTH = 30;
private JScrollPane jsp;
// The row header is a JList with the same appearance as the column header.
private JList rowHeader;
// Repaint row header whenever the table inserts or deletes rows.
private TableModelListener tmListener = new TableModelListener(){
public void tableChanged(TableModelEvent e){
if(e.getType() != TableModelEvent.UPDATE)
rowHeader.repaint();
/** Create a new instance of RowHeaderTable.
* @param model
public RowHeaderTable(TableModel model){
setModel(model);
initializeHeader();
jsp = new JScrollPane(this);
jsp.setRowHeaderView(rowHeader);
private void initializeHeader(){
rowHeader = new JList(new AbstractListModel(){
public int getSize(){ return Math.max(getModel().getRowCount(), minRows); }
public Object getElementAt(int index){ return "" + ++index; }
setRowHeaderWidth(DEFAULT_WIDTH);
rowHeader.setFixedCellHeight(getRowHeight());
rowHeader.setCellRenderer(new TableRowHeaderRenderer());
public void setRowHeaderWidth(int w){
rowHeader.setFixedCellWidth(w);
public void setMinRows(int m){ minRows = m; }
public void setModel(TableModel model){
super.setModel(model);
model.addTableModelListener(tmListener);
/**Use this method to get the scrollPane, instead of new JScrollPane(table).
* @return
public JScrollPane getScrollPane(){ return jsp; }
protected class TableRowHeaderRenderer implements ListCellRenderer{
TableCellRenderer colHeaderRenderer;
public TableRowHeaderRenderer(){
JTableHeader header = getTableHeader();
TableColumn aColumn = header.getColumnModel().getColumn(0);
colHeaderRenderer = aColumn.getHeaderRenderer();
if(colHeaderRenderer == null)
colHeaderRenderer = header.getDefaultRenderer();
public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean hasFocus){
return colHeaderRenderer.getTableCellRendererComponent(
RowHeaderTable.this, value, isSelected, hasFocus, -1, -1);
public static void main(String[] args){
try {
UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
}catch (Exception e){ e.printStackTrace(); }
String[] columnNames = {"First Name",
"Last Name",
"Sport",
"# of Years",
"Vegetarian"};
Object[][] data = {
{"Mary", "Campione", "Snowboarding", new Integer(5), new Boolean(false)},
{"Alison", "Huml", "Rowing", new Integer(3), new Boolean(true)},
{"Kathy", "Walrath", "Knitting", new Integer(2), new Boolean(false)},
{"Sharon", "Zakhour", "Speed reading", new Integer(20), new Boolean(true)},
{"Philip", "Milne", "Pool", new Integer(10), new Boolean(false)}
DefaultTableModel dtm = new DefaultTableModel(data, columnNames);
RowHeaderTable rht = new RowHeaderTable(dtm);
rht.setMinRows(0);
JFrame frame = new JFrame("RowHeaderTable Demo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(rht.getScrollPane(), BorderLayout.CENTER);
frame.pack();
frame.setVisible(true);
dtm.addRow(new Object[]{"Mary", "Campione", "Snowboarding", new Integer(5), new Boolean(false)});
dtm.addRow(new Object[]{"Mary", "Campione", "Snowboarding", new Integer(5), new Boolean(false)});
dtm.addRow(new Object[]{"Mary", "Campione", "Snowboarding", new Integer(5), new Boolean(false)});
} -
Set filter for only one column in tableview
Hi
i am using in MVC a htmlb:tableview with filter in only one column of 8.
This is all working fine, except that the user can enter a searchsting in the filterfield for all columns, but in handle_event (of the controller) ; i only react to a text in the filterfield of column 4 and ignore all other filtertext , which were maybe entered in the other columns.
My question:
how can i enter the filter only for one column, in a way that the user cannot enter any text in the filterfield of the other columns, only in column 4 ?
my view:
<htmlb:tableView id = "requirements"
table = "//model/pdst_reqs"
filter = "APPLICATION"
keyColumn = "EXTID"
iterator = "<%=model%>"
footerVisible = "FALSE"
encode = "TRUE"
visibleRowCount = "<%=model->rowcount%>"
width = "100%"/>
Best Regards
BrittaYou can disbale the Filter for the particular column by setting the DISABLE_FILTER in the Iterator method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS. Here is the sample code
method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS .
CLEAR p_column_definitions.
CLEAR p_overwrites.
data tv_column TYPE TABLEVIEWCONTROL.
tv_column-COLUMNNAME = 'FLDATE'.
tv_column-SORT = 'X'.
tv_column-EDIT = 'X'.
tv_column-ONCELLCLICK = 'MyCellClick1'.
tv_column-title = 'Date '.
APPEND tv_column TO p_column_definitions.
CLEAR tv_column.
tv_column-COLUMNNAME = 'PRICE'.
tv_column-horizontalAlignment = 'right'.
tv_column-verticalAlignment = 'middle'.
tv_column-ONCELLCLICK = 'MyCellClick2'.
tv_column-title = 'Currency'.
tv_column-EDIT = 'X'.
tv_column-DISABLE_FILTER = 'X'. " <-------Like this
APPEND tv_column TO p_column_definitions.
endmethod.
Hope this will solve your problem.
Raja -
Access for update only one column in table?
Hi all,
My need is to grant access for update only one column c1 in table t1.
I guess I should use view, could you please give me some example? Maybe other ideas?Hi,
You can grant privileges on individual columns.
GRANT UPDATE (c1)
ON t1
TO grantee_name;Look up GRANT in the SQL language manual. Annoyingly, in recent editions of the manual, GRANT is not indexed, but it's in alphabetic order with all the other statements:
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_9013.htm#i2155015 -
EA2: Code is generated for only one column with Domain check constraint.
I created a Domain with a Value List (Y or N - Yes or No) and used that domain for two columns in the same table. But for only one column (the last one) the check appears in the generated DDL.
After I enabled the "Use Domain Constraints" both checks appear in the DDL, but one as an inline check constraint and one as an "Alter table add contraint.."
Once I changed the naming Template for the check constraint, both constraints are generated as an Alter table clause. The inline check constraint is only generated when the name of the constraint (according to the template) is too long. It would be nice if I could choose if I want an inline or a separate check constraint definition.
Edited by: Roel on Nov 23, 2010 11:55 AM
Edited by: Roel on Nov 23, 2010 12:02 PMI logged ER for that
Philip -
JTable - One Column Heading for Two Columns
Can you adjust the default JTable to have one column heading for two columns of data? Is there a simple span command? I've looked at the api for JTable and JTableHeader and didn't see anything, is there something I'm missing? Any help would be appreciated.
What i am trying to accomplish is have column 'E' span 2 columns.
This is my code thus far, however it give the error from my pryor message. I am pretty sure it is because I'm using and Object[][] and a String[] instead of Vectors. What corrections do I need to make in order for my goal of:
[ A ][ B ][ C ][ D ][ E ][ F ][ G ]
[ 1 ][ 2 ][ 3 ][ 4 ][5][6][ 7 ][ 8 ]
Object[][] data = new Object[ROWS][COLUMNS];
String[] columnNames = {"A","B","C","D","E","E","F","G"};
table = new JTable(data, columnNames);
table.setBackground(Color.white);
table.addKeyListener(this);
DefaultTableCellRenderer d = new DefaultTableCellRenderer();
d.setHorizontalAlignment(JLabel.CENTER);
table.setDefaultRenderer(table.getColumnClass(0),d);
for (int i = 0; i < table.getColumnCount(); i++){
TableColumn aColumn = header.getColumnModel().getColumn(i);
TableCellRenderer renderer = aColumn.getHeaderRenderer();
if (renderer == null) {
renderer = new DefaultTableCellRenderer(){
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column){
JTableHeader header = table.getTableHeader();
if (header != null) {
setForeground(header.getForeground());
setBackground(header.getBackground());
setFont(header.getFont());
setHorizontalAlignment(JLabel.CENTER);
setText((value == null) ? "" : value.toString());
setBorder(UIManager.getBorder("TableHeader.cellBorder"));
return this;
aColumn.setHeaderRenderer(renderer); -
Copy only one column of the workbook1 and paste it in another workbook 2
Hello Rishi. Please help me with this how to copy only one column C of the workbook1 and paste it in another workbook 2 in Column D so that When user execute workbook1 . and then execute workbook2 . Column D is automatically populated in Workbook2 based on the data in Column C in workbook 1
Please help
Thanks
SoniyaHi Soniya
As I mentioned earlier, I haven't come across a situation of copying data from one workbook to another. However, for doing some dynamic modifications within the different sheets of the same workbook, you can refer to the following thread:
Comparing two queries with VBA macro
Thanks,
Rishi -
Only one column was record on Trigger
Dear Experts,
I've created SQL Trigger, it has five column, but only one column was recorded when Trigger's fired, another filled by NULL value
please your valuable suggestion & helps
thank you
warmest regardsTriggers are fired by INSERT not matter how many rows it will generate and it is perfectly possible to have NULLs if columns allow it..
If you want to prevent from entering NULLs, please examine inserted virtual table to filter out the data which contains NULLs.
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Dynamic Column Heading on Interactive Report
I have my column headings for my table columns stored in the database. I want the Interactive Report to use these heading (instead of static headings). Is there a way to have the columns set from the database(with a function/procedure)?
you can replace the column headings with &PAGE_ITEM.
obviously one page item per column header
then use the database to populate the items with your column headings.
craig
[http://www.oracleapplicationexpress.com] -
Can I "catch" a click on a sortable column header of a report?
Hi,
I have a report.
Most columns are made sortable: users can click on them to sort.
I notice that when clicked only page-rendering executes (i.e. not page processing).
Here is the question.
I need to call some custom PL/SQL when the user clicks on a sortable column header. This PL/SQL could executes in the before header (it needs to fire before the page re-executes the query).
The PL/SQL needs to know which column was clicked on: how can I determine this?
Can I access the url (example below)? I see that it shows which column was clicked.
https://dev.centraal.boekhuis.nl:4443/pls/apex/f?p=100:3:145900176972409:fsp_sort_4::RP&fsp_region_id=1562722058676533
Thanks,
ToonThat would order the report by C1 when I click C2, which isn't what I want. I want to preserve the order of C1 (whether that's ascending or descending) and then have C2 ascend or descend for each set of values in C1.
If I can't set the Order By then I'll need something like this as my query. The "last_col1_order" and "this_col2_order" would be items, set according to the last few values of Request. It's horrible, but it gets the job done. This would be so easy in forms!
WITH data AS (
select level col from dual connect by level < 6)
SELECT
col1,
col2,
lpad(case last_col1_order
when decode(this_col2_order,'asc','asc','desc') then col1
else col1_desc end,20,'#') ||
lpad(col2,20,'#') col2_sort
FROM (
SELECT
col1,
col2,
(max(col1) over(partition by 1))-(dense_rank() over(order by col1)) col1_desc,
'asc' last_col1_order,
'desc' this_col2_order
FROM (
SELECT a.col col1, b.col col2
FROM data a, data b
order by col2_sort desc -
Hi ,
I have report and i want to display the column heading for both the key and text column in the report.At present i could see column Heading only for the key column.Kindly advice
thanx
SriramHI Sriram
Why you want to display the heading? Do You mean, two different headings? -
Two column header in ALV Report
Hi Experts,
Can I have 2 headers in ALV report kind of one header and one sub header below that.
like i have to display a report having the same information for 3 systems so in header I can have the system name and below that
usual headers.
Thanks
Yogesh Guptait is is not possible using the ALV GRID function, ALV OO.
it is possible with ALV List function. you might loose some functionalities layout etc.
check this sample..
cehck this image..
http://img100.imageshack.us/img100/3846/output6ef.th.gif
REPORT ZTEST_ALV message-id zz .
TYPE-POOLS: SLIS.
DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
L_LAYOUT type slis_layout_alv,
x_events type slis_alv_event,
it_events type SLIS_T_EVENT.
DATA: BEGIN OF ITAB OCCURS 0,
VBELN LIKE VBAK-VBELN,
POSNR LIKE VBAP-POSNR,
MALE type i,
female type i,
END OF ITAB.
SELECT VBELN
POSNR
FROM VBAP
UP TO 20 ROWS
INTO TABLE ITAB.
X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-SELTEXT_L = 'VBELN'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 1.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-SELTEXT_L = 'POSNR'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 2.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'MALE'.
X_FIELDCAT-SELTEXT_L = 'MALE'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 3.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'FEMALE'.
X_FIELDCAT-SELTEXT_L = 'FEMALE'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 3.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
x_events-NAME = SLIS_EV_TOP_OF_PAGE.
x_events-FORM = 'TOP_OF_PAGE'.
APPEND x_events TO iT_EVENTS.
CLEAR x_events .
L_LAYOUT-NO_COLHEAD = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = L_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
it_events = it_events
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC ne 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM TOP_OF_PAGE.
*-To display the headers for main list
FORMAT COLOR COL_HEADING.
WRITE: / SY-ULINE(103).
WRITE: / SY-VLINE,
(8) ' ' ,
SY-VLINE,
(8) ' ' ,
SY-VLINE,
(19) '***'(015) centered,
sy-vline.
WRITE: / SY-VLINE,
(8) 'VBELN'(013) ,
SY-VLINE,
(8) 'POSNR'(014) ,
SY-VLINE,
(8) 'MALE'(016) ,
sy-vline,
(8) 'FMALE'(017) ,
sy-vline.
FORMAT COLOR OFF.
ENDFORM. -
How do I group by only one column in a SELECT statement?
Hi everyone,
Here is my novice question:
I would like to run a query where I select (display) several columns from my table, yet group (categorize) by one of these columns.
For example:
SELECT A, B, COUNT(A)
FROM TableX
GROUP BY A
I realize now that this is not valid. My first question is why? Doesn't it make sense that you would want to group by only one of the columns? To me, it seems natural that you would most often want to categorize by one attribute, which is why it seems odd that this is not valid. I realize that I can remove column B, but I do want to display that info. I could also change the last statement to GROUP BY A, B to avoid errors, but this will also not display what I am looking for.
In addition to understanding why Oracle is set up this way, I guess I also need to know how I can legally accomplish this query, grouping by A but also displaying the values of B.
Thank you very much for your help!
HollyHi everyone,
Thank you for your responses... very interesting and useful. Since I came across inline views in my reading, I tried the approach recommended by g feng, although I am eager to try the other approaches too.
I ended up using an inner join simply to get more descriptive info. on the column that was being counted. With Y representing this second table, Y.B being the column containing the descriptive info., and A being the common key between X and Y, here is the simple code I came up with.
SELECT Y.B, V.*
FROM Y,
SELECT A AV, COUNT (*)
FROM X
GROUP BY A
) V
WHERE V.AV = Y.A
Does this seem correct... anything I need to watch out for?
Thanks again to everyone for your help!!
Holly -
Change column header dynamically at report run time
how to use LOV In report column definition under column attributes for display..
If it suceeded will it dynamicaly change header name at time of running report
my requirement is actually to change column header dynamically at time of run report
is it possible with above mentioned way?
Apex 4.1, Oracle 11g, PL/SQL Gateway configuration
Please help me on this
ThanksHi,
by making use of specific report column templates and column template conditions you can change the headers dynamically.
See this http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ui_templt.htm#HTMDB25708 for more info.
regards,
Erik-jan
Maybe you are looking for
-
I am an iphone 4s user. My phone worked fine until last week, then suddenly it stopped receiving push notifications from facebook and my gmail. I have to manually log into facebook and email to see notifications and new emails. Can you help me solve
-
Lightroom 5 download issue!
I Have a mac computer and im trying to download the free trial but when i click on the file in the downloads i keep getting this: "Couldn't open "Adobe Photoshop Lightroom 5.pkg". and it stating it can not be completed. Is it not compatable with my m
-
Connecting an Iphone to an Imac
I download ICreate mag to my Iphone. How can I connect my Iphone to my Imac so I can read it on my Imac. There is a mini DVI port on my Imac is it possible? What would I need to connect the Iphone to my television? I would prefer to use my Imac. Than
-
Every time I go to the App Store since the update yesterday, it crashes after a few moments and drops me back at the home screen. Any advice?
-
How connect one client from another client in SAP.
hi In my company,HR module is in independent client. So other Module FI want to get HR information.i want to write a function in HR system. in FI module to call it and return data. (RFC). how set it ? the two R/3 System can access one another. how