Writing table to the selected line in the table table

Hello

im stuck on trying to display a line of data that I took from an excel file.

display just the data on an array of table has no problem, BUT when I use the Index table and Replace the function subset of table, no data out.

so, Table3 has the data I want but Table2 have no data at all.

IM using the Index table and the function Replace subset of table to allow me to SELECT the LINE I want to be shown on

any idea?

Hey!

Try this...

I use the array function to remodel to change the extracted Excel from 2D to 1 d. Then you can replace all right in your table.

-Rkll

Tags: NI Software

Similar Questions

  • 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

  • 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

  • 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-

  • 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/

  • How can I default first line below the selected line in the table of the adf

    Hello

    I use Jdeveloper 11 g,
    I created Adf quick query with table and changed selectionListener table as #{CustRMMap.onRMGroupNameChange}.
    and when I click on find fast query no row is selected.
    I want the first row to be selected / highlighted by default when I click search.

    Patel Imran

    You can also set an attributeValue in pagedef.xml
    bind this attributeValue with column of your table. This sets the value of the selected line to the variable attruibute.
    Will now link this with your desired component attributeValue.
    Put partial trigger on the component that should display this value.
    This will save you to write custom code and use the default table selection listener property, which marks the first default line.

    Apart from this, if you want to govern the first default line of managed bean selection use this code...

    + _Table = selectionEvent.getSource ((richeTableau)) richeTableau; + *
    + / / the model in the Collection is the object that provides the structured data.
    + / / for rendering table +.
    + TableModel CollectionModel = table.getValue ((CollectionModel)); + *
    + / / the ADF object that implements the CollectionModel is JUCtrlHierBinding. IT +.
    + / /is wrapped by the CollectionModel API.
    + JUCtrlHierBinding adfTableBinding = tableModel.getWrappedData ((JUCtrlHierBinding)); + *
    + / / Acess the iterator ADF, binding that is used with the binding table ADF +.
    + DCIteratorBinding tableIteratorBinding = adfTableBinding.getDCIteratorBinding (); + *

    + / / the role of this method is to synchronize the table feature selection +.
    + / / with the selection of the model of the ADF +.
    + Object selectedRowData = table.getSelectedRowData (); + *
    + / / cast of JUCtrlHierNodeBinding, which is the subject of the ADF that is +.
    + / line/a +.
    + JUCtrlHierNodeBinding nodeBinding = selectedRowData (JUCtrlHierNodeBinding); + *
    + / / get the key of the node binding line and set it as the current line in the +.
    + / / iterator +.
    + Key rwKey = nodeBinding.getRowKey (); + *
    tableIteratorBinding.setCurrentRowWithKey (rwKey.toStringFormat (true)); + *

    and another way on the right is a custom like this code:

    + public void setDefaultRow (int count) {/ / call this method your method of selection custom, rom pass the line of the line to select index. count = 0, will select first row + *}

    + try {+ *}
    Object oldRowKey = tblMag.getRowKey (); *
    + try {+ *}
    This.

    .getSelectedRowKeys () .clear ();
    *
    * +} catch (System.Exception e) {+ *}
    System.out.println (e.getMessage ()); *
    +}+
    This..setRowIndex (count);
    *
    RKS RowKeySet =. getSelectedRowKeys();
    *
    (RKS). Add(. getRowKey());
    *
    RKS =. getSelectedRowKeys();
    *
    +.setRowKey (oldRowKey); +

    * +} catch (System.Exception e) {+ *}
    System.out.println ("error:" e.getMessage ()); + *
    +}+
    +}+

    Hope this helps

    Concerning
    Maryline Roussel

  • 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;
    }

  • Toggle buttons control according to the selected line in the table?

    Hello

    I have used JDev 11.1.1.2.0

    On my main page, it has a query section and view the result to a component of the lookup table and also has functioning as (update/deletion) buttons in the toolbar.

    I want to toggle buttons operating according to some value of the selected line in the table, and I searched on the OTN forum, found more than issues like that, but seemed no found a good solution.

    The table is a unique and has a status column selection, its data type is integer, and I want to activate the buttons when the value of the status field of the selected line is 0 or 1, disable the buttons when the State value is other values.

    Code of the table as:

    < af:table value = "#{bindings." Var VO1.collectionModel}"="row ".
    lines = ' #{bindings. " VO1.rangeSize}.
    emptyText = "#{bindingsVO1.viewable?" '} ". No data to display. ': 'Access Denied. »} »
    fetchSize = "#{bindings." VO1.rangeSize}.
    rowBandingInterval = '0 '.
    filterModel = "#{bindings." VOCriteriaQuery.queryDescriptor}.
    queryListener = ' #{bindings. " VOCriteriaQuery.processQuery}.
    filterVisible = "true" varStatus = "vs."
    selectedRowKeys = ' #{bindings. " VO1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." VO1.collectionModel.makeCurrent}.
    rowSelection = "single" id = "resId1" >

    Operation code buttons like:
    < af:commandToolbarButton text = "Update" id = "ctb2" action = "editDAF" / >

    Any suggestions would be very helpful.

    Thank you
    zeroxin

    Hello

    bind to the attribute in the PageDef file for the status field. Then configure the PartialTriggers property button to point to the ID of the table. Of the disabled button property then points to the status as attribute link

    #{bindings.statusField.inputValue == 'value'}

    Frank

  • Highlight on the selected line disappear when af:table lose focus?

    Hello

    I have a strange problem:
    I have an af:table select single line based on the VO and an af:inputText in a jsf page.
    When I select a row in the table, then click on in the inputText at the entrance, the highlight on the selected line in the table disappear!
    The currently selected line is always a controlled beans, but it seems that it is not that any line is selected in the user interface.
    Is this a bug of af: table?

    My test page:
    < af:form id = "f1" >
    < af:panelGroupLayout id = "pgl1" layout = "scroll" >
    < af:table value = "#{bindings." Var ViewObj1.collectionModel}"="row ".
    lines = ' #{bindings. " ViewObj1.rangeSize}.
    emptyText = "#{bindings." ViewObj1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." ViewObj1.rangeSize}.
    rowBandingInterval = '0 '.
    selectedRowKeys = ' #{bindings. " ViewObj1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." ViewObj1.collectionModel.makeCurrent}.
    rowSelection = "single" id = "t1" >
    < af:column sortProperty = "EmpDeptid" sortable = "false".
    headerText = "#{bindings." ViewObj1.hints.EmpDeptid.label}.
    ID = "c8" >
    < af:outputText value = "#{rank." EmpDeptid}"id ="ot3">
    < af:convertNumber groupingUsed = "false".
    model = ' #{bindings. " ViewObj1.hints.EmpDeptid.format}"/ >
    < / af:outputText >
    < / af:column >
    < af:column sortProperty = "EmpHireDate" sortable = "false".
    headerText = "#{bindings." ViewObj1.hints.EmpHireDate.label}.
    ID = 'c4' >
    < af:outputText value = "#{rank." EmpHireDate}"id ="ot7">
    < af:convertDateTime pattern = "#{bindings." ViewObj1.hints.EmpHireDate.format}"/ >
    < / af:outputText >
    < / af:column >
    < af:column sortProperty = "EmpId" sortable = "false".
    headerText = "#{bindings." ViewObj1.hints.EmpId.label}.
    ID = "c7" >
    < af:outputText value = "#{rank." EmpId}"id ="ot6"/ >
    < / af:column >
    < af:column sortProperty = "EmpJob" sortable = "false".
    headerText = "#{bindings." ViewObj1.hints.EmpJob.label}.
    ID = "c1" >
    < af:outputText value = "#{rank." EmpJob}"id ="ot1"/ >
    < / af:column >
    < af:column sortProperty = "EmpLineid" sortable = "false".
    headerText = "#{bindings." ViewObj1.hints.EmpLineid.label}.
    ID = "c5" >
    < af:outputText value = "#{rank." EmpLineid}"id ="ot4">
    < af:convertNumber groupingUsed = "false".
    model = ' #{bindings. " ViewObj1.hints.EmpLineid.format}"/ >
    < / af:outputText >
    < / af:column >
    < af:column sortProperty = "EmpSex" sortable = "false".
    headerText = "#{bindings." ViewObj1.hints.EmpSex.label}.
    ID = "c6" >
    < af:outputText value = "#{rank." EmpSex}"id ="ot2"/ >
    < / af:column >
    < / af:table >
    < af:panelFormLayout id = "pfl1" >
    < f: facet = 'footer' name / >
    < af:inputText label = "Label 1" id = "it1" / >
    < / af:panelFormLayout >
    < / af:panelGroupLayout >
    < / af:form >

    Thank you
    660

    Hello

    This seems an expected behavior of the skin of the merger.
    The selected line inactive thoroughly clear yellow that is hard to recognize on some screens.

    solution:
    create a custom look (extend the skin of 'fusion') and create css, like this:
    AF | : the table-row data: selected: inactive af | : given the column cell.
    AF | : the table-row data: selected: inactive af | column: banded-data-cell
    {
    background-color: blue;
    }

    concerning
    Peter

    Published by: hofespet on November 6, 2010 12:45

  • ADF Table - View column value of the selected line, need help

    Hi all

    I am newbee in ADF and needed to get the value of the column in the selected line in ADF inputTest.
    (I tried to navigate link without success)

    Pls tell me is it possible without coding, that is to say using partialTrigger etc.

    Please indicate the steps to follow.


    Thank you
    Amit

    Hello

    I'm not clear on your condition, where is your inputtext, is it inside the table or just outside the table?

    From my understanding, I realized that you have a table and a text entry next to the table where you want to display the value of a particular column of a selected line. That's what you're looking for (in which case above suggested solution works) or something different?

    Jean Lou

  • See the of the selected line in the outputText

    Hi all

    I have table with multiple choices. I want to show not selected line in the output text and display a warning if the user select more than 10 lines. How can I do?

    Use code below

    privateList getSelectedList(String tableName) {

    RichTable rt = (RichTable)JSFUtils.findComponentInRoot(tableName);

    RowKeySet keySet = rt.getSelectedRowKeys();

    Iterator iter = keySet.iterator();

    iter = keySet.iterator();

    List list =newArrayList();

    while(iter.hasNext()) {

    list.add(iter.next());

    }

    returnlist;

    }

    Retrieves the size of a list and display the warning to the help link below.

    http://www.techartifact.com/blogs/2013/01/show-afmessage-programatically-in-ADF-techartifact.html

Maybe you are looking for

  • 29 "monitor ultra-wide angle and a Macbook of 2015?

    Someone tried to drive an Ultrawide 29 "monitor with the Macbook 2015 12" (more precisely the m3). I have a Dell U2913WM monitor and I was using the multipart Minix Neo C USB - C adapter, which claims to support up to 4K. However, when I plug all tog

  • The YouTube app has stopped working

    Hello I recently purchased Sony Bravia EX640, the Youtube app was working fine, all of a sudden it stopped working last week. I could search for videos and select this option, after that the black screen is appearning and nothing is coming... Can som

  • How can I scan from a Canon MX870 in El Capitan?

    Since 'up' ranking to El Capitan, I also lost my ability to scan directly from my Canon MX870 printer/scanner. This used to be flawless in previous versions of Mac OS. Now, the menu item (import scan) Preview is either gray, or I get an error message

  • I can't find Paretologic to uninstall.

    Separated from this thread. When I started my computer for the first time today, I got a window saying that Pareto Logic needed to be updated. I've never installed anything related to Pareto, then I wonder why it is installed on my computer. I can't

  • BlackBerry Smartphones WPA-2 Enterprise - success!

    Hi all The University I am studying has a WPA - 2 encrypted WIFI connection and at one point, I could not connect their connection unless I consulted as "guest". I had my laptop, which is entirely consistent with many, if not all the encryptions Wifi