How to set column heading dynamically?
Hi:
How can I set a column heading dynamically -by PL/SQL code- ?
Regards,
Hi,
Create a formula field, and return desired heading depending on your conditions, and use that field as the column header.
Regards,
Manu.
Similar Messages
-
SSIS : How to create Column Header dynamically using expression in Flat File Source
Hi Team,
I need to keep configured Header Names for columns, Is there is any way to set each column name from expression? or is there is any other way?Nope
But you could add a dummy row to your source to include column headers and then use options column headers in first row in flat file connection manager.
So suppose you've three columns column0,coulmn1,column2 and you want to make it as ID,Name,Datethen make source query as
SELECT 'ID' AS Col1,'Name' AS Col2,'Date' AS Col3, 0 AS ord
UNION ALL
SELECT Column1,Column2,Column3,1
FROM YourTable
ORDER BY Ord
then choose column headers in first row option
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to get column header text in IWDTable
Hi
Just want to know how to get column header name in IWDTable.
I know that you can get it with
IWDAbstractTableColumn[] groupedColumns = table.getGroupedColumns();
for (int i = 0; i < groupedColumns.length; i++) {
IWDAbstractTableColumn column = groupedColumns<i>;
column.getHeader().getText();
But what if text isnt set on header level but its rendered from cellEditor model binding (im not sure if its like that).Finally after your suggestion i did it with this code
String header = column.getHeader().getText();
if ((header == null || header.length() == 0) && column instanceof IWDTableColumn){
IWDTableCellEditor tableCellEditor = ((IWDTableColumn) column).getTableCellEditor();
if (tableCellEditor instanceof IWDTextView){
String bindingPath = ((IWDTextView)tableCellEditor).bindingOfText();
StringTokenizer tokenizer = new StringTokenizer(bindingPath,".");
String token = "";
IWDNodeInfo nodeInfo = context.getNodeInfo();
while (tokenizer.hasMoreTokens()){
token = tokenizer.nextToken();
if (tokenizer.hasMoreTokens()){
nodeInfo = nodeInfo.getChild(token);
IWDAttributeInfo attribute = nodeInfo.getAttribute(token);
ISimpleType simpleType = attribute.getSimpleType();
simpleType.getDescription();
header = simpleType.getDescription(); -
How to set column width in alvgrid
hi
how to set column width in alvgrid.
thanks.Hi,
Check this,
REPORT ztest.
DATA: BEGIN OF i_scarr_tab OCCURS 0.
INCLUDE STRUCTURE scarr.
DATA: END OF i_scarr_tab.
DATA: i_scarr LIKE TABLE OF i_scarr_tab WITH HEADER LINE,
w_scarr LIKE LINE OF i_scarr_tab.
DATA: o_grid TYPE REF TO cl_gui_alv_grid,
o_container TYPE REF TO cl_gui_custom_container.
DATA: lt_fcat TYPE lvc_t_fcat,
ls_layo TYPE lvc_s_layo,
ls_sort TYPE lvc_s_sort,
lt_sort TYPE lvc_t_sort,
ls_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
START-OF-SELECTION.
CALL SCREEN 9000.
*& Module status_9000 OUTPUT
text
MODULE status_9000 OUTPUT.
SET PF-STATUS '9000'.
SET TITLEBAR '9000'.
ENDMODULE. " status_9000 OUTPUT
*& Module user_command_9000 INPUT
text
MODULE user_command_9000 INPUT.
CASE sy-ucomm .
WHEN 'BACK' OR 'EXIT'.
SET SCREEN 0.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " user_command_9000 INPUT
*& Module init_9000 OUTPUT
text
MODULE init_9000 OUTPUT.
IF o_container IS INITIAL.
SELECT * FROM scarr INTO CORRESPONDING FIELDS OF TABLE
i_scarr UP TO 100 ROWS.
IF cl_gui_alv_grid=>offline( ) IS INITIAL.
Create a custom container control for ALV Control
CREATE OBJECT o_container
EXPORTING
container_name = 'CONTROL'.
Create a ALV Control
CREATE OBJECT o_grid
EXPORTING i_parent = o_container.
PERFORM build_field_catalgue.
ls_layo-sel_mode = 'A'.
CALL METHOD o_grid->set_table_for_first_display
EXPORTING
i_save = 'A'
i_default = 'X'
is_layout = ls_layo
CHANGING
it_outtab = i_scarr[]
it_fieldcatalog = lt_fcat
it_sort = lt_sort[].
ENDIF.
ENDIF.
ENDMODULE. " init_9000 OUTPUT
*& Form build_field_catalgue
text
--> p1 text
<-- p2 text
FORM build_field_catalgue .
DATA: ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-cprog
i_internal_tabname = 'I_SCARR_TAB'
i_structure_name = 'SCARR'
i_client_never_display = 'X'
CHANGING
ct_fieldcat = ls_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE 'FCAT Error' TYPE 'I'.
EXIT.
ENDIF.
LOOP AT ls_fieldcat.
CLEAR ls_fcat.
ls_fcat-fieldname = ls_fieldcat-fieldname. "Fieldname
ls_fcat-ref_table = ls_fieldcat-tabname. "DDIC ref struct
ls_fcat-inttype = ls_fieldcat-inttype. "Data type
ls_fcat-outputlen = ls_fieldcat-outputlen. "Column width
ls_fcat-coltext = ls_fieldcat-seltext_m. "Column Header
ls_fcat-seltext = ls_fieldcat-seltext_m. "Column Desc
ls_fcat-ref_field = ls_fieldcat-ref_fieldname. "Reference field
ls_fcat-ref_table = ls_fieldcat-ref_tabname. "Reference table
CASE ls_fieldcat-fieldname.
WHEN 'LUGGWEIGHT' OR 'FORCURAM'.
ls_fcat-edit = 'X'.
ls_fcat-do_sum = 'X'.
WHEN 'URL'.
ls_fcat-no_out = 'X'.
WHEN OTHERS.
ls_fcat-edit = ' '.
ls_fcat-do_sum = ' '.
ENDCASE.
APPEND ls_fcat TO lt_fcat.
ENDLOOP.
ENDFORM. " build_field_catalgue
check the programs bcalv_grid*.
check this link for more detailed example.
http://www.supinfo-projects.com/fr/2005/alv_display_fr/2/
Regards
Sruthi -
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 -
How to set the header variables in weblogic
Hi,
We have a following set up in our environment.
We have weblogic and on the top of it we have apex listener deployed which redirects Oracle Apex.
My Issue:
How can we set up the header variables in weblogic once the user is authenticated against weblogic server.
We are struck here, not knowing how to set the header variables in weblogic server. Its fairly straight forward for Oracle Access Manager or others..
Thanks
Ramesh P.maybe you are looking for the routing options
http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/userguide/modelingmessageflow.html#wp1125348 -
How to set different header for different Standard report page
How to set different header for different Standard report page
Hi,
A easy answer would be use the 'set report header text.vi' but maybe you are talking about something else ? -
How To avoid column heading for only total line in ALV list Display
Hi,
How To avoid column heading for only total line in ALV list Display.Hi,
to change colunm header field catlog is built
look at the example below
Changing column text headers
use this to change, hide, or alter the ALV columns
CLEAR: gt_fcat.
READ TABLE gt_fcat WITH KEY fieldname = 'TEXT1' " ***
*TEXT1 is your field name
ASSIGNING <gtfcat>.
IF sy-subrc = 0.
<gtfcat>-coltext = 'Date Type'.
<gtfcat>-no_out = ' '.
<gtfcat>-tooltip = 'Date Type Text from IT0019'.
<gtfcat>-seltext = 'IT0019'.
keep seltext to '' if u want to hide
ENDIF.
regards
austin -
Vc++ how to read column header of cursor
How to fetch the Column name or header of the stored procedure which is using a cursor as the output.
P_out out sys_refcursor
need to read the column name of this output.
I am using Vc++ code to reterive the data, in Vc++ how to read column header of cursorYou haven't provided much detail to go on. How are you reading data from the ref cursor? Do you already have a reader from it?
Maybe this helps.
Greg
create or replace procedure proc1 (v1 out sys_refcursor) as
begin
open v1 for select * from emp;
end;
using System;
using System.Data;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
public class RefCur
public static void Main()
using (OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl"))
con.Open();
using (OracleCommand cmd = new OracleCommand("proc1", con))
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new OracleParameter("v1", OracleDbType.RefCursor, ParameterDirection.Output));
cmd.ExecuteNonQuery();
using (OracleDataReader reader = ((OracleRefCursor)cmd.Parameters[0].Value).GetDataReader())
for (int i=0;i<reader.FieldCount;i++)
Console.WriteLine(reader.GetName(i)); -
How to set TabbedPane header height?
How to set TabbedPane header height?
So you got help in this posting that shows one way to add a component to the tabbed pane.
[http://forums.sun.com/thread.jspa?threadID=5337065]
But you didn't acknowledge the help you received.
So now you want more help? Well since you didn't reply to that posting I won't reply to this posting. -
How to set columns for Zip Codes?
I am new to iMac and in my first week using trial version of Numbers. I work in sales and we do lots of mailings using merging of data and addresses for post cards, labels, etc.
I cannot see how to set columns to a zip code setting. All zips entered beginning with a 0 drop the front 0. I tried calling the column as Text, but it did not help. I can type a ' in from of the 0 and it works, but this takes an insane amount of time and will not work for us.
How do you deal with Zip Codes? Are there labeling options for mailing built into Numbers? I really want to dump all MS products but will have to drop mac and return buy Office if this is not correctable.
Thank you,
BrownieHello
Setting the column format to text do the trick on my french version too.
With AppleWorks, I was accustomed to use a zeroSlashed so it remained in my zip codes when I moved codes here and there.
Yvan KOENIG (from FRANCE jeudi 13 septembre 2007 17:44:38) -
How to set column width based on header width?
I have a column that will only hold 1 character. This is good, but I want the Column width to match the column header.
For example,
Currently I get:
select * from table;
I NAME
1 ROBERT
The problem is, I want the Column header spelled out (in this case it's just ID)
ID NAME
1 ROBERT
Better Yet,
if i did:
select ID "ID NUMBER", NAME "FIRST NAME" from table;
I'd like to see:
ID NUMBER FIRST NAME
1 ROBERT
(Centering the ID within the Column width would be good too, but that is "gravy")
Any thoughts? I've been trying:
COLUMN ID FORMAT A10 (which obviously didn't work!)
Thanks,
KSL.
Edited by: leonhardtk on Aug 23, 2010 11:55 AMIf you use tags it'll be easier to see what formatting effects you're talking about.
Does <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/ch_six.htm"><tt>col id head "ID Number" format a9</tt></a> do what you want?
Edited by: William Robertson on Aug 23, 2010 6:50 PM -
How to Link column header only in classic Report in APEX 4.1
Hello Everybody,
Probably there is a simpler way to do this, but I am not sure. I want a link on column header in Report on a specific column. The link will take me to new region or a page.
How to achieve this in APEX 4.1
Theme : Blue 2
Database 11g
I see there is a column link opiton, but that creates link for every row in that column on a specific icon, I just want link on a title of the column in Classic Report.
For Example,
if there are two columns Name and Client ID, which has 10 records to display on a classic report. I wan the link on Client ID on header only not on the records.
Can anybody provide some simple solution for this.
Thanks,
--CP
Edited by: cpora007 on Jun 22, 2012 10:38 AMHello,
I didn't understand, what do you mean by default it is going to sort popup. I have a classic report based on SQL, which generates a report with static header, there is no sort or any other link on that.
I added a link in column header name with an anchor. It works and takes to the new page.
But it is not a proper solution. A solution based on Jquery dynamic action is preferable. Also the preferred option is that the link opens a hidden region of the same page at the same location of the report and the report gets hidden. after the procession on the form region and submitting the update/ insert process. the report region shows up with the change data.
Moving on to new page is 2nd option, if the first do not work.
In the JavaScript, put: apex.submit("GO_TO_MY_OTHER_PAGE");
On the page, create a Branch to the Second page. Set the condition to Request=Expression 1. Set the request to "GO_TO_MY_OTHER_PAGE"
On which page I need to create a branch?, Is it on the report page or the form page.
Thanks a lot for the response. I appreciate your kind efforts in this regard.
--CP -
How to set column size in sqlplus.exe ?
SQL> select * from dba_cons_columns where user='USER1' and table_name='PARENT1';
OWNER CONSTRAINT_NAME
TABLE_NAME
COLUMN_NAME
POSITION
USER1 PARENT1_PK
PARENT1
COL2
2
OWNER CONSTRAINT_NAME
TABLE_NAME
COLUMN_NAME
POSITION
USER1 PARENT1_PK
PARENT1
COL1
1doesn't it seems bit ugly to see these data.Why length of columns is so long ?please tell how to set the length of columns and other parameters so that data that is displayed should come out in screen in a well managed and beautiful way.
Like this:
OWNER CONSTRAINT_NAME TABLE_NAME COLUMN_NAME POSITION
USER1 PARENT1_PK PARENT1 COL2 2
USER1 PARENT1_PK PARENT1 COL1 1I have written this by hand. How to get display in sqlplus.exe ?This command sets column size for all forthcoming commands. Suppose there is select command for different columns, and i want to set different size for different columns. e.g.,select name,address,zone from table1;
How can i set column size for name to (say) 20 char, address to 30 char and zone to 3 char ?
You need to do it in some sort of sql script which would set the column formatting before the query would start and then would clear the formatting after the query gets finished. See an example below,
SQL> column ename format a20 heading emp_name
SQL> select ename from emp
2 ;
emp_name
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
emp_name
JAMES
FORD
MILLER
14 rows selected.
SQL> column ename clear
SQL> select ename from emp;
ENAME
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
ENAME
JAMES
FORD
MILLER
14 rows selected.
SQL>So likehtis you have to format all the columns on individual lines and then clear the fomattings of each once th query isdone.
HTH
Aman.... -
Resize Column Heading Dynamically
I have an AdvancedDataGrid for which the user can separately
and independently set the font size used in the column headings and
the rows. Upon saving the form, if the font size used in the rows
changes, I call the function setRowFont() (shown below).
The regenerateStyleCache(true) causes the rows to dynamically
adjust their height to accommodate the text. (The groupRowHeight is
there to adjust the size of the data groupings.) This works just
fine.
I use a similar function for the headings,
setColumnHeadingFont(). When this is run, there is no change. If
you close the app and restart it, the changes are reflected. Is
there some way to change this height dynamically without
restarting? Or is there a reason why this cannot be done?You can do this by placing the name of your hidden item in the heading column on the 'report attribute' tab of your report region.
For example if you have an item called P1_GRP_BY that you want to display as a column header, type &P1_GRP_BY. in the header column.
David
Maybe you are looking for
-
2 ISP link failover in ASA 5505
Hi, I have ASA 5505, want to configure the 2 ISP link Tata and Airtel with failover. I want to configure the WebVPN with failover, so that user don't need to change the public address when one link goes down. thanks with regards Ashish Kumar
-
How to create one more server node for SAP J2EE server?
Hi, Can any one please suggest how to create one more server node for SAP J2EE server? I am using WAS700. Thanks and Regards, Smriti.
-
Can I use my airport express to extend a wireless network with a non-apple router?
I have been trying to extend my wireless network in my house. Right now I have a dsl modem/router provided by Century Link and an older AirPort express (not sure how old but it uses AirPort utility v5.6). I want to be able to share my printer and u
-
Printing problem from my Dell Laptop to my printer
Hi everyone. I'm new at this, but really need some help. I have a Wireless Dell Laptop, and it uses Vista. When I was with Comcast, I was able to print to the Wireless HP Officejet J6480 All in One printer. However, we changed to Qwest recently,
-
How do i find my external hard drive through my airport extreme?
I have just installed my airport extreme. and also connected my external harddrive on it. but i do not see it appearing anywhere? what did i do wrong?