Giving names to the columns in a JTable

Hi,
I am using JTable(int numRows, int numColumns) constructor to create a JTable. After I built my application I came to knw that I cannot change the column names. The JTable in my GUI will keep on changing and the no. of rows,columns and even the column names may also change. I just wanted to know what constructor I should shift to.
Thanks,
Adhiraj

I would use something like the following:
DefaultTableModel model = new DefaultTableModel(columnNames, rowCount);
JTable table = new JTable( model );
The following code gives some examples on using the DefaultTableModel to add rows and columns:
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
public class TableRowColumn extends JFrame
     private final static String LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
     JTable table;
     DefaultTableModel model;
     JPanel buttonPanel;
     JButton button;
     public TableRowColumn()
          //  Create table
          Object[][] data = { {"1", "A"}, {"2", "B"}, {"3", "C"} };
          String[] columnNames = {"Number","Letter"};
          model = new DefaultTableModel(data, columnNames);
          table = new JTable(model);
          table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
          //  Add table and a Button panel to the frame
          JScrollPane scrollPane = new JScrollPane( table );
          getContentPane().add( scrollPane );
          buttonPanel = new JPanel();
          getContentPane().add( buttonPanel, BorderLayout.SOUTH );
          button = new JButton( "Add Row" );
          buttonPanel.add( button );
          button.addActionListener( new ActionListener()
               public void actionPerformed(ActionEvent e)
                    model.addRow( createRow() );
                    int row = table.getRowCount() - 1;
                    table.changeSelection(row, 0, false, false);
                    table.requestFocusInWindow();
          button = new JButton( "Insert Row" );
          buttonPanel.add( button );
          button.addActionListener( new ActionListener()
               public void actionPerformed(ActionEvent e)
                    model.insertRow( 0, createRow() );
                    table.changeSelection(0, 0, false, false);
                    table.requestFocusInWindow();
          button = new JButton( "Empty Row" );
          buttonPanel.add( button );
          button.addActionListener( new ActionListener()
               public void actionPerformed(ActionEvent e)
                    model.setRowCount( model.getRowCount() + 1 );
                    int row = table.getRowCount() - 1;
                    table.changeSelection(row, 0, false, false);
                    table.requestFocusInWindow();
          button = new JButton( "Add Column" );
          buttonPanel.add( button );
          button.addActionListener( new ActionListener()
               public void actionPerformed(ActionEvent e)
                    String header = "Col" + (table.getColumnCount() + 1);
                    model.addColumn( header );
                    table.requestFocusInWindow();
          button = new JButton( "Add Column & Data" );
          buttonPanel.add( button );
          button.addActionListener( new ActionListener()
               public void actionPerformed(ActionEvent e)
                    String header = "Col" + (table.getColumnCount() + 1);
                    int rows = table.getRowCount();
                    String[] values = new String[rows];
                    for (int j = 0; j < rows; j++)
                         values[j] = Integer.toString(j);
                    model.addColumn( header, values );
                    table.requestFocusInWindow();
          button = new JButton( "Add Column - No Reordering" );
          buttonPanel.add( button );
          button.addActionListener( new ActionListener()
               public void actionPerformed(ActionEvent e)
                    //  Use this method when you don't want existing columns
                    //  to be rebuilt from the model.
                    //  (ie. moved columns will not be reordered)
                    table.setAutoCreateColumnsFromModel( false );
                    String header = "Col" + (table.getColumnCount() + 1);
                    model.addColumn( header );
                    //  AutoCreate is turned off so create table column here
                    TableColumn column = new TableColumn( table.getColumnCount() );
                    column.setHeaderValue( header );
                    table.addColumn( column );
                    // These won't work once setAutoCreate... has been set to false
                    buttonPanel.getComponent(3).setEnabled( false );
                    buttonPanel.getComponent(4).setEnabled( false );
                    table.requestFocusInWindow();
          button = new JButton( "Remove Last Column" );
          buttonPanel.add( button );
          button.addActionListener( new ActionListener()
               public void actionPerformed(ActionEvent e)
                    int columns = model.getColumnCount();
                    if (columns > 0)
                         if (!table.getAutoCreateColumnsFromModel())
                              int view =
                                   table.convertColumnIndexToView(columns - 1);
                              TableColumn column =
                                   table.getColumnModel().getColumn(view);
                              table.getColumnModel().removeColumn( column );
                         model.setColumnCount(columns - 1);
                    table.requestFocusInWindow();
     private Object[] createRow()
          Object[] newRow = new Object[2];
          int row = table.getRowCount() + 1;
          newRow[0] = Integer.toString( row );
          newRow[1] = LETTERS.substring(row-1, row);
          return newRow;
     public static void main(String[] args)
          TableRowColumn frame = new TableRowColumn();
          frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
          frame.pack();
          frame.setLocationRelativeTo( null );
          frame.setVisible(true);
}

Similar Messages

  • How can I get the name of the column in Cursor

    hi,
    how can i derive the name of the columns in cursor
    e.g
    suppose I have a cursor
    cursor c is select * from emp;
    c1 c%rowtype.
    for c1 in c
    I want to display the name of the column how can I do. i don't
    remember the name, but i need it to be displayed tooo.
    thanx in advance
    Sreekant

    You can only do this by DESCing the tables in the cursor and
    then coding eg. v_no := c1.empno;
    APC

  • Alias name for the column name in Prompt

    Hi,
    I have a scenario where I am taking column names into prompt. I have used the following SQL in the SQL results under "Show" option of the Prompt.
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' END FROM " Real Time"
    UNION ALL
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' END FROM "Real Time"
    My problem here is I am getting the column names into the Prompt as "Orders"."By OrderDate" and "Orders"."By ShipDate", which is not acceptable and readable for mat for the user. Is there any way that I can assign an alias name for the column name such as OrderDate and ShipDate in the above SQL.
    Your quick respose is appreciated.
    Thanks,
    Rama

    hi,
    try an alternative one....in your administrator make new columns with alias to ones you want...so you wiil be able to show whatever you want.
    Otherwise,is it possible to show
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' as "xxxxxxxxxxxxx"END FROM " Real Time"
    UNION ALL
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' as "yyyyyyyyyyyyyyyy"END FROM "Real Time"
    Ending,you want the data from your columns?or just the name??
    hope i helped...
    http://greekoraclebi.blogspot.com/

  • Name of the column not displayed

    Hi,
    My query is made on the Data Provider that has the following fields:
    - Notification Numbers(which I get directly from the Data Provider)
    -Status ('ACT' for Active and 'INACT' for Inactive)
    Now, my report should show:
    - Count of all Notification Numbers(which I have avhieved through replacement path)
    - Count of non-confimed Notification Numbers; which is the 'Count of all Notification Numbers' for which the status is INACT.- I have tried achieveing this by making a Restricted KF on the  'Count of all Notification Numbers'. However, the problem is that when this is displayed in the Report, it does not show the name of the column.
    Need help!
    Thx!

    Hi,
    Just select your restricted keyfigure and hit general tab under that description will be there---Enter your desired description there.
    I hope it helps.
    Regards
    AL

  • How to change the name of the column for dynamic query

    I would like to change the name of the column name to bidderone, biddertwo and bidderthree. the only problem is the vendors name unknown when I run the query and sometimes the query returns two vendors. the maximum vendor is three. here is the query and please let me know how this can be done. thank you so much. I am using oracle 10i
    FOR lv_rec IN   ( SELECT vendor, calcbtot
      FROM (SELECT t.*, ROW_NUMBER () OVER (ORDER BY t.calcbtot Asc) rn
              FROM (  SELECT DISTINCT
                             s.vendor,
                             TO_CHAR (s.calcbtot, '999,999,999.00') calcbtot
                        FROM bidtabs b, bidders s
                       WHERE     b.CALL = s.CALL
                             AND b.letting = s.letting
                             AND b.vendor = s.vendor
                             AND b.letting = v_letting
                             AND b.CALL = v_call
                    ORDER BY 2) t)
    WHERE rn <= 3 )                 
       LOOP
          lv_sql :=
                lv_sql  || ', TO_CHAR(MAX(DECODE(TRIM(S.VENDOR),'''|| TRIM (lv_rec.vendor) || ''', S.BIDPRICE)),  ''$999,999,999.00'') AS "'|| TRIM (lv_rec.vendor) ||'" ';
       END LOOP;

    thank you so so much for your help on this. I am sorry i did not post the entire code. my intention is to use bidderone, biddertwo,bidderthree as a column name insead of the name of the vendors and also calcuate the average of the three vendors. the maximum vendor will be three but the minumum could be one or two. hope this is enought information to help me out further . thank you
    CREATE OR REPLACE PROCEDURE biddersquoteforbridge (
       p_spnumber   IN       VARCHAR2,
       p_result     OUT      sys_refcursor
    IS
       v_letting   VARCHAR2 (40);
       v_call      VARCHAR2 (40);
       lv_sql      VARCHAR2 (32767) := NULL;
    BEGIN
       SELECT DISTINCT L.LETTING, CALL
                  INTO v_letting, v_call
                  FROM LETPROP L, PROPOSAL P
                 WHERE L.LCONTID = P.CONTID AND CPROJNUM= p_spnumber;
       lv_sql :=
          'SELECT   O.PRPITEM "Item Number",
                    INITCAP(FUNC_GET_ITEM_DESCRIPTION(O.PRPITEM)) "Description",
                    O.CONTID "Contract Id",O.SECTION "Section" , P.CPROJNUM "SP Number", P.CFACSSUP "District",
                    FUNCT_GET_SECTION_IDENTIFIER(O.SECTION, O.CONTID) "Section Title",  ''Q''||(TO_CHAR(D.DATELET, ''Q-YYYY'')) "Quarter",
                    O.IPLINENO "Line Number", O.QTY "Quantity" ';
      FOR lv_rec IN   ( SELECT vendor, calcbtot
      FROM (SELECT t.*, ROW_NUMBER () OVER (ORDER BY t.calcbtot Asc) rn
              FROM (  SELECT DISTINCT
                             s.vendor,
                             TO_CHAR (s.calcbtot, '999,999,999.00') calcbtot
                        FROM bidtabs b, bidders s
                       WHERE     b.CALL = s.CALL
                             AND b.letting = s.letting
                             AND b.vendor = s.vendor
                             AND b.letting = v_letting
                             AND b.CALL = v_call
                    ORDER BY 2) t)
    WHERE rn <= 3 )                 
       LOOP
          lv_sql :=
                lv_sql  || ', TO_CHAR(MAX(DECODE(TRIM(S.VENDOR),'''|| TRIM (lv_rec.vendor) || ''', S.BIDPRICE)),  ''$999,999,999.00'') AS "'|| TRIM (lv_rec.vendor) ||'" ';
       END LOOP;
       lv_sql :=
             lv_sql
          || '
            FROM   PROPITEM O  ,                   
                   PROPOSAL P  ,
                   LETPROP  L  ,
                   BIDDERS  B  ,
                   BIDTABS  S  ,
                   BIDLET   D
             WHERE O.CONTID = P.CONTID
                    AND P.CONTID = L.LCONTID
                    AND L.CALL = B.CALL
                    AND L.LETTING = B.LETTING
                    AND B.CALL = S.CALL             
                    AND B.LETTING = S.LETTING
                    AND B.VENDOR = S.VENDOR 
                    AND S.IPLINENO = O.IPLINENO
                    AND L.LETTING = D.LETTING             
                    AND O.LINEFLAG =''L''    
                    AND L.LETTING = :B1
                    AND L.CALL = :B2
             GROUP BY
                   O.CONTID,
                   O.SECTION,
                   O.IPLINENO,
                   O.PRPITEM,
                   O.QTY,
                   P.CPROJNUM,
                   P.CFACSSUP,
                   O.PRICE ,
                   D.DATELET             
             ORDER BY O.IPLINENO ';
      -- DBMS_OUTPUT.put_line (lv_sql);
       OPEN p_result FOR lv_sql USING v_letting, v_call;
    END;

  • Can i stop the columns in a JTable from re-ordering?

    Hi,
    As we know, JTable by default allows re-ordering of the columns within it.
    I mean to say that the columns in a JTable can be interchanged, by drag and drop utility.
    I want to refrain my JTable from doing so.
    Can someone please suggest me how can i do this?
    Thanx in advance :)
    Regards,
    Archana

    Thank you :)
    This did solve my problem of columns getting re-ordered in my JTable.
    But i am facing one more problem now :(
    I sort my JTable by clicking on the JTableHeader.
    Clicking on the column header of any one of the columns of the JTable, sorts all entries in either ascending or descending order.
    This is not happening.:(
    Can someone please help me out?
    Thanx in advance :)
    Regards,
    Archana

  • Select the name of the column in combobox

    Hi !!
    i have already get the name of the columns in a combobox with this code 
    xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
    xlWorkSheet.Activate()
    xlApp.Visible = True
    With xlWorkSheet
    Dim LastCol As Integer = xlWorkSheet.Cells(1, xlWorkSheet.Columns.Count).End(XlDirection.xlToLeft).Column
    For x As Integer = 1 To LastCol
    ComboBox2.Items.Add(xlWorkSheet.Cells(1, x).value)
    Next
    End With
    and what i want is :
    when i select the name of the column :
    -this column will be copie in a new sheet of the same workbook (a new sheet add and the column of the table will be there )
    help me pleasee

    i use tis code 
     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
            Dim Excols As New Dictionary(Of Integer, String)
            xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
            xlWorkSheet.Activate()
            xlApp.Visible = True
            With xlWorkSheet
                Dim LastCol As Integer = xlWorkSheet.Cells(1, xlWorkSheet.Columns.Count).End(XlDirection.xlToLeft).Column
                For x As Integer = 2 To LastCol
                    Excols.Add(x, xlWorkSheet.Cells(1, x).value.ToString)
                Next
                ComboBox2.DataSource = New BindingSource(Excols, Nothing)
                ComboBox2.ValueMember = "Key"
                ComboBox2.DisplayMember = "Value"
                AddHandler ComboBox2.SelectedIndexChanged, AddressOf ComboBox2_SelectedIndexChanged
            End With
        End Sub Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged
            Dim exWS2 As Microsoft.Office.Interop.Excel.Worksheet
            xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
            xlWorkSheet.Activate()
            xlApp.Visible = True
            With xlWorkSheet
                Dim key As String = DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Key
                Dim value As String = DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Value
                Dim lastrow As Integer = xlWorkSheet.Cells.Rows.End(XlDirection.xlDown).Row
                Dim colletter As String = ColumnIndexToColumnLetter(key)
                exWS2 = DirectCast(xlWorkBook.Sheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
                exWS2.Name = value
               xlWorkSheet.Range(colletter & "1:" & colletter & lastrow.ToString).Copy(exWS2.Range("A1"))
                ' xlWorkSheet = DirectCast(xlWorkBook.ActiveSheet, Microsoft.Office.Interop.Excel.Worksheet)
                'exWS2 = DirectCast(xlWorkBook.Sheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
                'exWS2.Cells(1, 1).value = ComboBox2.SelectedItem.ToString
                'exWS2.Name = ComboBox2.SelectedItem.ToString
            End With
            Me.Hide()
            form2.show()
        End Sub
        Private Function ColumnIndexToColumnLetter(ByVal colIndex As Integer) As String
            Dim div As Integer = colIndex
            Dim colLetter As String = String.Empty
            Dim modnum As Integer = 0
            While div > 0
                modnum = (div - 1) Mod 26
                colLetter = Chr(65 + modnum) & colLetter
                div = CInt((div - modnum) \ 26)
            End While
            Return colLetter
        End Functionbut 
    when i click on the button a new sheet add named the first colum and an other sheet add also empty 
    without  choosing an items of the combobox :(
    and  i get an error in this :   exWS2.Name = value
    which is :
    Impossible de renommer une feuille comme une autre feuille, une bibliothèque d'objets référencée ou un classeur
    référencé par Visual Basic.

  • Tracking the name of the column that is changed

    hi
    How i can track the following information about a table
    say i hve the table name tab1 which is like this
    col1 col2
    1 2
    Now if i change the value of col1 by a trigger i can track the change value but how can i track the name of the column
    say in the table tab2 i am tracking the result
    changed_col_name changed_val prev_val
    now changed val and prevval can be tracked by trigger but in the column changed_col_name how i can track the name of the column which i changed?
    Thanx in advance

    You are being rather unclear here.
    If you change the name of a column your trigger will need to be amended. I don't think you're actually asking to track changing actual column names.
    What you require is to track value changes and want to know how to assign which value to which column.
    each value is associated with a column, therefore if you track that the 5th value in your value clause has changed that means that the column that is affected is the 5th column in your column list.
    A simple if block would do the trick.
    But probably a better suggestion is to store the rows in a history table.
    Each time theres a change insert into the history table (which has its key column based on a sequence or a timestamp)
    Then to see whats changed you can merely compare the current row to the previous row

  • Select the name of the column from sheet Excel

    Hi everyone,
    i use vb.net with excel 
    First, i have a button "browse"
    which open a workbook.
    Second ,i  have a button "get
    the names of the sheets" which give me the name of the sheet in a combobox ,then i choose the sheet.
    Then i have an other button " get
    the column names " which give me the name of the columns of the table in a combobox .
    When i select the name of the column a new sheet add named the
    name of the column and which has the data of this column
    what i want is :
     when i select again the same column a messagebox will
    be shown "you have already select it "
    And when i go back to choose another sheet then another column
    will be open without getting any error
    this is the code of the combobox :
    Public Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
    xlWorkSheet.Activate()
    xlApp.Visible = True
    With xlWorkSheet
    Dim key As String = CStr(DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Key)
    Dim value As String = DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Value
    Dim lastrow As Integer = xlWorkSheet.Cells.Rows.End(XlDirection.xlDown).Row
    Dim colletter As String = ColumnIndexToColumnLetter(CInt(key))
    exWS2 = DirectCast(xlWorkBook.Sheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
    exWS2.Name = value
    xlWorkSheet.Range("A1:A" & lastrow.ToString).Copy(exWS2.Range("A1"))
    End With
    End Sub
    and if you want to know the code of the button here is :
    Public Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    Dim Excols As New Dictionary(Of Integer, String)
    xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
    xlWorkSheet.Activate()
    If ComboBox2.Items.Count = Nothing Then
    With xlWorkSheet
    Dim LastCol As Integer = xlWorkSheet.Cells(1, xlWorkSheet.Columns.Count).End(XlDirection.xlToLeft).Column
    For x As Integer = 2 To LastCol
    Excols.Add(x, xlWorkSheet.Cells(1, x).value.ToString)
    Next
    ComboBox2.DataSource = New BindingSource(Excols, Nothing)
    ComboBox2.ValueMember = "Key"
    ComboBox2.DisplayMember = "Value"
    AddHandler ComboBox2.SelectedIndexChanged, AddressOf ComboBox2_SelectedIndexChanged
    End With
    Else
    MsgBox("Déja Pleine!", CType(MessageBoxIcon.Error, MsgBoxStyle))
    End If
    End Sub
    please help me 

    Hi
    >> when i select again the same column a message box will be shown "you have already select it
    Each time you select a value in the comobox , you could compare
     each cell’s value with the value you just selected in the first row. If  it is matched, then show the message box" you have already select it "
    >>And when i go back to choose another sheet then another column will be open without getting any error
    I am not sure the sentence’s meaning clearly, What do you mean about another column will be open?  what's the error , Can you clarify this more
    clear?
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I restrict the column dragging of JTable?

    I have a requirement like, if we have any editable cell in the JTable, we should not allow the user to drag the columns at all. I tried with setDragEnabled(false) ..but its not giving the proper out put..... can any one come up with a solution for this?

    table.getTableHeader().setReorderingAllowed(false)

  • Getting the name of the column using MDM API

    Hi I want to know the Column name from fieldId, can any one help me on this. I am using the following code to get the data but i nedd column name to which the data is refering
    ArrayList mdmData=new ArrayList();
    RecordResultSet rs=(RecordResultSet)obj;
    FieldId field[];
    for(int i=0;i<rs.getRecords().length;i++)
           field=rs.getRecords()<i>.getFields();
                for(int j=0;j<field.length;j++)
                    mdmData.add(rs.getRecords()<i>.getFieldValue(field[j]));
    Regards,
    Sandeep

    Hi Sandeep,
    When you fetched the FieldID from FieldProperties object. There is one more method to this class named FieldProp.getName(). This returns you the Name of the Field. You can store that too if you need it later.
    Thanks
    Namrata

  • Dynamic Columns, using the element name as the column header name

    BI Publisher Experts,
    I'm a relative newbie in the RTF layout world and i'm trying to acheive a layout which dynamically nominates the column headers as the element name.
    For example using the XML below:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ROWSET>
    - <DATA>
    - <THREECOLUMNDATA>
    <FIRST_NAME>First Name</FIRST_NAME>
    <LAST_NAME>Last Name</LAST_NAME>
    <EMAIL>[email protected]</EMAIL>
    </THREECOLUMNDATA>
    </DATA>
    </ROWSET>
    Excuse formatting, looked ok in preview!
    I'd like to acheive the following output:
    | FIRST_NAME | LAST_NAME | EMAIL |
    |-----------------------|---------------------- |--------------------------------------------------------|
    | First Name | Last Name | [email protected] |
    I've managed to get the row data columns working using:
    <?for-each@cell:current()/*?><?.?><?parent::*/text()?> <?end for-each?>
    And i've been working on the header for a while now, using
    <?for-each@column:current()/THREECOLUMNDATA[1]/*?><?name(.)?><?end for-each?>
    But no luck with the header. I only ever get a blank header.
    I've also reviewed the following syntax:
    <?split-column-header:THREECOLUMNDATA?> <?/FIRST_NAME?>
    But of course, this pulls specific element data out as the header, not quite what I need.
    Question is: Is there specific functionality to pull the element name out as the header, or do I somehow specifically need to include the header name as a data value in the XML?
    Advice appreciated!

    If you could get your XML to look like this instead of what you have, you will be able to use split-column-header and split-column-data
    <?xml version="1.0" encoding="UTF-8" ?>
    <ROWSET>
    <DATA>
    <THREECOLUMNDATA>
    <COL_DTLS>
    <COL_LABEL>FIRST_NAME</COL_LABEL>
    <COL_VALUE>First Name</COL_VALUE>
    </COL_DTLS>
    <COL_DTLS>
    <COL_LABEL>LAST_NAME</COL_LABEL>
    <COL_VALUE>Last Name</COL_VALUE>
    </COL_DTLS>
    <COL_DTLS>
    <COL_LABEL>EMAIL</COL_LABEL>
    <COL_VALUE>[email protected]</COL_VALUE>
    </COL_DTLS>
    </THREECOLUMNDATA>
    </DATA>
    </ROWSET>
    Now if you <?split-column-header:COL_DTLS?><?COL_LABEL?> and <?split-column-data:COL_DTLS?><?COL_VALUE?> you'll get the required output...

  • How to display the name of the column in the BEx report

    Hi SDN,
    When I put the display properties of the char Infoobject as "Key and Text" in the output the 'Key' and the 'Name' are displayed in two different columns, and there is no Heading for the column that shows 'Name' but my requirment is to have to have the Heading for the column that displays 'Text' also.
    points will be awarded
    Thank you,
    Prasaad

    Hi Hari,
    One of the work arounds will be to have 2 columns 1 having key and ohter only text and u can then set the headings as u need.
    Regards,
    Rathy

  • Making XSD element name match the column name/header

    The XML format of the answer I created looks like the following. How can I change the element name from C0, C1... to real column name? http://host:port/analytics/saw.dll?Go&searchid provided the XML
    <?xml version="1.0" encoding="utf-8" ?>
    - <RS xmlns="urn:schemas-microsoft-com:xml-analysis:rowset">
    - <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:saw-sql="urn:saw-sql" targetNamespace="urn:schemas-microsoft-com:xml-analysis:rowset">
    - <xsd:complexType name="R">
    - <xsd:sequence>
    <xsd:element name="C0" type="xsd:double" minOccurs="0" maxOccurs="1" saw-sql:type="double" saw-sql:displayFormula=""CUSTOMERS"."SALES"" saw-sql:aggregationRule="none" saw-sql:aggregationType="nonAgg" saw-sql:tableHeading="CUSTOMERS" saw-sql:columnHeading="SALES" />
    <xsd:element name="C1" type="xsd:string" minOccurs="0" maxOccurs="1" saw-sql:type="varchar" saw-sql:displayFormula=""CUSTOMERS"."CITY"" saw-sql:aggregationRule="none" saw-sql:aggregationType="nonAgg" saw-sql:tableHeading="CUSTOMERS" saw-sql:columnHeading="CITY" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    - <R>
    *<C0>0.3</C0>*
    *<C1>WILLITS</C1>*
    </R>
    Edited by: user732932 on Jan 7, 2010 11:38 AM

    OR is there a way to pass the column headers from OBIEE to a URL? For example, session parameters can be passed using @{parmName}

  • Can i-tunes display fIle names in the columns

    i-tunes has a vast list of columns to choose from right from album, artist,genre ,rating etc..
    However, how can I display the original file name in a column?

    As far as I have seen, using i-tunes properly to its fullest to maintain a neat library is not possible by simple users.
    Huh?
    Add items to iTunes, name everything correctly in iTunes and let iTunes manage everything, including location and it is very, very easy.
    Why use one application to play music and another application (Windows Explorer) to manage the file locatgions and filenames? That sounds more difficult.
    Simple users will not understand that the album tag in a mp3 file is most of Why would they be wrong? Most RIPping software will add the info from the application.
    If the user is lazy and does not want to add/verify the info, then that is their problem but why not use the tags, which were developed specifically to maintain information about that file?Simple users (and everyone else) should use the tags and put the correct info in those tags (using iTunes).
    and not relative to the original file name
    Who really cares what a filename (or even where a file is located) is if I can do what I want in iTunes? If I need to copy it somewhere, drag it directly from the iTunes window.
    So, it is just an additional simple request from simple users
    Send suggestions here -> iTunes feedbacl
    Regardless, you are free to maintain your files as you wish and you can make it as simple or as difficult or anywhere in between, as you want.

Maybe you are looking for

  • 10.5.5 works fine for me

    I upgraded to a ATI Radeon HD 3870 a few weeks ago and was a little worried about the upgrade but it seems to have worked just fine. 1. Downloaded the update using Apple update service. 2. Installed ok and rebooted. 3. There was a long pause... at th

  • Printing Problem with Xerox 6120

    I've connected a Xerox 6120 color laser printer to my home LAN (cable modem to Netgear wireless router). When the printer is turned on the Mini can't get an IP.I've tried using fixed IP for both the Mac and the Xerox to no avail. (FYI, my G3 Pismo La

  • Lightroom 4 Adjustment Brush Crashed

    Hi, Was editing an image in the develop module, applied the adjustment brush for saturation to the sky area, then pressed the "O" key to see the brushed area and Lightroom 4 crashed. The adjustment brush was set for 100% flow and auto masking with on

  • What exactly is the difference between enqueue,latch & lock

    Can someone explain in simple words (with example if possible) what exactly is the difference between enqueue,latch & lock? I have gone through documentation & other links,but just not able to figure out the exact & clear difference between these thr

  • Dell Hardware on Linux or Solaris x86

    Hi, My company is considering moving to dell hardware in a move to drive TCO down. We currently run Sun sparc (240, 490,890) servers and they are nearing end of life. Doing the research, even visited some vendors and from what we've seen, running eit