How do I know the Column number after shifting table columns?

I create a table with column name "a", "b", "c"
Then I shift those column around..
Is there a way Java can tell me the column number of heading "b"? (For example)
Thanks!

As mentioned above you generally don't need to worry about columns being moved but, from the JTable API, this may be what you are looking for:
int convertColumnIndexToModel(int viewColumnIndex)
int convertColumnIndexToView(int modelColumnIndex)

Similar Messages

  • How can i know the row number of my table is being modified?

    HI all,
    I have a table in my web dynpro and several columns as checkbox... I put an event OnToggle in these columns.
    Do you know any way to get the row or the row number?
    If i use the method get_static_attributes return to me the selected row not the modified.
    Thanks in advance !

    EDIT: thanks ! is solved, i need to pass CONTEXT_ELEMENT' in the  <ELEMNT_NAME>
    This is my code:
    DATA table_element TYPE REF TO if_wd_context_element.
      DATA row_index TYPE i.
      table_element = wdevent->get_context_element('CONTEXT_ELEMENT').
      IF NOT table_element IS INITIAL.
        row_index = table_element->get_index( ).
      ENDIF.
    Edited by: Husalban RM on Sep 15, 2010 4:53 PM

  • How can i know the Column Position in a table

    Dear all
    How can i know the Column position in a table ..
    For example :-
    I have a table
    Desc EMPLOYEES
    Empid
    Ename
    Sal
    I want to know the Empid is in 1st position , ename is in 2nd position and sal is in 3rd position .
    is it possible ?

    Hi
    SELECT * FROM ALL_TAB_COLUMNS WHERE
    TABLE_NAME ='EMPLOYEES' AND owner=<OwNeR nAmE> ;)

  • I know the personal number. How to know the address number on ADR* tables ?

    Hello,
    I know the personal number. How to know the address number on ADR* tables ?
    I need some information from ADR2 and ADR6 and I know the personal number (on PA30 transaction ).
    There's some MF or we can do it by some table ?
    Tks.

    Hi
    You can get the user name from PA0002 passing personal number.
    If you know user name you can go to USR21 table, enter login name and get  ADDRNUMBER value.
    Regards
    Yossi Rozenberg

  • How can I know the GUID number of the business partner in SRM server?*

    hai friends
    How can I know the GUID number of the business partner in SRM server?
    regards
    vinaykrishna

    Hi,
    Go to transaction SE16, table BUT000... put in the number of Business Parnet and execute. Doble click in the line and you'll see the field PARTNER GUID with the number GUID.
    Rgs,
    Pedro Marques

  • How do I know the column data type

    Hello,
    For example I have created table Test:
    SQL> create table Test(
      2  rollNo number(3),
      3  Name varchar2(80));
    Table created.Now I desc Test but its not showing the column data type
    SQL> desc test
    Name                                  
    ROLLNO                                
    NAME                                   Can I know that?
    Best regards

    What happens when you issue,
    set linesize 2000
    SQL>desc testAre you sure that you are not missing scrolling the bar in the bottom of the window?
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 20 19:23:01 2010
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create table testr(test number(3), rollno varchar2(10));
    Table created.
    SQL> desc testr
    Name                                      Null?    Type
    TEST                                               NUMBER(3)
    ROLLNO                                             VARCHAR2(10)Aman....
    Edited by: Aman.... on Nov 20, 2010 7:24 PM

  • How do you know the comsumed number of PrintJobLimit?

    Hello,
    We are using the CR SDK for .NET (SAP Crystal Reports runtime engine for .NET Framework4).
    We know about changing the value of PrintJobLimit.
    Our question:
    How do we see the number of PrintJobLimit is consumed during performing print job?
    Best regards,
    Toshi

    Hi Toshi,
    Unfortunately there is no API to get the number of jobs currently being processed.
    Add your Enhancement request to Idea Place.
    Don

  • How can I get the SERIAL NUMBER after an INSERT

    I am working on an application using Jdk1.2 connecting to an Oracle 8i
    Database. The JDBC driver that I am using is Oracle's thin driver.
    In the DB, I have a table that has a primary key as a sequence number.
    Upon inserting a single row into this table, how can I get this serial
    number that is generated by the Database.
    Previously I was using INFORMIX database and welogic's JDBC drivers and this
    is how I get the serial number.
    PreparedStatement ps = ...
    ps.setObject(......);
    ps.executeUpdate();
    int snumber =
    (weblogic.jdbc.informix4.Statement) ps.getSerialNumer()
    Similarly I have tried to use
    (oracle.jdbc.driver.OracleStatement) ps.getSerialNumber()
    But this method does not exist in the JDBC thin drivers.
    Is there some other way to get this serial number.
    Thanks,
    Suresh
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by syalaman:
    I am working on an application using Jdk1.2 connecting to an Oracle 8i
    Database. The JDBC driver that I am using is Oracle's thin driver.
    In the DB, I have a table that has a primary key as a sequence number.
    Upon inserting a single row into this table, how can I get this serial
    number that is generated by the Database.
    Previously I was using INFORMIX database and welogic's JDBC drivers and this
    is how I get the serial number.
    PreparedStatement ps = ...
    ps.setObject(......);
    ps.executeUpdate();
    int snumber =
    (weblogic.jdbc.informix4.Statement) ps.getSerialNumer()
    Similarly I have tried to use
    (oracle.jdbc.driver.OracleStatement) ps.getSerialNumber()
    But this method does not exist in the JDBC thin drivers.
    Is there some other way to get this serial number.
    Thanks,
    Suresh
    <HR></BLOCKQUOTE>
    ========================================
    ORACLE don't support serial number as Informix, but you can create sequence table
    and every time get the next value from this table.
    null

  • How can I know the target row in drop table?

    I'm implementing 'drag-and-drop' a record from a table to another table(both are set read-only table).
    After dropping, the record will be removed from source table and be inserted into target table.
    But the problem is that it's not simply added.
    When a record is dropped, it must be inserted right after target row which the mouse is over.
    (Target table records have a kind of order number and re-ordering will be needed at each drag-and-drop)
    I tried with EL from VO like '#{bindings.Testtbl2View1.currentRow}', but it returned a selected row before, not the target row(which mouse is over).
    Please advise me.

    Hi
    SELECT * FROM ALL_TAB_COLUMNS WHERE
    TABLE_NAME ='EMPLOYEES' AND owner=<OwNeR nAmE> ;)

  • How to know the column name using the index name for a particular table

    Hi All,
    I have small query regarding, I have index name and table name so by using this how can I know the column name associated with that index of that particular table specific to Oracle9i.
    Thanks
    Sudheer

    select *
    from user_ind_columns -- or all_ind_columns
    where table_name = UPPER('&table_name')
    and index_name = UPPER('&index_name');
    Regards
    Arun
    Gurgaon

  • How to obtain the IDOC number after creation

    Hello everyone,
    for our master data distribution via report RHALEINI (triggered via a custom report), we have some additional code in BAdI HRALE00OUTBOUND_IDOC, method IDOC_DATA_FOR_RECEIVER_MODIFY.
    Everything is working fine so far. Now I need to know the Idoc number after it was created to store it in a customer table together with some additional data. Since the Idoc was not yet created when we're in the method mentioned above, I have to put my coding somewhere else.
    Any that's exactly my question: Were could I put my coding? It needs to be executed after MASTER_DATA_DISTRIBUTE since this function creates the idoc in the database.
    I though about the following:
    - Since RHALEINI is called by a custom report, I might be able to read the idoc number from memory id COMM_HRMD_A (see RHALEINI, line 418).
    - Maybe BAdI IDOC_DATA_INSERT could be used for this purpose?
    What would be your approach for this?
    Thank you in advance.

    Hello Markus,
    EXPORT comm_control TO MEMORY ID 'COMM_HRMD_A'.
    This is a nice observation!
    Since RHALEINI is called by a custom report, I might be able to read the idoc number from memory id COMM_HRMD_A
    Are you SUBMIT'ting the report RHALEINI in the custom program? If yes, you can access the memory COMM_HRMD_A in your program. To verify this you can check in debug mode if the memory id is populated.
    I've checked the report RHALEINI & the internal table comm_control should contain the idoc number!
    Maybe BAdI IDOC_DATA_INSERT could be used for this purpose
    Only if the previous approach doesn't work out. Remember [K.I.S.S|http://en.wikipedia.org/wiki/KISS_principle]
    BR,
    Suhas

  • How to find out the columns which has 16 digit credit card number

    Hi All,
    I have a requirement where in i need to find out the columns which has 16 digit credit number in it and create a report with owner, table name and column name.
    The issue is that the credit card number can be entered in any columns of any table of any schema. For example the credit card number can be entered in any description field(eg: The number is 4001412134642881), in that case i need to filter only the numbers and do the LUHN check to validate the credit card number.
    Please provide me a suggestion on how to scanl the values of all the columns to know the column which has credit card number.
    Regards,
    Raj.

    Tell me this - how the hell do you have a database with credit card number data and NOT know which columns of which tables contain credit card numbers? (and how on earth is this data NOT encrypted!?)
    How is what you want to do, NOT a fishing expedition to hack a database that may or may not be storing credit card details?
    And do you honestly think that we should simply trust that once you have extracted these numbers, performed a Luhn algorithm to verify these as credit card numbers, you are not going to fraudulently use these credit card numbers!?
    I have marked your posting as an attempt to hack an Oracle database for fraudulent use of credit card data. I hope that your OTN account is terminated soon and trust that your too much of a coding idiot to actually succeed in this endevour.

  • I recently subscribed to Acrobat XI after the trial expired but when I went to activate it I was asked for the serial number. I only have the order number on the invoice. How do I get the serial number for the trial software that is on my computer?

    I recently subscribed to Acrobat XI after the trial expired but when I went to activate it I was asked for the serial number. I only have the order number on the invoice. How do I get the serial number for the trial software that is on my computer?

    Please do not try to send attachments in mail responses to forum messages. Please return to the forum and click Reply. You can then use the CAMERA icon to add your pictures. Looking forward to seeing what is wrong with your license screens - the general advice is simply to sign in, and everything is done. Make sure you use the SAME Adobe ID that you used to purchase, and check your account details to be sure the subscription is active.

  • HT4061 hey my phone been stolen and I don't know the IMEL number how can I get it?

    hey my phone been stolen and I don't know the IMEL number how can I get it?

    from your carrier would be a start.

  • How can i know the number of lines in field-symbol internal table

    how can i know the number of lines in field-symbol internal table

    Hi,
    If your field symbol has been defined as an internal table :
    Use std describe as
    Data: l type i.
    describe <fs> lines l.
    'l' will contain the number of lines as needed.
    FYI
    The size of this storage area in a field symbols depends on the number of table lines which is not fixed, but determined dynamically at runtime.
    Regards,
    Amit

Maybe you are looking for