How to access AdvancedDatagrid column Header information?
I have an AdvancedDatagrid with custom Column header
renderers.
column = new AdvancedDataGridColumn("Header Text");
column.headerRenderer = new
ClassFactory(PE_FilterHeaderRenderer);
MyAdvancedDataGrid.columns = [column];
Within my header renderer class I have some code to implement
the children the way that I want. Now.. does anyone know how to
access those headers from the outside without storing off an
intance of the header itself within the class. Basically, I need to
get the right header and access an accessor within that header to
set something to change the header text and such if the user does
something to the datagrid. Any ideas would be helpfull..
Thanks!
Hi Michael,
If you just want to retrieve the data, you could use the following code.
//Get the node which the table is bound to
IWDNode node = wdContext.nodeTable();
//iterate thru the elements
for(int i = 0 ; i<node.size();i++)
IWDNodeElement ne = node.getElementAt(i);
Object value = ne.getAttributeValue("<column name>");
//Here you have the data in the value variable
//and you can manipulate this now
Regards,
Sudeep
Similar Messages
-
How to I hide column heading completely ?
There is a similar post on 10g - How to I hide column heading completely ?
The solution is - To achieve this, go to Edit Table View, open Table View Properties. Here you should see an option called 'Display table and column Headings'. Here set its value to 'No column or table headings'.
I'm on 11.1.1.5 and when I go to Edit Table view -> Table View properties -> Display Folder & Column Headings , I see four values as below but there is no value 'No column or table headings'. The values are -
-Only column headings
-As separate rows
-As Folder.column
-As Folder.column (where needed)
Is this 'No column or table headings' value no more available in 11.1.1.5 ? Is there any alternative method to achieve this?
I'm able to hide the column header using various ways e.g. setting Display Heading option, but when I download the results it has either the header present or an empty row. In 10g the option 'No column or table headings' removed the header completely from the download file.
Any suggestions please?Anybody has any thoughts on why 'No column or table headings' option is removed from 11g or is it just 11.1.1.5?
Is this a bug or any other feature has been provided to achieve the same? -
How to fix the column header width in BEx or WAD
hi there!
how to fix the column header width in BEx or WAD. because, depends on the column data, the column size varies. i want to fix the size so that i can maintain the consistency through out the report.
thanks!
Vam.Dear Vam,
you can easily do that with css, search the source code of the executed web template for the td tag which is around your coloumn header, remember the style sheet class name it is ´displayed as class= in the td tag.
Now you can add this code the beginning of your web template:
</style>
This will only work in Web.
Regards
Marcus -
How to ignore the column header in GUI_UPLOAD
Hi,
I am trying to use GUI_UPLOAD to upload data from text file into a table. However there is no parameter to ignore the column headers in this function. how can i set to ignore the column headers in this function?Check the function module documentation and also refer to the parameter: HEADER_LENGTH
Length of Header for Binary Data
Description
Specifies the length of the header information. You must only set this parameter if the file type is 'BIN'. The default value '00' means that there is no header in the file.
Default
'00' -
How to change JTable column header text
How do you set the text in the JTable column headers? I know you can create a JTable specifying the text in an array:
<li>JTable(Object[][] rowData, Object[] columnNames)
But if you create the JTable specifying a TableModel,
<li>JTable(TableModel dm)
the header text defaults to "A", "B", "C", etc. I cannot figure out how to access the text in the header names so it can be changed to something useful. I know how to get the JTableHeader for the table, but it does not seem to have methods for actually setting header values.I'm sure that model allows you to specify header values so you don't have to do so manually. I would be very surprised if it didn't override the default getColumnName() method to provide a reasonable names.She wasn't writing the class, but [url http://forums.oracle.com/forums/thread.jspa?messageID=9200751#9200751]outlining a design for me to implement. And, based on a previous comment I had made, I think she assumed I wanted the new design to look as much like the old as possible. There were no headers in the original design, which wasn't even a table.
Anyway, this works:
final static String statisticsColumnNames[] = {
"Type", "Count",
"Red QE", "Green QE", "Blue QE", "Average QE",
"Distance"
qErrors = new QEBeanTableModel();
JTable errorTable = new JTable(qErrors);
TableColumnModel tcm = errorTable.getColumnModel();
for (int col = 0; col < statisticsColumnNames.length; col++)
tcm.getColumn(col).setHeaderValue(statisticsColumnNames[col]);
It looks like setHeaderValue() on the TableColumn is what I was looking for.Again, only used if you are dynamically changing the values at run time or you don't like the defaults provided by the Bean-aware model.I coded the above before I read your last post. The QEBeanTableModel is extremely specific to my program. I.e. I cannot imagine it being used anywhere else. Would it still be better to implement a getColumnName() within the table model? Looking at your [url http://www.camick.com/java/source/RowTableModel.java]RowTableModel.java source, I can see that it would not be difficult to do so.
Just decided to add the getColumnName() method. This whole sub-project is based on implementing a clean modern design (and learning about Java Beans). You've clearly stated twice that the method I have implemented is for dynamic header values only, which has already answered what I asked last paragraph. -
How display costom report column heading
Hi,
I am having report region with different columns, in that one column heading needs to be start with lower case like "iST Status" but always it is showing "IST Status".
Can any one help me how can i achieve this.
Thanks and regards,
Ibrahim Sayyed.>
Update your forum profile with a real handle instead of "995226".
I am having report region with different columns, in that one column heading needs to be start with lower case like "iST Status" but always it is showing "IST Status".This has been reported before. See +{thread:id=1022033}+
Add this style sheet to the page HTML Header (or use your preferred CSS override method):
<style>
th.t13ReportHeader {
text-transform: none;
</style>If you're not using theme 13, modify the selector accordingly.
Can any one help me how can i achieve this.Help us to help you. When you have a problem you should provide as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand. -
How can I include the Header Information....for a File to IDOC Scenario
Hi,
I made a File to IDOC Scenario with DEBMDM06 for MDM>XI>SAP R/3. The Header Information in the XML File which is at the XI end is Missing. For that reason In Tcode SXMB_MONI we are getting an Error that <b>"HEADER Information Missing: Message should Start with EDI_DC40"</b> i.e the Header Information.
My Question is that whether we can do some changes in the Message mapping Step in the Integration Repository. I HardCoded the Few mandatory Fields that were there but it Again gave me the Same Error as above.
Can you please Suggest some Solution for this. Since the data is Coming in from MDM part the Header information is not there but It actually Important as it has got all the Port Information.
Kindly Inform me some Solutions.
Thanks & Regards
SomnathHi Suraj,
Thanks for ur Reply, but Since we are Doing a File to IDOC Scenario the IDOC DEBMDM is on the Right Side in Message Mapping and as U know it is Mandatory to Map an IDOC on the Right Part. EDI_DC40 is coming as it is there in the IDOC but our XML File Does not have that. If we Don't Map then it Becomes RED, which is an Error.
Furthermore in the Receiver Agreement we have put the Necessary Details such as Sender Service and Receiver Service along with the IDOC Communication Channels.
Can U give as a Better Insight on this Note how to check the Header Part as it is mandatory to MAP.We also tried to HARDCODE it by putting those Values and Mapping them to a Constant but it is Giving the Same Error.
Thanks and Regards
Somnath -
How to display the column header in two rows?
Hi Experts,
I am using ALV_LIST_DISPLAY i neeed to display the column header in two rows.. How can i do that?
Ex: purchase order i need to display "purchase" in one row and "order" in second row.
Thanks in advance,
Sarath.jREPORT zpwtest .
TYPE-POOLS slis .
DATA : layout TYPE slis_layout_alv .
CONSTANTS : c_len TYPE i VALUE 20 .
TYPES : BEGIN OF ty_t100 ,
sprsl TYPE t100-sprsl ,
arbgb TYPE t100-arbgb ,
msgnr TYPE t100-msgnr ,
text TYPE t100-text ,
fline TYPE t100-text ,
END OF ty_t100 .
TYPES : BEGIN OF ty_wrd ,
text TYPE char20 ,
END OF ty_wrd .
DATA : it_t100 TYPE TABLE OF ty_t100 ,
it_sentence TYPE TABLE OF ty_wrd ,
wa_t100 TYPE ty_t100 ,
wa_word TYPE ty_wrd ,
v_repid TYPE syst-repid ,
v_tabix TYPE syst-tabix .
DATA : it_fld TYPE slis_t_fieldcat_alv ,
it_evt TYPE slis_t_event ,
wa_fld TYPE slis_fieldcat_alv ,
wa_evt TYPE slis_alv_event .
INITIALIZATION .
v_repid = sy-repid .
START-OF-SELECTION .
* Get data
SELECT *
INTO TABLE it_t100
FROM t100
WHERE sprsl = 'EN'
AND arbgb = '00' .
LOOP AT it_t100 INTO wa_t100 .
v_tabix = sy-tabix .
CLEAR : it_sentence .
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = wa_t100-text
outputlen = c_len
TABLES
out_lines = it_sentence.
IF NOT it_sentence IS INITIAL .
READ TABLE it_sentence INTO wa_word INDEX 1 .
wa_t100-fline = wa_word-text .
MODIFY it_t100 FROM wa_t100 INDEX v_tabix .
ENDIF.
ENDLOOP.
* Prepare fieldcatelog
CLEAR wa_fld .
wa_fld-fieldname = 'SPRSL' .
wa_fld-ref_tabname = 'T100' .
wa_fld-ref_fieldname = 'SPRSL' .
APPEND wa_fld TO it_fld .
CLEAR wa_fld .
wa_fld-fieldname = 'ARBGB' .
wa_fld-ref_tabname = 'T100' .
wa_fld-ref_fieldname = 'ARBGB' .
APPEND wa_fld TO it_fld .
CLEAR wa_fld .
wa_fld-fieldname = 'MSGNR' .
wa_fld-ref_tabname = 'T100' .
wa_fld-ref_fieldname = 'MSGNR' .
APPEND wa_fld TO it_fld .
CLEAR wa_fld .
wa_fld-fieldname = 'FLINE' .
wa_fld-inttype = 'CHAR' .
wa_fld-outputlen = 20 .
wa_fld-intlen = 20.
wa_fld-seltext_l = 'Text' .
wa_fld-ddictxt = 'L' .
APPEND wa_fld TO it_fld .
* Get event.. we will handle BOFORE and AFTER line output
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
IMPORTING
et_events = it_evt.
READ TABLE it_evt INTO wa_evt
WITH KEY name = slis_ev_after_line_output .
wa_evt-form = slis_ev_after_line_output .
MODIFY it_evt FROM wa_evt INDEX sy-tabix .
READ TABLE it_evt INTO wa_evt
WITH KEY name = slis_ev_top_of_page .
wa_evt-form = slis_ev_top_of_page .
MODIFY it_evt FROM wa_evt INDEX sy-tabix .
layout-no_colhead = 'X' .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
it_fieldcat = it_fld
is_layout = layout
it_events = it_evt
TABLES
t_outtab = it_t100.
* FORM top_of_page *
FORM top_of_page .
uline .
WRITE: / sy-vline ,
10 sy-vline ,
11 'line1' ,
31 sy-vline ,
37 sy-vline ,
58 sy-vline .
WRITE: / sy-vline ,
10 sy-vline ,
11 'line2' ,
31 sy-vline ,
37 sy-vline ,
58 sy-vline .
WRITE: / sy-vline ,
10 sy-vline ,
11 'line3' ,
31 sy-vline ,
37 sy-vline ,
58 sy-vline .
ENDFORM.
* FORM AFTER_LINE_OUTPUT *
FORM after_line_output USING rs_lineinfo TYPE slis_lineinfo .
CLEAR : it_sentence ,
wa_t100 .
READ TABLE it_t100 INTO wa_t100 INDEX rs_lineinfo-tabindex .
CHECK sy-subrc = 0 .
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = wa_t100-text
outputlen = c_len
TABLES
out_lines = it_sentence.
DESCRIBE TABLE it_sentence LINES v_tabix .
CHECK v_tabix > 1 .
LOOP AT it_sentence INTO wa_word FROM 2 .
WRITE: / sy-vline ,
10 sy-vline ,
31 sy-vline ,
37 sy-vline ,
38 wa_word-text ,
58 sy-vline .
ENDLOOP.
ENDFORM . -
How to change the column header in XsltListView webpart
I have a XsltListView webpart. By default it displays the column name in the header. How do I change the header and give a friendly name? I am able to change the header, if I click on header and position the cursor at the right spot and change. But sometimes
it does not work. Is there any property which I can set in order to change the header? Thanks in advance.
ssHi ss,
Do you use SharePoint 2007 or 2010? And the XsltListView Web part only available in SharePoint 2010.
If you are using SharePoint 2010, to customize the header for each column, please try the following step.
Open list view in advanced mode in SharePoint Designer.
Select a header you need to modify > Click Customize XSLT under Design tab on the ribbon > Click “Customize Item”.
Then we can see <xsl:value-of select="$fieldtitle"/> has selected in Code view > Replace it with the text you want to display on the header.
For example, I want to display the string “customized header” in the header, then replace
<xsl:value-of select="$fieldtitle"/>
With
Customized header
Save the page and test.
Thanks & Regards,
Emir Liu
TechNet Subscriber Support in forum
If you have any feedback on our support, please click here.
Emir Liu
TechNet Community Support -
How to display a Column Header for the characteristic Text column
Hi All
Our users want me to provide for a column header for the characteristic text.
Here is what I mean
I am reporting 0plant in the rows as key and Text. In the column on Plant Key the column header says Plant but there is no column header for the plant text.
Eq:
Plant Amount
IE00 Initiator Plant 244
IE01 Initiator Plant NJ 890
Our users in the plant text column want a dummy column header to be displayed. SInce they download the data from the BW report to Excel and use pivot reporting. How can I introduce a column header for the texts.
Thanks
KarenHi Karen,
I am not sure if this is possible, although Users can ask anything :).
In Planning we used to predefine cell headings via Macros and creating dummy cells in between. I am not sure if a similar scenario can work here.
By default this is not possible in Reports. In BEx workbooks, you could probably try with Macros.
Another easy option is to bring the data in the Cube as another field or create a nav. attribute in the master for text and use it as a nav. attr. in the Cube and put it in your Query row alongside.
-Aby -
ADF -- Accessing table column header in java bean called from jsf
Hi everyone,
I am calling a common bean function for all columns of a table from jsf inlineStyle, for each call i need to access caller column's headerText in bean.
How can i access the same in that common function, i.e. for each column's call to the bean, i need the respective headerText accessible in bean.
Can anyone help me out with this???store the value in page flow scope and get it anywhere you want.
RequestContext rc = RequestContext.getCurrentInstance();
rc.getPageFlowScope().put("somevar", somevalue); -
How to insert additional column header using dataTable
Hi everyone, I am using MyFaces 1.1.3, tomahawk 1.1.3, tomahawk-sandbox 1.1.5
I have to add one column header "Proficiency" as in image [http://www.nabble.com/file/p17206601/screenshot.jpg]
This is JSF code without "Proficiency":
<t:dataTable id="data" value="#{commonBean.tableList}" styleClass="standardTable" headerClass="table_header" rowClasses="table_row1, table_row2" columnClasses="standardTable_Checkbox_Column,standard_text,standardTable_Checkbox_Column,standardTable_Checkbox_Column" var="value" preserveSort="true" rows="10" width="100%" border="0" sortColumn="#{commonBean.sortColumn}" sortAscending="#{commonBean.ascending}" cellpadding="2" cellspacing="1" rowIndexVar="tableRowIndex">
<h:column>
<f:facet name="header">
<h:panelGrid styleClass="table_header2">
<h:outputText value="#{msg['select']}" />
</h:panelGrid>
</f:facet>
<h:selectBooleanCheckbox id="select" value="#{value.select}" />
</h:column>
<h:column>
<f:facet name="header">
<t:commandSortHeader columnName="languageSkill" arrow="true" styleClass="table_header">
<h:outputText value="#{msg['language.skill']}" />
</t:commandSortHeader>
</f:facet>
<h:commandLink action="#{commonBean.editAction}" actionListener="#{commonBean.editActionListener}">
<h:outputText value="#{value.languageSkill}" />
</h:commandLink>
<f:param id="object" value="#{value}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{msg['spoken']}" />
</f:facet>
<h:outputText value="#{value.spokenDescription}" styleClass="standardText"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{msg['written']}" />
</f:facet>
<h:outputText value="#{value.writtenDescription}" styleClass="standardText"/>
</h:column>
</t:dataTable>How to do ?
Thanks for your help
Edited by: nvduc82 on May 13, 2008 12:09 PM
Edited by: nvduc82 on May 13, 2008 8:46 PMI see 2 possibilities:
1. Merge two last columns. And then use panelGrid inside the cells.
2. Use JSTL and tag forEach. I found it much easy-to-use. -
How to resize the column header according to row data
Hi,
How can i resize the column header according to row date .. means if data is small header should be small and vice versa ,...
Any help is appreciated .. Snippet will be more helpful .
Thanks,
ShekharOxley (binkley) blogged about this: http://binkley.blogspot.com/2006/01/getting-jtable-columns-widths-to-fit.html
Christian Ullenboom | tutego -
How to avoid/hide column header and ---- in sql command output
Dear Friends,
I have a script to get the list and delete datafiles
script is : (del.sql)
spool d:\del.bat
select 'rm -r '||name from v$datafile;
spool off;
script output (del.bat)
'RM-R'||NAME
rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSTEM01.DBF
rm -r C:\ORACLE10GDB\ORADATA\TEST\UNDOTBS01.DBF
rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSAUX01.DBF
rm -r C:\ORACLE10GDB\ORADATA\TEST\USERS01.DBF
I don't want to have the column header and ---- which is present before the rm -r commands in my output spool file (del.bat)
how can i do it?Please suggest
Regards,
DBI have a script to get the list and delete datafiles Yikes, what are you doing here?
Can you use rm on Windows? -
How to access single column in table?
Hi,everybody!
How to access a single column in table.
I sorted my table with standard TableSorter.
Now I need to get one column from this table to
do something with it's data.How do I get it?
Regards,
MichaelHi Michael,
If you just want to retrieve the data, you could use the following code.
//Get the node which the table is bound to
IWDNode node = wdContext.nodeTable();
//iterate thru the elements
for(int i = 0 ; i<node.size();i++)
IWDNodeElement ne = node.getElementAt(i);
Object value = ne.getAttributeValue("<column name>");
//Here you have the data in the value variable
//and you can manipulate this now
Regards,
Sudeep
Maybe you are looking for
-
I have a Behance profile of long-standing as ChrisARaymond, and multiple projects, all connected to a gmail address. Now I cannot access it because my Adobe ID is connected to a different email address. I get an endless loop as Behance refuses to let
-
[JS CS3] How to select Selection Tool
Hello, At the end of a script I wish to return to the Selection Tool (black arrow). Now the Text tool is active because the last thing the script did was to create a text frame. I do not see any property I can use to invoke the selection tool. Thanks
-
Problem in importing calendar data
Hi, I have a problem in importing calendar data, i.e. no national holidays are imported in the calendar (neither when I create the calendar nor later on using the settings). After waiting quite a while on the window "importing calendar data" I always
-
Iphone 3gs wont sync to update software
Trying to update softwareto the new version that just came out. I can upload the program that need to update but when my phone syncs to back up information it just goes into space and never gets past the 1st of 6 backups. It will just sit in back u
-
Tracking calls to Forms and Reports in an application - Migration
Hello, This is an interesting case. I have an application that has a number of Forms and reports written for 6i. Before I start migrating to 10g, I want to have an estimate of the current usage for this app (for one month), namely the number of times