get the index of a table display

Hello!

I have a question. Is it possible to get the index of a current table in the front panel?

I have 2 tables which need to scrool simultaneously to the user, so my idea was to read the index of a table and 'write' on the second.

Can someone give me an idea how to do that?

Thank you

Dear Thiago Bach,

recently, I did (for a similar question) an example on the control to the index of the two tables and bar a scroll, please find the attached VI.

Good luck!

Tags: NI Software

Similar Questions

  • Get the index of the column of table removed

    Is there a way to get the index of the column in a 2D table that has been deleted? In my application, the user has the possibility to use the right click option 'remove a column' on a 2D picture, but I would like to use this information to remove the same column in a different table programmatically. Is this possible?

    There is a file published in the documents of the community that refers to a location in a sheet of the user has clicked.  Use it like the image below.

    https://decibel.NI.com/content/docs/doc-22434

  • get the index of the same values in table

    Hi guys,.

    I'm trying to get the index of array elements with the same value but it can solve mine.

    my case is:


    array1 = [1,2,3,4]; <-here are the names of the pages, always in the order of CSA (these table I used only to check the results of my work, probably will not be for you but maybe...)

    array2 = [1,1,2,2,2,3,4,4,4]; <-these numbers are random, but always in the CSA order (these are the names of pages for items in table 3)

    array3 = [a, b, g, i, f, e, c, h, d]; <-these are all the values of the elements I want to work with later. number of articles is still the same as in array2, their indexes are corresponding.

    array4 = [];

    I need to remove array3 everything, but one of each issue of array2 (as I will remove duplicates) or push to array4 an article of array3 for each number of the array array2 (as I'm going to ignore duplicates)

    don't know is my desc is clear enough, but the result I get is:

    ex. [a, g, e, c]

    above example for each number of array2 array3 items, but do not have to be first, can be second or third if etc exist, but have to be alone.

    I thought that if I get duplicate values, the index in the array array2 and delete this index in array3 will get what I want, but can not solve.

    You will appreciate all help.

    Thank you

    Try something like this:

    var array2 = [1,1,2,2,2,3,4,4,4];
    var array3 = ["a","b","g","i","f","e","c","h","d"];
    
    var tempArray = [];
    var resultArray = [];
    var n , x ;
    
    for(var n=array2.length-1;n>=0;n--)
    {
        var string = ""+array2[n];
        tempArray[string] = array3[n];
    }
    
    for(x in tempArray)
    {
        resultArray.push(tempArray[x]);
    }
    
    resultArray.reverse();
    // a,g,e,c
    

    Hope, that helps.

    Uwe

  • get the index of a selected item in a drop-down list box

    Hello

    If I have a list of strings in a drop-down list box and the user selects one in the drop-down menu, how can I get the index?  I was able to explore the table for the selected channel, but it seems like duplication of effort to create a list and then go back and research it.

    Thank you

    Brendon

    It's easier to change control of the ring or Enum which gives the index as a default value, a drop-down list box gives a string that must be converted. But if you like really graphic and you want to use the drop-down list you can uncheck the "use strings as values" option and enter the index as numbers and then make a string to Decimal conversion.

    /Y

  • Get the index of the clicked on JButton

    Hi all

    I have a table of 11 JButtons.

    Notice of JButton [] = new JButton [11];

    I added the JButton to the addActionListener.

    Then in the ActionPerformed (ActionEvent ae) overrided method I use the

    If (ae.getSource == btnC [0])
    set of actions

    How can I deduct that JButton has been clicked.
    I have todo for all individual buttons 11
    How can I get the index of the button clicked!

    Please on your comment, an example would be better if its not not asking too much

    OK, here's an example of the first form (""-If your 11 buttons have 11 different functions, they each have a listener code dedicated ""):

    public class GodGamePanel extends JPanel() {
    
        public GodgamePanel() {
            Jbutton button1 = new JButton("Save the world");
            button1.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    world.save();
                }
            });
    
            Jbutton button2 = new JButton("Give up");
            button1.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    System.exit();
                }
            });
    
            this.add(button1);
            this.add(button2);
        }
    }
    

    Here is an example of the second form ("-if all the buttons have the same functionality, just on another entity (...)") Add another instance of the class of the listener even already using specific knowledge to an entity that has the code setting up the button'):

    public class DivinePunitionsPanel extends JPanel() {
    
        public DivinePunitionsPanel() {
            Jbutton button1 = new JButton("Destroy City1");
            button1.addActionListener(new CityDestroyerListener("City1");
    
            Jbutton button2 = new JButton("Destroy City2");
            button1.addActionListener(new CityDestroyerListener("City2");
    
            this.add(button1);
            this.add(button2);
        }
    
        private class CityDestroyerListener implements ActionListener {
            private String cityName;
    
            CityDestroyerListener(String city) {
                this.cityName = city;
            }
    
            public void actionPerformed(ActionEvent evt) {
                RocketPlant.nukeCity(getGpsCoordinates(cityName));
            }
        }
    }
    
  • How to get the 'index' of an associative array?

    Hello

    Is it possible to get the 'index' of an associative array?

    I saw say about 3000 ID.

    Corresponding to each of these identifiers, thre is a 'key' (the 'key' can repeat for different ID)... tell key1, key2, key3.

    Now, I want to show the top of page 8 keys ().

    Could you please tell me how can I do this?

    Concerning

    Don't know what you are exactly looking for.

    To get the index of an array of assotiative you should do something like

    SQL> declare
       type arr is table of number
                      index by varchar2 (5);
    
       var   arr;
       idx   varchar2 (5);
    begin
       --  fill the array
       for id in 1 .. 12
       loop
          var ('key' || to_char (id, 'fm00')) := id;
       end loop;
    
    --  get the keys
       idx := var.first;
       dbms_output.put_line (idx);
    
       while idx is not null
       loop
          idx := var.next (idx);
          dbms_output.put_line (idx);
       end loop;
    end;
    /
    key01
    key02
    key03
    key04
    key05
    key06
    key07
    key08
    key09
    key10
    key11
    key12
    PL/SQL procedure successfully completed.
    
  • How can I get the COMPLETE serial number to display? This number shows except for the 4 last digits.

    How can I get the COMPLETE serial number to display? This number shows except for the 4 last digits.

    Hi Infogoddess,

    Thank you for using communities Support from Apple! If you try to find the serial number of your iPod touch or another Apple product, you can find information and the steps in the following articles useful:

    iPod: how to find the serial number - Apple Support

    Find the serial number of your Apple - Apple Support product

    See you soon

  • get the index of an element of an array with the click of mouse

    Hi all

    I want to get the index of an item in an array when I click on that element. I have seen a few examples in the forum, but they do not work for me... Can someone please help me to do this. I enclose my vi here.

    Thanking you with impatience,

    Kind regards

    Nitz...


  • How to get the index of a button in the control array?

    Greetings,

    I have 3 parallel arrays - buttons containing a and the other two indicators a string containing.  I wish I could press a button and get the values in other tables.  How is that possible?

    (P.S.  Illustrations are great and welcome, but I don't have Labview on this computer, so I would appreciate in jpg or screenshots if possible.)

    Thank you!

    Altenbach says:

    Here's what I had in mind. Modify if needed.

    If you have the buttons to all wrong initalized, then you don't need to perform the do not equal to.  Just do a search with the NewVal.  The local variable to reset buttons must be wired to the OldVal.

  • Can I use my network wireless at home I don't have a problem, but when I use it at work I get the message window explorer cannot display the webpage

    Please help I can use my network wireless at home I don't have a problem, but when I use it at work I get the message window explorer cannot display the webpage and the worl tour plan has a red cross on it can you help me solve this problem

    Hi susanearle,

    You can try the steps in your previous thread about this problem?

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-networking/have-wireless-connection-can-only-connect-from/12a7163c-A54D-4894-81F7-bd4fb92b2da4

    Please let us know, thanks!

  • How to get the index of the selected field

    I create a ListField with field 2

    MyListField myList = new MyListField(app);
    MyListFieldCallback myCallback = new MyListFieldCallback();
    myList.setCallback(myCallback);            
    
    String field1 = new String("Division 1");
    String field2 = new String("Division 2");       
    
    myList.insert(0);
    myCallback.insert(field1, 0);
    myList.insert(1);
    myCallback.insert(field2, 1);
    myList.insert(2);
    

    I replaced navigationClick and I want to get the index of the field when the navigationClick is called

    public class MyListField extends ListField {
        public MobileApplication app;
    
        MyListField(MobileApplication app) {
            this.app = app;
        }
        protected boolean navigationClick(int status, int time) {
        if ((status & KeypadListener.STATUS_TRACKWHEEL) != KeypadListener.STATUS_TRACKWHEEL) {
            selectionPerformed();
            return true;
        }
            return super.navigationClick(status, time);
        }
        private void selectionPerformed() {
                    // HERE I WANT TO GET THE INDEX OF THE FIELD SELECTED
    
            app.popScreen(app.getActiveScreen());
        }
    }
    

    What code is needed where I have comments?

    Use ListField::getSelectedIndex

    -Maury.

  • How to limit the index field filter to display in standard integration page?

    Hi all

    I have a question here, how do I limit the index fields of standard display configuration check page? I noticed, there are also many fields unrelated to display standard failed in the page. Can I limit only the useful indexes appear in standard integration page? and how can I do?

    Thank you for your help.

    If you want to hide in the world, including all profiles too, you should be able to hide on the interface.

    Configuration Manager > Information fields > select > Edit > uncheck the box: turn on the User Interface > Ok

    When you do that, you may just want to remove the field.

  • How can I get the script to a Table?

    Hello world

    Greetings

    We can get the script from the procedure, function, package, and trigger data dictionary see user_source.

    Is he see everything in the script for the Table? If not possible how to get the script for a Table?

    IndiMinds wrote:

    Hello world

    Greetings

    We can get the script from the procedure, function, package, and trigger data dictionary see user_source.

    Is he see everything in the script for the Table? If not possible how to get the script for a Table?

    http://docs.Oracle.com/database/121/ARPLS/d_metada.htm

    DBMS_METADATA. GET_DDL

  • How to get the title of a table with FDK?

    How to get the title of a table with ad FDK C++?

    I did people. I get objects table paragraph and later the textual elements for each of them.

  • get the index of activeLayer

    I can't get the activeLayer index. I see that artLayers have a clue, but activeLayer seems to have only "itemIndex" which does not seem to do the same.

    You want to make an active layer by using its index or get the index of the active layer?

    To get a layer of India is:

    function makeSingleActiveByIndex(idx, visible) {
    
                var desc = new ActionDescriptor();
                var ref = new ActionReference();
                ref.putIndex(charIDToTypeID("Lyr "), idx)
                desc.putReference(charIDToTypeID("null"), ref);
    
                desc.putBoolean(charIDToTypeID("MkVs"), visible);
                executeAction(charIDToTypeID("slct"), desc, DialogModes.NO);
    
    };//end makeSingleActiveByIndex
    

    To get the index of the selected layers:

    function getSelectedLayersIdx() {
        var selectedLayers = new Array;
        var ref = new ActionReference();
        ref.putEnumerated(charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt"));
        var desc = executeActionGet(ref);
        if (desc.hasKey(stringIDToTypeID("targetLayers"))) {
            desc = desc.getList(stringIDToTypeID("targetLayers"));
            var c = desc.count
            var selectedLayers = new Array();
            for (var i = 0; i < c; i++) {
                try {
                    docRef.backgroundLayer;
                    selectedLayers.push(desc.getReference(i).getIndex());
                } catch (e) {
                    selectedLayers.push(desc.getReference(i).getIndex() + 1);
                }
            }
        } else {
            var ref = new ActionReference();
            ref.putProperty(charIDToTypeID("Prpr"), charIDToTypeID("ItmI"));
            ref.putEnumerated(charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt"));
            try {
                docRef.backgroundLayer;
                selectedLayers.push(executeActionGet(ref).getInteger(charIDToTypeID("ItmI")) - 1);
            } catch (e) {
                selectedLayers.push(executeActionGet(ref).getInteger(charIDToTypeID("ItmI")));
            }
        }
        return selectedLayers;
    }
    

Maybe you are looking for

  • Re: Brooded and configuration for Touchpad

    Win7 x 64L505 - 10 M It dishes all kinds of problems after an update of security windows for this system a few months ago. I put a backup of C:\ return, but various functions did not work.I have most of them are still working today. I installed Flash

  • Qosmio X 500-11 G - not bright screen

    Hi guys Two days ago, I purchased a Qosmio X 500-11 G of 1920 x 1080 Full HD, but I see that the images on the screen are not as brilliant as I expected. No idea how to tackle that?I tried F6/F7 but doesn't have much of a difference. THX/Red

  • try to install 4 GB of ram. Get the error «the file header checksum does not checksum» calculated

    Microsoft online tech help recommended I install 4 GB of RAM on my Dell Vista Home computer. The first stick fine boots. When I add the second stick the computer poster "the file may be damaged. The file header checksum does not match to the checksum

  • Audio doesn't work is not on the new Dell laptop

    I just bought a Dell inspiron with windows 8.1 5558 today. The laptop looks good, but I am facing 2 major problems. (1) a small cross in front of audio symbol indicating this as no output device is installed. Then the Control Panel indicates that NVI

  • BlackBerry App yet another problem of credit card

    A passport of Blackberry (running 10.3.1.1565) Try to buy apps world Blackbery and either get the "purchase has failed. Choose a different payment method"(with no error code) or the infinite transformation. I tried to add a paypal account, who has wo