reverse in the lines in a 2D-string table

Hello

I have a simple question.but kind, I tried many things and could not help. I need to reverse a 2D channels in rows.just table to make it clear, I do an example:

a, b and c

d e f

g h i

and I want to do

g h i

d e f

a, b and c

How can I do this?

Here's what I'd do.

Tags: NI Software

Similar Questions

  • remove the line spacing of a string

    In the attached VI, I expected my output to a long chain, but instead, it's a chain with what looks like inserted line breaks. This is my output looks like:

    xx xx xx xx xx xx xx xx

    xx xx xx xx xx xx xx xx

    xx xx xx xx xx xx xx xx

    and what I want is:

    xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx

    Is there an easy way to remove the line breaks?

    Thank you

    Just do a "find and replace String" with LF as search string, empty string (or probably a space if necessary) as string to replace and replace all instances set to true.

    Hope this helps

  • How to access all the lines one by one, a table ADF via managed bean

    Hi Experts,

    Hi I'm new in the ADF.

    Could someone help me to fix the case below?

    Scenario - I have a table called Test_T1 that have 4 columns C1, C2, C3, C4. Creation of EO, VO and AM for test_t1.
    When created in pages ADF, I selected the option "automatically exposed components UI in new managed bean" (mynewmanagedbean.java).
    Control data drag and drop Test_T1 table in the page as a table of the ADF.
    Set the properties is read-only C1, C2, C3 and C4 is an input text.
    Add after the table and attathed button action on the mynewmanagedbean.java bean managed.
    At the time of the Test_T1 page filled with a few No.. lines (such as 9).
    How can I access all the lines above through the key without selection of these.
    In fact, I want to print all the rows of the table in the log at the time to press the button.

    Thanks in advance.

    Sorry for the delay, the code was copied from another test case. You can work directly with the line...
    I created a new test case based on the departments of the HR schema table:

    import oracle.adf.model.BindingContext;
    import oracle.adf.model.bean.DCDataRow;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.share.logging.ADFLogger;
    
    import oracle.jbo.Row;
    
    public class DumpRows
    {
        private static ADFLogger _logger = ADFLogger.createADFLogger(DumpRows.class);
        public DumpRows()
        {
        }
    
        public String cb3_action()
        {
            DCBindingContainer bindings =
            (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding dcIteratorBindings =
            bindings.findIteratorBinding("DepartmentsView1Iterator");
    
            // Get all the rows of a iterator
            Row[] rows = dcIteratorBindings.getAllRowsInRange();
            for (Row row : rows) {
                String depname = (String)row.getAttribute("DepartmentName");
                _logger.info(depname);
            }
            return null;
        }
    }
    

    As you do not have the class of line interface build you must get the attributes in their names. Be careful here, because any misspelling is cought only when you run the application.

    Timo

  • How to hide and show based button if the line is selected in a table

    Hello

    IM pretty new to apex. I use version 4.1. I have a tabular form and I want to do is only have the button Show delete if I select a row in the column [line selector]. Is this possible using a dynamic action? I tried this way without success. Please help or let me know if you need more information.

    Thank you

    Do you mean if the box is checked in the line?

    Assign a static ID for the button Delete, for example MY_DEL_BTN. Search for 'Static ID' in the attributes of the button section.

    If so, do an advanced Click-based dynamic Action and a jQuery selector. Generally, this element is the name "f01" but, sure. Assuming that it is "f01" then your jquery selector would be:

    input[name="f01"]
    

    define the scope of the event live.

    Your dynamic action will trigger JavaScript. (BE SURE TO DESELECT FIRE ON PAGE LOAD). To make sure that you have the jQuery selector right, initially just to put a pop-up message in the JavaScript.

    alert('You Clicked the Row Selector!');
    

    Run the page. Click on the line selector. If you get the noise until you have specified the jQuery selector correctly. Yay!

    Then, assuming the above is correct. You can now determine if all have been selected.

    Now, set it to SELECT FIRE on PAGE LOAD (you want deleting DialogResult.Cancel when you open the page).

    Change your JavaScript like this:

    var checkedCnt = $("input:checked").length;
    
    if( checkedCnt > 0 )
    {
       $('#MY_DEL_BTN').show();
    }
    else
    {
       $('#MY_DEL_BTN').hide();
    };
    

    -Joe

  • JavaScript - how to refer to the line/field directly above a table

    I have a tabular presentation this tab of people through data entry fields

    some of the data is inserted before when the page is loaded

    However when they tab for a certain area I would like only to copy the data from the same field in the line above

    at the point where they (OnBlur) tab out of the field, I copy the contents of a Page element, and then I tried to copy it in when the field gets focus
    but he doesn't seem to like an OnFocus and OnBlur an in the same field? is this correct?

    So if I could reference the field above I could copy it directly, I've used the reference nextsibling for the fields in the same line, I was wondering if there was something different

    Thank you very much

    Chris

    Hi Chris,

    The onfocus and onblur should work ok on the same ground. You will be perhaps easier to use the attribute 'name' instead. This allows you to refer to the collection of fields of the same name, working would out which one is the current field and then look at that before that. I've done here, in the SAL column: [http://apex.oracle.com/pls/otn/f?p=55989:3]

    In region Header region, I have:

    <script type="text/javascript">
    function copyPrevious(o)
    {
     var x;
     var v;
     v = "";
     var f;
     f = 0;
     if (o.value == "")
     {
      var oName = o.name;
      var oID = o.id;
      var items = document.getElementsByName(oName);
      if (items)
      {
       for (x = 0; x < items.length; x++)
       {
        if (items[x].id == oID)
        {
         if (x > 0)
         {
          f = x - 1;
          break;
         }
        }
       }
      }
      if (f > 0)
      {
       o.value = items[f].value;
      }
     }
    }
    </script>
    

    and as attributes of the element of the SAL column, I have:

    onfocus="javascript:copyPrevious(this);"
    

    Andy

  • identification of the line-click button in af:table

    I have an af:table with 1 column contains buttons. By clicking on each button I want to take a few steps. How can I determine which button has been clicked (which line)?

    his project faces an adf.

    thnks

    Kamal,

    If you use the binding of the ADF layer (that is, if you are using a data control), then Yes, you can use the referenced code earlier in this thread.

    If you do not, then what you could do is to use the tag [url http://www.javabeat.net/tips/42-fattribute-tag-in-java-server-faces-jsf.html] of f: attribute on your command button to add an attribute to your button containing the value you need.

    John

  • Highlight the line on slot form of table

    I would like to be able to highlight a row of data on a form in a table based on a column of some data. I found many here messages that reference standard reports, but is there a way to highlight an entire line of data based on some criteria of tabular form?

    Thank you!

    A proposal, you have removed the standard formatting for other lines by crushing. On the top of my head, you should leave the standard formatting in first position and add a second condition for your highlighted line.

    Gus...
    Please mark this and any other position as useful or correct
    ;-)

  • Not able to get all the lines of business by program object

    Hello

    I use code below to get all the lines of a business object, but this code is back only 1 row is the first row of the business object.

    Please help me in this to be able to get all the lines.

    public String updateEmployee (String oldName, String newName) {}
    Rank [] is getInsertViewObj1 () .getAllRowsInRange ();.

    int j = row.length;

    for (int i = 0; i < j; i ++) {}

    String name = (String) row [i] .getAttribute ("Employeename");

    {if (OldName.equalsIgnoreCase (Name))}

    row [i] .setAttribute ("EmployeeName", NewName);
    getInsertViewObj1 () .getApplicationModule () .getTransaction () .commit ();
    break;
    }

    Hello

    Before calling getAllRowsInRange(), use vo.setRangeSize(-1).

    Thank you

  • Can not access the rows of an item of table no-netsed in execution of the embedded R

    Hi all

    I am running a script R (R running embedded) oracle database

    I use under request

    Select *.
    table (rqEval (cursor (select 'divider' 50, 500 "numDots" of the double),))
    "select 1 id, 1 double val,"
    'myRandomRedDots2'));


    I want to save the result in a variable. So under anonymous block has written


    declare

    ID number (10);

    Val number (10);

    Start

    SELECT id, val in id, val

    table (rqEval (cursor (select 'divider' 50, 500 "numDots" of the double),))

    "select 1 id, 1 double val,"

    'myRandomRedDots2'));

    end;

    /

    But I get the error "can not access an element of no nested table lines.

    The one you suggest please how to fix this.

    Thank you

    Billa


    Billa,.

    You see the error "can not access the lines of a no nested table element" of PL/SQL, because rqEval (..., ' select 1 id, 1 double val ',')

  • Go to the new line with RT Debug String

    Hi all, is it possible to move to a new line using RT Debug String.vi?

    Thank you

    Claudio

    you're right, I misunderstood. have you tried to use the '\n' as explained in the help?

  • How to concatenate strings with the lines of a text file

    Hello
    I tried concatenate strings with the lines of a text file, but something is wrong with my code and I belive is the agruments I use in the cycle for. If anyone can help me I will appreciate it very much.
    My code is:
    [code]@echo off
    the value "input=C:\Users\123\Desktop\List.txt".
    for /f "usebackq tokens = *" % in (' input % ') do)
    the value 'str1 = C:\some directory\ ".
    the value ' str2 = %% ~ F '.
    the value "str3 = .pdf".
    the value "str4 = str1% str2% str3%.
    echo.%STR4%
    ) [/ code]
    and the text file is something like:
    121122 [code]
    122233
    123344
    124455 [/ code]
    But I get only one wrong answer and I have to run it like 3 times to get a real result and it is a mistake, the first two are empty spaces and gives the third one as the last line of the text file but repeated n times, where n is the number of lines in the text file.
    Result:
    [code] C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\Users\123\Desktop>[/code]
    So if anyone has an idea about what is wrong please let me know.
    Concerning
    -Victor-

    Hi Victor,

    This forum is dedicated to the support of the Office of consumer Windows (fonts, colors, personal settings).  Since your question is about programming and usually outside the context of most of the customers, I suggest you post your question in the forums as http://msdn.microsoft.com - the Microsoft network to users will be more adapted to help you in your quest.
  • Unit test: disassembly of the table or restore the line failed: ORA-06502: PL/SQL: digital error or value: string buffer too small ORA-06512: at line 22

    Is any idea available in the process of disassembly of the table or restore the line to line 22?

    I see a bunch of discussions on the subject, but no clear solution/answer...

    What could be the causes of this error?

    I had two process of disassembly on the level now, and one of them had failed with this error. Displacement of the failure of the process of disassembly compared to the level of the suite for the level of performance of test unit solved the error for a while, but after some more dragging the process of disassembly of the table (with about 500 cases) is permanent.

    Please advise...

    Thank you

    Val

    Well, had to create a bug officially... I hope this helps...

    Bug 19696042 : UNIT TEST: disassembly of THE TABLE or LINE RESTORE failed: ORA-06502: STRING BUFFER TOO SMA

    Thank you

    Val

  • A string literal must be completed prior to the line break

    I just started learning flash so I suffer some of the most difficult problems that beginners have. I copied code from a tutorial only I seem to have problems with strings when I use line breaks. Even by putting:

    var quoteContent:String = "the question of if.
    This ";

    generates this error:
    'A string literal must end before the line break.
    or
    «Syntax error: expected semicolon before plusassign.»

    everything that's want to say...

    Does that mean that in CS4 that line breaks in strings are not allowed? I also tried the concatenation channel lines together using the += but who was not working and was tedious. In addition, adding \n at the end or at the beginning of lines doesn't seem to work. Why is this a big deal for flash?

    Only a string without newlines works.

    Quote:
    Posted by: Andrei1
    As the indicated error AS3 does not allow line breaks in the assignment of the string and the string should end with a quote on the same line, he started. In other words, the string can be on a single line only.

    Thanks Andrei1. For Actionscript 3 can't make multiline in all chains. Looking at this new I can see why it happened. The original string had several lines in there but no line breaks. I then turned off Word wrapping to diagnose the problem. My own line breaks were what caused the problem.

    I realize that it could not be a simpler problem to work but it took a while to diagnose because of the useless error message.

    Solution: Put all your channels on 1 line and turn the enveloping Word by going to the drop down in the upper right panel actions and clicking (ctrl + shift + w) line.
    Line numbers will allow you to see if you have line breaks where you shouldn't.

  • model: write on the lines.

    I have a template that I use for a project. The model has a question, then a line after him tap. The line is thicker than the line when point out you something you typed. It looks like this.

    Question: _

    When I click on the line to write my answer, he puts the cursor in front of the line and it repels, when I type my response. My answer is not underlined, and I have to click on make you stressed. The underlined part is not thick at one supplied with the model and it does not connect to it so it looks bad. How do I just click on the line and write my answer without all this trouble?

    Thank you

    If you replace each line object with a string of space formatted with an underline and marked as placeholder text (Format menu > advanced > define as placeholder text), I think it should work as you wish.

  • Build table 2D-the only condition of case string

    Hello

    I'm having a problem when I am trying to build a 2D of the elements of the string table. Here's basically what I'm doing:

    I'm loading the tables in different text files (Session_001.txt, Session_002.txt, etc.) and concatenate into 1 big table.

    On each line of text Session files, there is the session number, various characteristics of hockey sticks, and then a couple results.

    I want to be able to select the various features and then display the corresponding results. Currently, I'm working on the selection of the Session, and when I get this working, the rest would be similar (I guess).

    The problem I have is that when I select the sessions that I want, the Array3 resulting (with all data) is filled with empty lines (table 1 d of the empty elements). I had the same problem when display a table 1 d (table 2) coming to show what Sessions had been selected, but I managed to fix that by searching for and deleting empty elements.

    The problem lies within the structure of matter I. I compare all the elements in the first column of my huge 2D array with each number of the selected Session, and when it is 'true', that I keep the current line to go to table 3. If it is "false", nothing should happen (I have a registry change through my case 'false', but a line of empty strings is added to the table.

    What Miss me?

    I know this probably sounds very confusing, so I join you the only VI and a zip containing the VI and my text files.

    Thank you!

    Off topic (Finally, still on the topic of my VI), it will be possible to assign a different color for each type of stick (MX3, APX3) or the different type of marker for different types of shots (WS, SS), etc., when I want to display the results on the same graph? If not, stop now and I'm going to Matlab.

    Oh my... Equal to true. I'm so ashamed.

    I just started Labview on my internship 2 weeks ago. There are probably several simplifications I can do for my screws, but as long as they work and do not burn my laptop, I agree.

    With respect to the conditional tunnel, I n, t really know to use it yet, but I found the problem with my registry to offset. I created a 2D array empty outside the two loops and added a registry to offset. I then build I tried to rely on another thread.

    Resolved VI is attached to anyone who cares

Maybe you are looking for