change the order of a table with another table

I want to change the order of a 1 d table based on another table 1 d that specifies the order.  For example, I have a table including the following items: 12, 13, 14, 15, 16.  And I have another 1 d array that specifies the order of 3, 4, 0, 1, 2.  I want the table resulting in 15, 16, 12, 13, 14.  How can I do this?  It must be really easy.  Another example, I give myself a table in the order following 1,2,3,4,5,6,7 and I an order specifying the array containing the 0,6,1,5,2,3,4.  Therefore, the resulting table must be 1,7,2,6,3,4,5.  ???

It is, in fact, quite easy.  Put an "Array Index" inside a loop and thread the two tables in it.  Disabled automatic indexing on the input array.  Wire of the array element located on the border of the for loop, and you'll have the desired table.

Tags: NI Software

Similar Questions

  • How to change the value of an element with another element?

    Hello guys,.

    I now have two or three elements in my form page, according to an order of the day, I want to change (from disable to activate or vice versa), the values of all the other elements in this form...

    I thnk for this javascript is needed... but I'm new Bee so if anyone can help me with these...

    How do I? is - that someone has good example or any link...

    Please help me with this question... enjoyed

    thxs


    Kind regards
    GK

    Hello GA,.

    Try this:
    OnChange = "$f_DisableOnValue (this, 'Y', 'P1_DETAILS_YN');"

    BTW: You are missing a hook closing in your function. You must use FireFox and with the FireBug extension and you would have noticed it...

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • How can I change the order of songs in my list "to the top following" of Apple's music with the 10 iOS?

    Thanks for your help guys! :-)

    Hey Aktivoli,

    If I understand correctly, you use the Apple music app and want to change the order of the songs until the next.
    I recommend reading this article, it explains how to change the order in the Apple's music library and playlists.

    Swipe up on reading to display your queue up next, that lists all the songs that you have selected for the current playback.

    Drag the songs with to rearrange the order, or swipe to the left to remove a song you want to ignore.

    Use of music Apple in the music - Apple Support application

    Thank you for using communities of Apple Support. Have a good.

  • problem with changing the order of tab on tab control

    Hello

    I am aware that the same question has been asked over three years - but I can't yet find the problem in what I'm doing...

    Description: I have two controls tab, A tab with three tab and tab B with two controls on a Panel. For the following discussion, tab B is of no interest. Each tab control has several numerical indicators, of type integer and double. Now, I want to add a fourth tab control to A tab. This method works.

    Following and problematic stage, in the Publisher of the IUR I select the new tab (most right) and move two positions to the left. It's still ok until I try to display a numeric value of order of tab 3 (the new tab control is left to it). I get an error in calls to SetCtrlAttribute, complain about an invalid control ID... However, I didn't touch any control over the tabs, or add a new control. In addition, I did not touch the generated include file... Visual inspection did not show any changes in the include file (the new tab control is listed only when certain controls are added)

    Posting numbers on the first/far left tab control work only on 3 and 4 which are suitable for the new (and still empty) new tab will generate this error. Adding a control to the new label does not change the bahavior.

    Help is appreciated!

    Wolfgang

    Wolfgang,

    When you get the handle for your tab using GetPanelHandleFromTabPage:

    GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 0, & TabHandle);

    the third parameter is an index for the specific tab you want to address.  If you change the order of the tabs, you can change the index, too.  For example, assume that you have a digital control on the third tab from left to right.  You want to assign some value, so this, you:

    GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 2, & TabHandle);

    SetCtrlVal (TabHandle, TAB_numMyNumeric, 1);

    Now, you add a new tab to the left of the tab with the digital contorl.  The new tab is now index 2 and the original tab is index 3.  When you call:

    GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 2, & TabHandle);

    you get the handle to the new tab.  There is a control with the same ID as TAB_numMyNumeric, so that you get a runtime error.

    Personally, I like to use an enumeration to my tabs so I can keep the lines:

    enum {MY_FIRST_TAB, MY_SECOND_TAB, MY_THIRD_TAB,...};

    So if I redesign the tabs or add a new one I just re - order enums and everything works fine.  Also, I used the same names in my constants of tab, to help keep things straight:

    GetPanelHandleFromTabPage (MainPanelHandle, PANEL_FIRST_TAB, MY_FIRST_TAB, & TabHandle);

    Tony G.

  • How can I change the order of the elements in the "open with" context menu?

    I'm working on XP Prof SP3 and to change the order of the "open with" context menu.

    I like to make the most of my photos, I crop them optimal detail using a specific program for this. This program, I can access by right clicking on the photo icon by pressing H, to open the framework "open with" menu and then I have to scroll down to 6th place.

    You can imagine that if you do this for a series of hundreds of vacation pictures, you are quickly tired.

    Is there a way how I can change the sort order in the "open with" context menu, because the removal of everything seems not a too good idea.

    Is there anyone out there who can help me?  I thank in advance.

    Michael

    I'm working on XP Prof SP3 and to change the order of the "open with" context menu.

    I like to make the most of my photos, I crop them optimal detail using a specific program for this. This program, I can access by right clicking on the photo icon by pressing H, to open the framework "open with" menu and then I have to scroll down to 6th place.

    You can imagine that if you do this for a series of hundreds of vacation pictures, you are quickly tired.

    Is there a way how I can change the sort order in the "open with" context menu, because the removal of everything seems not a too good idea.

    Is there anyone out there who can help me?  I thank in advance.

    Michael

    This utility is supposed to do what you want, but I have not personally tried:http://www.lopesoft.com/en/fmtools/info.html

  • I created a 'film' in Windows Movie Maker with audio. I'm now trying to burn on a DVD in windows DVD creation, but the program will change the order of my photos. What I am doing wrong?

    I took pictures of a Picasa folder and created a "slideshow" with audio in Windows Movie Maker. It's over, but when I try and save it to a dvd using windows DVD create, change the order of my photos are randomly. Am I missing a setting? What I am doing wrong?

    It may be interesting to try to publish (Save) project in the. Film WMV
    format in a folder on your hard drive. Then import them. WMV file in
    Creating Windows DVD.

    Windows Vista - publish a movie in Windows Movie Maker
    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

    Movie Maker Vista - Edition
    http://www.Papajohn.org/Vista-publishing.html

  • Change the order of the components in FlowPane

    I'm interested, how I can change with mouse drag and drop the order of the components in FlowPane. I have an example that can work with TabPane and drag between two TabPanes tabs:

    public class DragPanel {
    
        private static final String TAB_DRAG_KEY = "panel";
        private static ObjectProperty<Tab> draggingTab = new SimpleObjectProperty<>();
    
        // Drag Panel
        public static Tab makePanelDrag(final Tab tabA, final Label tabALabel)
        {
    
            tabALabel.setOnDragDetected(new EventHandler<MouseEvent>()
            {
                @Override
                public void handle(MouseEvent event)
                {
                    Dragboard dragboard = tabALabel.startDragAndDrop(TransferMode.MOVE);
                    ClipboardContent clipboardContent = new ClipboardContent();
                    clipboardContent.putString(TAB_DRAG_KEY);
                    dragboard.setContent(clipboardContent);
                    draggingTab.set(tabA);
                    DragBuffer.setDraggingTab(draggingTab);
    
                    // For Java 8
                    // Make screenshot of the dragged component
                    //Image img = tabALabel.snapshot(null, null);
                    //dragboard.setDragView(img, 7, 7);
                    //tabA.getTabPane().getTabs().remove(tabA);
                    event.consume();
                }
            });
            return tabA;
        }
    
        // Drop Tab
        public static TabPane makeTabDrop(final TabPane tabPane)
        {
    
            tabPane.setOnDragEntered(new EventHandler<DragEvent>()
            {
                @Override
                public void handle(DragEvent event)
                {
                    /* the drag-and-drop gesture entered the target */
                    /* show to the user that it is an actual gesture target */
                    if (event.getGestureSource() != tabPane && event.getDragboard().hasString())
                    {
                        tabPane.setCursor(Cursor.MOVE);
                        // Add Glow effect when the mouse holds object over the TabPane
                        tabPane.setEffect(new Glow(0.5));
    
                    }
                    event.consume();
                }
            });
    
            tabPane.setOnDragExited(new EventHandler<DragEvent>()
            {
                @Override
                public void handle(DragEvent event)
                {
                    /* mouse moved away, remove the graphical cues */
                    tabPane.setCursor(Cursor.DEFAULT);
                    // Remove the Glow effect when the mouse is not over the tabPane with Object
                    tabPane.setEffect(new Glow(0.0));
                    event.consume();
                }
            });
    
            tabPane.setOnDragOver(new EventHandler<DragEvent>()
            {
                @Override
                public void handle(DragEvent event)
                {
                    final Dragboard dragboard = event.getDragboard();
                    if (dragboard.hasString()
                            && TAB_DRAG_KEY.equals(dragboard.getString())
                            && DragBuffer.getDraggingTab().get() != null
                            && DragBuffer.getDraggingTab().get().getTabPane() != tabPane)
                    {
                        event.acceptTransferModes(TransferMode.MOVE);
                        event.consume();
                    }
                }
            });
    
            tabPane.setOnDragDropped(new EventHandler<DragEvent>()
            {
                @Override
                public void handle(DragEvent event)
                {
                    final Dragboard dragboard = event.getDragboard();
                    if (dragboard.hasString()
                            && TAB_DRAG_KEY.equals(dragboard.getString())
                            && DragBuffer.getDraggingTab().get() != null
                            && DragBuffer.getDraggingTab().get().getTabPane() != tabPane)
                    {
                        final Tab tab = DragBuffer.getDraggingTab().get();
                        tab.getTabPane().getTabs().remove(tab);
                        tabPane.getTabs().add(tab);
                        // Tempolary fix
                        new Timeline(new KeyFrame(Duration.millis(100), new EventHandler<ActionEvent>()
                        {
                            @Override
                            public void handle(ActionEvent event)
                            {
                                tabPane.getSelectionModel().select(tab);
                            }
                        })).play();
                        event.setDropCompleted(true);
                        DragBuffer.getDraggingTab().set(null);
                        event.consume();
                    }
                }
            });
            return tabPane;
        }
    }
    
    

    The question is how do I get the position of the foresight of component the FlowPane and change the order when I drop the component?

    P.S

    I have a FlowPane with many small panels that are BorderPanes. I want to change the order of the BorderPanes with the mouse drag and drop. But I'm sure that this feature at the moment is not possible. So I think I can solve this problem in the other direction.

    I can insert component additional which will be inserted into the FlowPane and held the BorderPane:

    FlowPane-> component-> BorderPane

    I can add setOnDragDetected() and setOnDragDropped to the component in order to implement the transaction slip and fall.
    The question is which component will be suitable for this task? I need to make it transparent and it must be resizable auto because the BorderPanes can expand and shrink. Can you give me some advice?

    Concerning

    No idea why you think that you should add another component between each part of the border and the workflow pane. Why not just put the behavior of dragging on each side of the border?

    To change the order, just children of the pane flow and basically manipulate it like any other list, using (...) remove and add (...). Just be careful to remove the two nodes first, then add them after (so you do not violate the rules of the graphic scene).

    import java.util.Random;
    
    import javafx.application.Application;
    import javafx.collections.ObservableList;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.input.ClipboardContent;
    import javafx.scene.input.DragEvent;
    import javafx.scene.input.Dragboard;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.input.TransferMode;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.FlowPane;
    import javafx.scene.layout.Pane;
    import javafx.stage.Stage;
    
    public class DraggableFlowPane extends Application {
    
        @Override
        public void start(Stage primaryStage) {
            final FlowPane root = new FlowPane();
            final Random rng = new Random();
            final int NUM_NODES = 120;
            for (int i = 0; i < NUM_NODES; i++) {
                int red = rng.nextInt(256);
                int green = rng.nextInt(256);
                int blue = rng.nextInt(256);
                Node node = createNode();
                node.setStyle(String.format("-fx-background-color: rgb(%d, %d, %d);", red, green, blue));
                root.getChildren().add(node);
            }
            primaryStage.setScene(new Scene(root, 600, 500));
            primaryStage.show();
        }
    
        private Node createNode() {
            final BorderPane bp = new BorderPane();
            bp.setOnDragDetected(new EventHandler() {
                @Override
                public void handle(MouseEvent event) {
                    Dragboard db = bp.startDragAndDrop(TransferMode.MOVE);
                    ClipboardContent clipboard = new ClipboardContent();
                    final int nodeIndex = bp.getParent().getChildrenUnmodifiable()
                            .indexOf(bp);
                    clipboard.putString(Integer.toString(nodeIndex));
                    db.setContent(clipboard);
                    event.consume();
                }
            });
            bp.setOnDragOver(new EventHandler() {
                @Override
                public void handle(DragEvent event) {
                    boolean accept = true;
                    final Dragboard dragboard = event.getDragboard();
                    if (dragboard.hasString()) {
                        int incomingIndex = Integer.parseInt(dragboard.getString());
                        int myIndex = bp.getParent().getChildrenUnmodifiable()
                                .indexOf(bp);
                        if (incomingIndex == myIndex) {
                            accept = false;
                        }
                    } else {
                        accept = false;
                    }
                    if (accept) {
                        event.acceptTransferModes(TransferMode.MOVE);
                    }
                }
            });
            bp.setOnDragDropped(new EventHandler() {
                @Override
                public void handle(DragEvent event) {
                    boolean success = false;
                    final Dragboard dragboard = event.getDragboard();
                    if (dragboard.hasString()) {
                        int incomingIndex = Integer.parseInt(dragboard.getString());
                        final Pane parent = (Pane) bp.getParent();
                        final ObservableList children = parent.getChildren();
                        int myIndex = children.indexOf(bp);
                        final int laterIndex = Math.max(incomingIndex, myIndex);
                        Node removedLater = children.remove(laterIndex);
                        final int earlierIndex = Math.min(incomingIndex, myIndex);
                        Node removedEarlier = children.remove(earlierIndex);
                        children.add(earlierIndex, removedLater);
                        children.add(laterIndex, removedEarlier);
                        success = true;
                    }
                    event.setDropCompleted(success);
                }
            });
            bp.setMinSize(50, 50);
            return bp;
        }
    
        public static void main(String[] args) {
            launch(args);
        }
    }
    
  • Changing the order of dislpayed hbox/vbox

    Hi all

    I have a hbox container containing vbox, hbox
    function of a condition, I want to change the order of display

    How can this thing be made?

    Moshe

    Hello!

    To move around the setChildIndexuse children.

    So if you mean that you have a parent with 2 children HBox container, another HBox and a VBox, you should have to do this:

       ...

       ...

    And the following ActionScript you need to place in the IF statement or click on the button action that rearrange themselves in them:

    parentHBox.setChildIndex (childHBox, parentHBox.getChildIndex (childHBox) + 1);

    The example above has moved the child HBox as the VBox.

    Note: You can use more or less operations, for example if you want to move the VBox on the HBox for the example above MXML you would write:

    parentHBox.setChildIndex (childVBox, parentHBox.getChildIndex (childVBox) - 1);

  • Change the "owner" of a table?

    I tried searching the forums... and I'm almost embarrassed by my apparently stupid question, compared to very complicated questions others ask!

    I'm new to APEX/Oracle/SQL etc.! I'm working throughout the book 101 PL/SQL by Christopher Allen (I really learn a lot... but...)

    I need to get a table owned by SYS to belong to the TEST!

    I can't find a forum entry to do this... but my best invited would be something like:

    SQL > UPDATE DBA_TABLES
    OWNER = 'TEST '.
    WHERE TABLE_NAME = 'PLSQL101_PRODUCT ';

    But to be honest with you, I'm not sure this is the right place for it... I found elsewhere on the forum, I can also perform:

    SELECT OWNER, TABLE_NAME from ALL_TABLES
    WHERE OWNER = 'TEST ';

    OR

    SELECT OWNER, TABLE_NAME from DBA_TABLES
    WHERE OWNER = 'TEST ';

    I'm not totally screw up my instance... by updating the wrong table.

    Any help would be greatly appreciated!

    KSL.

    Furthermore, before I 'Post Message', my real problem is, I'm about to do an IMP of four .dmp files... I knew the idea of the tablenames/users, etc. files four dump...

    I want to assign these imported tables/indexes...etc. my user "TEST", so that they appear in the object view my APEX, so I can easily see the tables! I'm assuming that I use the "touser = TEST" in my order IMP; but I wanted to know how to change the owner, just in case that did not do what I expected!

    Change the "owner" of a table?

    Not a chance.

    I need to get a table owned by SYS to belong to the TEST!

    create table test. PLSQL101_PRODUCT in select * from sys. PLSQL101_PRODUCT;

    (and don't even think to change the data dictionary directly).

  • Cannot change the order of songs in my playlists on my new iPhone 7 (iOS 10.02). How can I fix?

    CAN I change the order on my MacBook Air when my phone is connected (but the changes are not published on my phone)

    Hello, wolfebait!

    Welcome to congratulations on getting a new iPhone and Apple support communities 7.  I see your message that you are having problems changing the order of song into playlists that you created, but it only happens on your new iPhone.  I have several playlists I created myself, and I sometimes have to change the order of songs as well.  I'm happy to help you with this.

    1. Open your music app.
    2. Type library on the bottom left.
    3. Touch Playlists.
    4. Press the Playlist you want to change (it must be one that you have created, as organized playlists cannot be changed).
    5. Press 'Edit' at the top right of your screen.
    6. You should now see red circles 'remove' to the left of each song and three horizontal lines gray right of each song.
    7. Press the grey horizontal lines with your finger and drag the song to the position in the playlist that you want it to be in.
    8. When you have finished editing, type "Done" in the upper right corner.
    9. Your playlist should now be in the new order that you chose!

    Have a great rest of your week!

  • Change the order of songs Itunes manually?

    I have iTunes 12 and it won't let me change the order of the tracks of an album in my library. Is it possible to change and how?

    May 2016 "I can't find where to change the view in each playlist" - https://discussions.apple.com/message/30221921#30221921 - "it's in the menu bar.  With the playlist selected in the window of iTunes in the menu bar, display-> display-> [select desired display]. "List mode is called"songs ".

    Apple simplifies navigation with iTunes 12.4 - http://www.macworld.com/article/3070462/streaming-media/apple-simplifies-navigat ion-with-itunes-12 - 4.html

    How can I view my mode music list in iTunes 12.4? - https://discussions.apple.com/thread/7564244

    You must select the column left heading if you are using the manual sorting.

  • I want to change the order that my 9 email accounts are listed in the left sidebar (folderpane?).

    Mac Snow Leopard
    24.5.0 TB

    Suggestions made to me in order to find the prefs.js file, but I can't (library/mozilla, library/application support/mozilla not here, nor in the search feature)

    Tried with display of cookies too.

    Really a pain I need more active accounts on open top but not enough space with less active accounts, stuck in the middle.

    No STREAM not RSS, local folders on bottom OK.

    Just want to change the order, but can't seem to find the solution.

    Free smile to one that helps me! Thank you

    Use this module.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/manually-sort-folders/

  • Change the order of pages when you create a photo book

    I create a photo book with Photos on my Mac.  Once a page is created, it is possible to move the entire page to a different section of the book.  In other words, to change the order of the pages after they are created.

    Yes.  In the pages of all see them click on the number under the thumbnail of the page

    and drag it to the desired location:

  • Change the order to print on a HP Deskjet 1010

    On the Advanced tab in the Options for layout, I don't have the choice to change the printing order.  I tried following the instructions given to someone else, but I don't seem to have the option "back to front".  I'm sure I'm in the wrong place, but I tried every tab I can find.  Thank you.

    Hello @chogekat,

    Welcome to the HP Forums!

    I understand that you don't have an option to change the order of the pages using the Deskjet 1010. If you do not have this option in the layout options, then you can not change the order of pages. What is your operating system on your computer? Windows or Mac?

    You can try to install another driver on your computer. If you have a WIndows computer, please follow this HP document to install another print driver in Windows 7 for a USB cable connection. Install a Deskjet 450, as it has an option to change the order of pages.

    Please post your results, I will be looking forward to hear from your part have a good night!

  • Change the order of the variable by number

    Working in 2013 Teststand on equipment that is shared by several developers.  It seems that something has changed with the way in which the variables are classified in the Variables pane, but cannot identify how to change back, or who may have changed.

    I have a list of FileGlobals which are numbered sequentially, (Test0, Test1, Test2, etc.).  Previously, they have been displayed in the pane in the same sequential order.  Now, the variables are classified based on the first digit (Test0, Test100, Test10, Test11... Test18 Test19, Test1, Test20...).  It is more difficult to go through the list in the order during debugging, especially since there are more than 100 of them.  Any ideas of how this could have been changed and how to change it back?  Thank you.

    GSinMN

    Not sure if it of right or not, but at the top of your variable component for each column, you can click on the column header.  It will change the order.  There are 3 modes.  If an arrow appears that means that the column is sorted from A to Z.  If an arrow appears it means that the column is sorted Z.-a.  If you do not see an arrow, it means that the column is sorted according to the index in which the variable exists in the file.  You can click on the column heading to change to each mode.

    Hope this helps,

Maybe you are looking for