under select lines in table 2D

I have ascii files that contain rows of data a lot (up to 500,000). The first element of each line can be a number or a text. I'm writing a VI that reads the file Kevin in a table (using the FIle.vi worksheet reading) and then 'analysis' table 2D resulting so that all the lines that begin with a number spend a sub-table and all lines starting with text go to the other. If in the extract below I'd end up with a 4 c by 10r table with all 'digital' lines and c 11 by 4r table with all "text lines" in there.

15764226 242,5 285,3 1379.0
15764230 242,6 285,5 1379.0
15764234 242,7 284,0 1379.0
15764238 243.1 282.5 1378.0
EFIX 15764010 15764238 232 239,1 R 282.7 1381
SSACC R 15764242
15764242 243,3 278,9 1378.0
15764246 247.3 272.6 1375.0
ESACC 15764242 15764246 8 R 243,3 278.9 247.3 272,6 0.25 47
SFIX R 15764250
15764250 247.1 272.0 1373.0
15764254 247,0 271,7 1361.0
15764258 246,7 271.6 1357.0
15764262 246,6 271.6 1354.0

I've made some progress - the vi below reads the data and then spits out all the numbers in the first column in a subarray. I can't just work on how to extract all the data for each row, not only the value in the first column. I joined a massive example of ascii file trunacted.

Pointers are much appreciated!

Good point Alexander, I thought he was only interested in the first column.

It is a simple change. Shift table simply change the two registers in 2D

Tags: NI Software

Similar Questions

  • Selected line AF:table see, when the color

    Hello

    I put some color on the column of my table with this method:

    public String getConditionalBackgroundColor() {}
    System.out.println ("WW:" + executeValueExpression ("#{rank.")) (OvruLibelle}') + "-" + getBindingAttributeValue ("OvruLibelle"));
    String res = "";
    String color = (String) executeValueExpression ("#{rank.") OvrtColor}");
    If (color is nothing)
    Color = "";
    If (color.equalsIgnoreCase ('green'))
    RES = res + "background-color: lightgreen;" \n » ;
    ElseIf (color.equalsIgnoreCase ("blue"))
    RES = res + "background-color: color lightblue;" \n » ;
    return res;
    }

    But now I don't see when a lines which is colorful, is selected...

    I can't find a solution... I would like the line becomes blue when selected, as before...

    Kind regards
    Julien

    Hello

    I think you want the selected lines to bottom right blue color?

    If Yes, you can override the default property that is given for af | : the table-row data: selected

    AF | : the table-row data: selected af | : given the column-cell, af | : the table-row data: selected af | column: {banded-data-cell
    make-weight: bold;
    color: Blue;
    or
    background-color: blue;
    }

  • First line of table is displayed as selected always what application load.

    Hello..

    I have a table with a few lines in it. When the application is loaded as the first row of the table under the selected shape always appears. I don't want one of the lines to display under the selected name.

    How can I avoid this?

    My version of jdev 11.1.1.5.0

    Published by: Lovin_JV_941794 on March 12, 2013 02:13

    Hello

    You can remove the attribute

    selectedRowKeys = ' #{bindings. " XXXX.collectionModel.selectedRow}.

    This would ensure that there is no selected line persisted. Alternatively, you can paste the code jspx also for the best answer.

    ~ Abhijit

  • Enter the selected line only an editable af:table ADF

    Hello

    We have an obligation to engage only the selected lines in a table. All lines in the table must be modifiable. There should be a 'Save' button in a column that has to save the selected line when you click it.

    Could you please share your comments/suggestions.

    Environment:

    JDeveloper and ADF 11.1.1.7

    Thank you

    Srikanth

    Maybe you can add the attribute transitional to EO as an indicator whether the line should be validated in db or not, override EOImpl.doDML () and skip super.doDML () If this attribute is not set.

    Dario

  • I'm opening table row in a popup with the help of change. If I opened a line to edit, and then if I cancel the popup and if I open some row of the table, then instead of the newly selected line diff, previously selected line becomes open question. Help, p

    @Code is:-

    I have a panelCollection which is having an ADFTable (VO) and < f: toolbar > < coomandToolbarbutton > IE change by clicking on modify the selected line of the tbal adf becomes open in edit mode in a popup. Buttong ActionListner change creation popup

    {} public void handleEdit (ActionEvent actionEvent)
    Add the code in the event here...

    Line selectedRow =
    (Row) ADFUtils.evaluateEL ("#{bindings.") BtEsAwardsSchemeSetupVO1Iterator.currentRow}");
    Line selectedRow =
    (Row) ADFUtils.evaluateEL ("#{bindings.") BtEsAwardsSchemeSetupVO1.currentRow}");

    Tips RichPopup.PopupHints = new RichPopup.PopupHints ();

    this.getAddEditpopup () .show (hints);
    }

    Pupup has two buttons for Submit and cancel.
    Click on Cancel button on the popup, it id hide. The question is, suppose that the table is to have 4 lines so if I first select third row and click on change that becomes open editing on a popUp, but if I click on the Cancel button and their selection a few rows of table (Say first line), the previously selected (3rd row) rank only becomes open again in popup instead of the newly selected row.
    Cacel code

    {} public void handleCancelAwards (ActionEvent actionEvent)

    Add the code in the event here...

    ADFUtils.invokeEL ("#{bindings.") Rollback.Execute}");

    this.getAddEditpopup (.cancel ()); [I also tried with hide and seek but not worked]

    }

    Thanks in advance and thanks for your time

    It may be a problem with the combination of: immediate = true, rollback, and af:popup.

    You can try adding af:resetActionListener to the Cancel button.

    BTW, your managed bean is in the package that start with uppercase ("Bean"). (if you should refactor this to "beans" (for example))

    Dario

  • Line layout selection/evidence code table of the adf

    Hi all

    I use Jdev12c and you want to programmatically select a row in a table. It's the line should be highlighted and the graph of the child should also be updated to the selected line. If I can get one of these features that is also sufficient.

    I have DCIteratorBinding instance for the table, but do not receive good method/how to get there. The size of table is 20.

    Thank you!

    viewObject.setCurrentRow (row); did not work for me it turns that I greeted the multipleSelection on the table and this is the main reason for which even after refresh of the VO of the selection of some random lines in the main table is not removed even if detail table/chart refreshes to display the data corresponding to the first line of the main table.

    So I removed the selection of the main table (using following code) gives me the very view that when the page is loaded first time (i.e. no line selected in the child master and graph/table table were given corresponding to the first row in the main table).

            UIComponent component = JSFUtils.findComponentInRoot (tableId);
            If (component instanceof richeTableau) {}
                Table richeTableau = component (richeTableau);
                Set of rows RowKeySet = table.getSelectedRowKeys ();
                rowSet.clear ();
                System.out.println ("removed from the line selection table:" + tableId);
  • before the "recalled" in the table selected lines

    12.1.3 JDEV

    It is difficult to explain the problem I see. So, I use a page to explain.

    I have a page with a few fields like these. The Magnifier is related to a taskFlowCall.

    PickListFields.jpg

    When click on the magnifying glass, pilot field, a pop-up screen will appear. The user clicks on search and retrieve a few results. The user selects then a few lines of the output. Click OK to close the pop-up window and return the results selected to pilot field.

    PickListPopup.jpg

    Now, the user clicks the magnifying glass on the field of the expedition. a shortcut for sending screen. Search to retrieve a few lines. Notice: two rows on the result table are highlighted when the first returned search results. They seem to be selected, but not really. Now, if the user selects OK to return, the rows returned are empty. The table of results of research somehow 'remember' the previous index of the selected row.

    If the user selects the other lines of the search results table and click OK, the rows selected by the user are returned correctly.

    PickListPopup2.jpg

    These windows two popup called the taskFlowCall even with different input parameter values.

    No idea how to solve this problem?

    Thank you.

    You can try to clear the selected rows from the table in your managed bean and run this code entering into the taskflow.

    RowKeySet ps = this.dynamicTable.getSelectedRowKeys();
    ps.clear();
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.dynamicTable);

    In addition, mention the similar question previously asked: remove highlighting from the selected line in the table

  • Updated all the selected lines in a table.

    Hello

    Jdev Version 11.1.2.3.0

    I'm trying to update all the selected rows in a table with several choices.

            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            ViewObject vo = am.findViewObject("RegistrationHistory1");
            RowKeySet selectedRegistrations = historyTable.getSelectedRowKeys();
    
    
            if (selectedRegistrations != null) {
                Iterator iter = selectedRegistrations.iterator();
                    while (iter.hasNext()) {
                        Object facesTreeRowKey = iter.next();
                        Row[] row = vo.findByKey((Key)((List)(facesTreeRowKey)).get(0), 1);
    
    
                        if (row != null && row.length == 1) {
                            Row r = row[0];
                             r.setAttribute("Attr", "1"); 
                        }
                    }
              }
    

    But after I put the attribute on the line. My iterator ignores most of the lines and they don't last updated.

    It works very well for the removal of the line well.

    Any suggestions?

    It turn out that I got a try catch and in the catch, I had a log (e.printStackTrace ()) and I do not see a single line in the diary saying ConcurrentModificationException appearing all the time.

    Looks for read-only access to an attribute or delete lines is OK to iterate over the selected lines, but it's different for the modification of an attribute.

    The code that worked:

    Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    Entry DCIteratorBinding = bindings.findIteratorBinding ("RegistrationHistory1Iterator");

    RowSetIterator regRSiter = regIter.getRowSetIterator ();

    RowKeySet selectedRegistrations = historyTable.getSelectedRowKeys ();

    Object [] keys = selectedRegistrations.toArray ();

    for (Object key: keys) {}

    Line currentRow = regRSiter.getRow ((Key) ((List) key) .get (0));

    removeOrModify (currentRow);

    }

  • [JDev12c, ADF] How to get the value of a field from the selected line in af:table and...

    Hallo,

    I want to double click on a line of an af:table to call a page that displays a form (based on a View object) with the details of the selected line.

    I need to go to the second page the value of a field on the line that is selected on the first page.

    How can I do this? In particular, how can I get the value of a field from the selected line? How can I call the second page on double-click on the af line: table?

    Thank you

    F.

    Why would user, you need to pass a value of the line to the shape?

    The framework selects the line you want to display in the form. All you have to do is to show the form with the selected line. It is the framework automatically as long as you use e vo even the same data control.

    Timo

    Post edited by: Timo Hahn
    And the handling double-clicks is described here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf

  • Some columns of the values of the selected line returns NULL in the table of the adf.

    Hello..

    My version of jdev 11.1.1.5.0

    I have a vision with some columns. This view is mapped to a table of adf with some of the displayed columns. My task is to get the column values selected line (including the values of the column not displayed).
    But I'm certain values such as null, although there are values present when I run the query from the view.
    My code:
    DCIteratorBinding tableVO = ADFUtils.findIterator ("myVO");
    ViewObject voTableData = tableVO.getViewObject ();
    Line rowSelected = voTableData.getCurrentRow ();


    + / / codeto display column and the values +.
    int x = 0;
    * for (the names of the objects: rowSelected.getAttributeNames ()) {*}

    * for (int i = x; i < rowSelected.getAttributeValues () .length; i ++) {*}
    * System.out.println (x + "." + name + "=" + rowSelected.getAttribute (i)); *
    break;
    *}*
    x ++ ;
    continue;
    *}*


    MY table:
    * < af:table value = "#{bindings.myVO.collectionModel}" *.
    * var = "row" rows = "#{bindings.myVO.rangeSize}" *.
    * EmptyText = "#{Bindings.myVO.Viewable?" "{'No data to display.': 'Access Denied.'}". *
    * fetchSize = "#{Bindings.myVO.rangeSize}" *.
    * rowBandingInterval = "0."
    * filterModel = "#{Bindings.myVO.queryDescriptor}" *.
    * queryListener = "#{Bindings.myVO.processQuery}" *.
    * filterVisible = "true" varStatus = "vs."
    * selectionListener = "#{myBean.method_onRowSelect}" *.
    * rowSelection = "single" id = "t1" styleClass = "AFStretchWidth."
    "* partialTriggers =": sbcClose: sbcOpen: socWarehouse. "
    * inlineStyle = "height: 217px;" / > *.


    Thank you

    Question: the attributes are not null in the DB?
    The attributes are part of the past of the query select?
    And they are part of the binding of the tree?

    Timo

  • After dragging table how can we single selection line enabled?

    Hello world

    I dragged a single table and created two buttons. Now I need the table to be selected (while dragging I don't check this value)
    After dragging table how can we single selection line enabled?

    Thank you.

    Hi Kumar,

    Add this attribute to the af: table:

    rowSelection="single"
    

    AP

  • How to create table selectable line or not based on the value of the line

    Hello.

    JDeveloper 11.1.1.2

    Is it possible to make a selectable table row or not based on a value in the line.

    That is to say. lets say that the row contains a Boolean LOCKED = TRUE.
    This line should not be selectable.

    A line whose value LOCKED = FALSE should be selectable.

    / Erik

    Erik,

    No particular reason to disable a selection of lines for a particular line? If I'm an end user, I would be clicking on the same line of thought again and again my mouse does not ;) (call me dumb :)). How do you differentiate this line (using inlineStyle / styleClass) based on the value of line? In addition, you can disable the other buttons when a row with a particular value is selected (so that the user knows that the selected line is not treatable).

    Arun-

  • How to select the lines/odd table...

    How to select lines / odd in a table?
    Help, please.

    Published by: vaibhav on May 7, 2012 05:30

    This can be done by using the function mod like this:

    For even rows
    Select * from (select rownum rn, nom_table.* from tableName) where mod (rn, 2) = 0;

    For the odd lines
    Select * from (select rownum rn, nom_table.* from tableName) where mod (rn, 2) = 1;

  • Restore the value of the selected line in the editable Table.

    Hello, I use Jdeveloper 11.1.2.1.0.

    My problem is:
    1. Select a line in the editable table.
    2. change the value inside elements of the af:inputText of columns.
    3. tap on restore.
    4. the values of the selected line remains the same.

    If I select another line, before the restore, the restore will work as expected.

    I want to when you press the button cancel the values of the selected row to be rollback-ed as well.

    Set the immediate on all the inputTextFields in the table and it worked.

    Thank you.

  • Add line before or after the selected line in af:Table

    Hello

    Please let me know how we can add a line before or after the selected line in the display: table.

    Currently I have a table with 2 buttons on toolbar. 1. Add 2. Add after.

    The user selects the row and click a button AddBefore and after... then, a blank line must have added in the table according to the clicked button.

    Please suggest me your entries.

    Thank you
    Kiran

    chk this
    http://mjabr.WordPress.com/2011/07/02/how-to-control-the-location-of-the-new-row-in-aftable/

Maybe you are looking for