How to get Index of a single element in a table

Hi Gurus,
I need to get the index number of the element in a table even if the row is not selected.
I've already searched the forum for this but all i'm getting are selected rows in the table.  I need to get the index even if that elemen's row is not selected in the table.
Please advise.
Regards,

Hi,
Could you please specify what exactly you want to do?
You said you want to get the index of an element even if the corresponding row is not selected. But there might be more than one element where the correponding rows are not selected. So it would be better if you could be more specific about what you want to achieve.
Regards,
Srilatha

Similar Messages

  • How to get index of currently focussed element in JComboBox

    Hello
    I have an editable JComboBox and i have the following property set on it
    "JComboBox.lightweightKeyboardNavigation","Lightweight". THis enables the user to traverse using arrow keys without actually selecting each time.
    In this case how do i find out which element or value is in focus because the value in focus may be different from the selected value in the combo box.
    Please help!!!!!!!!
    Gunjan

    Try this:
    import java.awt.event.KeyEvent;
    import java.util.Vector;
    import javax.swing.ComboBoxModel;
    import javax.swing.JComboBox;
    public class LightWeightComboBox extends JComboBox {
    private int m_intSelectedIndex;
    public LightWeightComboBox() {
    super();
    init();
    public LightWeightComboBox(ComboBoxModel aModel) {
    super(aModel);
    init();
    public LightWeightComboBox(Object[] items) {
    super(items);
    init();
    public LightWeightComboBox(Vector items) {
    super(items);
    init();
    private void init() {
    // Enable lightweight keyboard navigation.
    putClientProperty("JComboBox.lightweightKeyboardNavigation", "Lightweight"); // JDK 1.3
    putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE); // JDK 1.4
    public void showPopup() {
    m_intSelectedIndex = getSelectedIndex();
    super.showPopup();
    private void updateSelectedIndex(int intKeyCode) {
    if (intKeyCode == KeyEvent.VK_UP) {
    m_intSelectedIndex--;
    if (m_intSelectedIndex < 0) {
    m_intSelectedIndex = 0;
    else if (intKeyCode == KeyEvent.VK_DOWN) {
    m_intSelectedIndex++;
    if (m_intSelectedIndex > (getItemCount()-1)) {
    m_intSelectedIndex = getItemCount()-1;
    public void processKeyEvent(KeyEvent e) {
    if (isPopupVisible()) {
    if ( (e.getID() == KeyEvent.KEY_RELEASED) && ( (e.getKeyCode() == KeyEvent.VK_UP) || (e.getKeyCode() == KeyEvent.VK_DOWN) ) ) {
    updateSelectedIndex(e.getKeyCode());
    else if ( (e.getID() == KeyEvent.KEY_RELEASED) && ( (e.getKeyCode() == KeyEvent.VK_SPACE) || (e.getKeyCode() == KeyEvent.VK_ENTER) ) ) {
    hidePopup();
    setSelectedIndex(m_intSelectedIndex);
    else if ( (e.getID() == KeyEvent.KEY_RELEASED) && ( (e.getKeyCode() == KeyEvent.VK_DOWN) || (e.getKeyCode() == KeyEvent.VK_SPACE) || (e.getKeyCode() == KeyEvent.VK_ENTER) ) ) {
    showPopup();
    if ( (e.getKeyCode() != KeyEvent.VK_ENTER) && (e.getKeyCode() != KeyEvent.VK_SPACE) ) {
    super.processKeyEvent(e);
    }

  • How to get the values of all elements and sub elements from  following xml

    how to get the values of all elements and sub elements from following xml...
    <?xml version="1.0" encoding="UTF-8" ?>
    <List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
    <TransactionID>TransactionID</TransactionID>
    <Match>
    <Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
    <List_Matched_Field>
    <FSFM_Matches>
    <NUMBER>NUMBER</NUMBER>
    <TERROR>TERROR</TERROR>
    <TU>TU</TU>
    <NAMEU>NAMEU</NAMEU>
    <DESCRIPT>DESCRIPT</DESCRIPT>
    <KODCR>KODCR</KODCR>
    <KODCN>KODCN</KODCN>
    <AMR>AMR</AMR>
    <ADDRESS>ADDRESS</ADDRESS>
    <SD>SD</SD>
    <RG>RG</RG>
    <ND>ND</ND>
    <VD>VD</VD>
    <GR>GR</GR>
    <YR>YR</YR>
    <MR>MR</MR>
    <CB_DATE>CB_DATE</CB_DATE>
    <CE_DATE>CE_DATE</CE_DATE>
    <DIRECTOR>DIRECTOR</DIRECTOR>
    <FOUNDER>FOUNDER</FOUNDER>
    <TERRTYPE>TERRTYPE</TERRTYPE>
    </FSFM_Matches>
    <OfacMatchDetails>
    <UID>UID</UID>
    <TITLE>TITLE</TITLE>
    <SDNTYPE>SDNTYPE</SDNTYPE>
    <REMARKS>REMARKS</REMARKS>
    <ID_UID>ID_UID</ID_UID>
    <IDTYPE>IDTYPE</IDTYPE>
    <IDNUMBER>IDNUMBER</IDNUMBER>
    <IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
    <ISSUEDATE>ISSUEDATE</ISSUEDATE>
    <EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
    <ADDRESS1>ADDRESS1</ADDRESS1>
    <ADDRESS2>ADDRESS2</ADDRESS2>
    <ADDRESS3>ADDRESS3</ADDRESS3>
    <CITY>CITY</CITY>
    <STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
    <POSTALCODE>POSTALCODE</POSTALCODE>
    <COUNTRY>COUNTRY</COUNTRY>
    </OfacMatchDetails>
    </List_Matched_Field>
    </Match>
    </List_AML_Finacle>

    avoid multi post
    http://forum.java.sun.com/thread.jspa?threadID=5249519

  • How to get list of block identifiers in a empty table and an empty index

    We have an application that has issue with ITL waits: this application is running many INSERT statements on a table that has 2 NUMBER columns and one primary key index. The application is designed to run INSERT statements but they are never committed (this is a software package).
    To check what are the really allocated ITL slots, I know that I can dump data block but I don't know how to get the block identifiers/numbers for an "empty" table and an "empty" index. Does someone knows how to do that ?
    PS: I already had a look to the Metalink notes and I have a Metalink SR for that but maybe OTN forum is faster ?

    You should be able to find the first data/index block with the following, even on an empty table/index.
    select header_file, header_block +1
    from dba_segments
    where segment_name = '<index or table name>';

  • How to get the count of repeating elements in a xml doc.

    In many xml documents, in is common to have repeating child elements and what I would like to know is how do I determine exactly how many of these child elements exist in a particular document. There is probably a correct XPath string to determine this, but I cannot figure out what it is. Here is an example
    <a>
    <b>
    <c>1</c>
    <c>5</c>
    <c>22</c>
    </b>
    </a>
    The above 'c' element is what varies in number from document to document and I need to know how to get the number of 'c' elements for the document, which would be 3 in the above case.

    create table test_xml(data xmltype)
    insert into test_xml values(
    xmltype('<a>
    <b>
    <c>1</c>
    <c>5</c>
    <c>22</c>
    </b>
    </a>')
    select extract(data, '/a/b/c').getclobval() from test_xml
    select count(*) from test_xml
    where existsnode(data, '/a/b/c')=1
    good luck.

  • How to get the bounds of single char?

    How to get the bounds of single char in text frame?
    Thanks

    I also think there is not an exiting function which can get it, but we can work around. Can you give some ideas to work around it?

  • How to get audio into Adobe Premiere Elements 12?

    How to get audio into Adobe Premiere Elements 12?
    I have filmed an air show with a very good camera JVC pro
    And when I pick up the clips in Adobe Premiere Elements 12, it works too, but only without sound.
    I think I tried everything for 4 days now.
    Sound in my computer works perfectly
    I go to where the video files are located and try to run them in VLC or in Nero Kwik so it works fine with both audio and video.
    I have checked the sound card.
    Yes, I have tried everything so now I'm so tired of this lousy so I'm ready to throw this program at the dump.
    It's not normal if you will keep on producing audio for over 4 days at Adobe
    The old Elements 9 worked fine. Offer some of would consider developing it again. I do not know how I should do.
    My name is Thore Hult
    live in Karlshamn in Sweden

    Thore Hult
    On what computer operating system is your Premiere Elements 12 working on? Have you updated it from 12 to 12.1 Update using an opened project's Help Menu/Update. If not, please do so.
    For your immediate problem.
    What is the model/settings for the JVC camera that recorded you video. I want to get at the properties of your source video including the file extension.
    Since you are getting video, but no audio, please download and install the free codec utility named GSpot to see what is shows
    for your Audio Name and Status.
    http://www.headbands.com/gspot/
    The other properties of the file there would also be of interest.
    When you import your source file into the project, do you see any "conforming" activity going in a progress bar at the bottom right corner of the workspace?
    If so, do you wait for it to complete before you move forward in the project?
    Can you get sound in any of your Premiere Elements projects with this current JVC file or other?
    Can we assume that your troubleshooting has included checking
    a. Volume control within the project
    b. Edit Menu/Preferences/Audio Hardware ASIO
    Let us start here and then we can decide what next if necessary.
    Thanks.
    ATR

  • How to get Dealership of Adobe Photoshop Elements for Mumbai, Maharastra, India

    Hello,
    i am doing wedding Album designing in india Using Adobe Photoshop Elements8 Licence Version.
    Also Developing Plugin for Adobe Premiere in Flex.
    How to get Dealership of Adobe Photoshop Elements for Mumbai, Maharastra, India
    any one have idea please help.
    thanks
    Dhiraj

    Hi,
    Thanks Barbara B. sure i will try.
    Thanks
    Dhiraj

  • How canI get my serial number for Elements 11?

    How canI get my serial number for Elements 11?  Does anyone know how to help me.  I did puchase it sometime ago but lost all computer data and had to replace computer.  Hope someone can help.
    Thanks
    Steve

    If you have no record of it at your end, the only place you might find it is at Adobe's end via logging into your Adobe account and seeing if it is listed there.  If you registered the software it should be.
    Beyond that your only hope might be to have Adobe support check your information to see if the software/serial number is available and if it can be given to you.  Try contacting them by chat or telephone.
    Here is a link to a page with options to help make contact:
    http://www.adobe.com/support/download-install/supportinfo/

  • How to make few columns of single record inactive in Table conrol?

    Hi all,
    Scenario is like this : i have one table control , it is displaying 10 records , in that first four columns are editable. Now my requirement is, whenever record having intial values( suppose one record having initial values among ten) except key field , we need to deactive that particular  record , now table control  should contain ten records , but nine records are in editable state and one record in non editable state .
    How to make few columns of single record inactive in Table conrol?
    Thanks in advance.

    hi there...
    select the column that u want to convert to non editable mode in the screen layout. then double click on it. go to the attributes tab and uncheck the input chk box. the check box will become disabled for input. u can do this for any number of columns.
    if u want to do it dyanamically, loop at screen. check for the screen element's name. when itmatches the column u want to disable, simply set the input value as 0.
    dont forget to modify sscreen after setting the attribute values.
    i hope this helps.
    do reward if helpful.

  • How to get the data from multiple nodes to one table

    Hi All,
    How to get the data from multiple nodes to one table.examples nodes are like  A B C D E relation also maintained
    Regards,
    Indra

    HI Indra,
    From Node A, get the values of the attributes as
    lo_NodeA->GET_STATIC_ATTRIBUTES(  IMPORTING STATIC_ATTRIBUTES = ls_attributesA  ).
    Similarily get all the node values from B, C, D and E.
    Finally append all your ls records to the table.
    Hope you are clear.
    BR,
    RAM.

  • How to get the data from pcl2 cluster for TCRT table.

    Hi frndz,
    How to get the data from pcl2 cluster for tcrt table for us payroll.
    Thanks in advance.
    Harisumanth.Ch

    PL take a look at the sample Program EXAMPLE_PNP_GET_PAYROLL in your system. There are numerous other ways to read payroll results.. Pl use the search forum option & you sure will get a lot of hits..
    ~Suresh

  • How to get the object class field value in CDHDR table for vendor

    hi
    how to get the object class field value in CDHDR table for vendor

    Try KRED/KRED_N as object class in CDHDR for Vendor.

  • How to get index of the item from table when user double click on an item

    Can anyone tell me how to get the corresponding index of a table in which
    elements are listed as array of strings? I am looking for the index of the
    item being double-clicked on?
    Thank you in advance
    Cheers,
    NQ.

    Hi NQ,
    Although the question is not thouroughly clear, I can give a few suggestions. You can use the property node for table to refer to any particular row or column of the table. The correpsonding elements in the property node will be "SelStart", "SelSize" etc. Just as a side thought, the index of a table starts with (0,0).
    I am attaching a test file. Please see if it helps you in figuring out what exactly you want. This example VI is just to help you try different options under property node (if you havent already tried)to get what you want.
    Regards,
    Sastry Vadlamani
    Applications Engineer
    National Instruments
    Attachments:
    test.vi ‏27 KB

  • How to get Index storage Quality

    Hi,
    I want to get the storage quality of the Index for multiple Indexes.
    I am albe to get the Index Quality for particular one Index by accessing following path.
    DB02OLD -> Tables and Indexes -> Detailed Analysis -> Enter Index Name -> Detailed Analysis
    Check storage quality by, Analyze Index -> Storage Quality
    By accessing above path i have to check index one by one and its take very long time.
    But I want to check the storage Quality for multiple Indexes at same time.
    So is it possible to get Index Storage quality for miltiple indexes in single steps?
    Regards,
    Nisit

    Hi Nisit Patel ,
    If u have found the solution please share with me
    as i also need to analyse the % of storage quality from mulitple indexes
    is there any sql script for the same
    thanks
    Anand

Maybe you are looking for