How to highlight the selected line in an interactive report in apex5?

Hello

I want to emphasize the selected line in the report by changing the background color of the line. Basically, I want to do this. I really want to do is, select a row in the report and according to the selected line, I want to retrieve other data to another interactive report on the same page. So, how can I do this?

Hi geslin,.

Garza says:

But here shows a link to another page or something like that. But I don't need that. I just want to show when the user selects a specific row by clicking on this line, and it should show that it has been selected by changing the color of the line and after having extracted a few hidden field and according to those column data display data on another report on the same page.

Check your Application-> Page 2 30870. I've set up a dynamic action to reach the line highlighted when selected.

Here are the steps to achieve the highlighted line:

  • Changed the definition of class employee culminating point to CSS-> section of the line on the page:
.highlight-employee
   {
    background-color: blue !important;
    color: white !important;
   }
  • Commented the code written in JavaScript-> Execute JS when the section of the page to load the page.
  • Edited the ROWID of your interactive report column and set the following properties for 'column link:

Text link: #ROWID #.

Link attributes: id = "" #ROWID # "class ="monlien""

Target: URL

URL: javascript:void (0);

  • Dynamic action created with the following properties:

Name: highlight_selected_row

Event: click on

Selection type: jQuery Selector

jQuery Selector: a.mylink

Action: Run the JavaScript Code

Fire on loading the Page: No.

Code:

var row_id = this.triggeringElement.id;
$('#P2_NEW').val(row_id);
$('#'+row_id).parent().closest('tr').find('td').addClass('highlight-employee');

Scope of the event: Dynamics

Kind regards

Kiran

Tags: Database

Similar Questions

  • How to make the selection line more dark?

    It's my first time to use Photoshop CC, however, it is very difficult for me to see the selection line when I use "selection tool" to select an area, it is possible to adjust the darker line?

    Currently, I don't know of a way. However, I recommend that you post a suggestion on what makes the color and thickness of the pieces in the suggestion of photoshop forum.

    Community customer Photoshop family

  • How to add the new line 'Total' to a report?

    Hello

    I built a report within the region. I can get the total by checking the 'sum', but I need the word 'total' showing on the same vintage with the total amount. How can I achieve that? or in any different way how to create the new line to show total?

    Source debit credit

    A 45 44

    45 56 B

    90 100

    Thank you

    Victor

    Hello

    For the classic report show the sum.

    Go to the report attributes and click the box check the amount that you want to total.

    If you still face any problem-

    Please go to the

    http://Apex.Oracle.com/

    Workspace - WS_SUNITI

    User name: Test

    Password: 1234

    82863 application ID.

    Name of the tab - PSVANS3

    Page no 5

    Kind regards

    Director

  • How to get the selected line of the selecetOneChoise

    Hello

    I use jdeveloper 11.1.2.3.0

    I have a simple vision with 'id' and 'name' attributes
    I dragged the view as selecetOneChoise and has chosen to show only the name.
    When the value of the selecetOneChoise is changed, I need to use the 'id' of the new value selected as a setting for another opinion.
    I tried to get it through the iterator, like this:
     
          public void onValueChangeListener(ValueChangeEvent valueChangeEvent) {
            DCIteratorBinding it = getBindings().findIteratorBinding("firstIterator");
            Row row = it.getCurrentRow();
            
            DCIteratorBinding it2 = getBindings().findIteratorBinding("secondIterator");
            ViewObject vo = it2.getViewObject();
            vo.setNamedWhereClauseParam("p_id", row.getAttribute("id").toString());
            vo.executeQuery();
           }
    but I get the old value instead of the new value.

    no idea why this is happening?
    or y at - it another way to get the 'id' of the selected value?
    It is urgent, thank you very much!

    Use this solution in your method first, and then write the code...

    code................

    for example :-{} public void onValueChangeListener (ValueChangeEvent valueChangeEvent)
    FacesContext will involve = FacesContext.getCurrentInstance ();
    valueChangeEvent.getComponent () .processUpdates (contxt);

    DCIteratorBinding it = getBindings () .findIteratorBinding ("firstIterator");
    Line = it.getCurrentRow ();

    It2 DCIteratorBinding is getBindings () .findIteratorBinding ("secondIterator");.
    ViewObject vo = it2.getViewObject ();
    vo.setNamedWhereClauseParam ("p_id", row.getAttribute("id").toString ());
    vo.executeQuery ();
    }

    Popz

    Published by: Popz on 2 April 2013 05:34

  • How to get the selected line in af:inputComboBoxListOfValues

    Hello

    Am on jdev 11.1.1.2.1.

    Uses af:inputComboBoxListOfValues component, I've done the component based on the id of 'service' and the display value is "name of the Department.

    In the value change listener I want to get the id of the selected service, but now I get only the name of the service. (using valueChangeEvent.getNewValue m:System.NET.SocketAddress.ToString (()))

    So is it possible to get the whole line and get the "department id" using that?

    Help, please.


    Thank you
    Hari

    Sorry for the confusion, necessary to check it out:
    This code should work:

        public void nameValueCangeListener(ValueChangeEvent valueChangeEvent) {
            FacesContext contxt = FacesContext.getCurrentInstance();
            valueChangeEvent.getComponent().processUpdates(contxt); // after this the new row is selected!
            BindingContext lBindingContext = BindingContext.getCurrent();
            BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry();
            JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("YOUR_LIST_BINDING_NAME");
            Row lFromList = (Row)list.getCurrentRow();
            Object lAttribute = lFromList.getAttribute("YOUR_ATTRIBUTE_YUO_WANT_TO_GET");
        }
    

    Timo

  • How to disable the selected lines in ADF

    Hello

    I have a dynamic data table with 2 test of EMPLOYEENAME and DESIGNATION fields. If the DESIGNATION is "trainee", I want the particular lines of "trainee" lock/disable dynamically. Can anyone tell how it is possible in the ADF

    Thank you
    Prabhsh.

    Prabhsh,

    If your question is answered would you kindly the question an answer?

    Timo

  • How to remove the icon of change on interactive report?

    An interactive report I now work on displays the change icon (pencil). A report that I create a while does not.
    I couldn't find where I turned this off icon display. Can anyone help?

    See:

    Report attributes
    Link column - select here exclude the link column

    Jeff

  • Placeholder for the field of research in interactive report Oracle Apex5.0

    Hi all, I have some interactive report region, I have enabled search box, how to give the name of the licensee for this area of research? Please give suggestion

    search.jpg

    Thank you

    Try using this jQuery on the page loading

    $('.a-IRR-search-field').attr ('placeholder', ' Hello world ' ");

  • How to get the selected row in a programmatic table of the ADF (table generated from a bean)

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    How to get the selected line in a programmatic (using a SortableModel custom not a display object) ADF table (generated from a bean)?


    We are trying to get the selected row in a bean of a programmatic ADF table to retrieve data based on the selected line.


    Any idea?

    Well, you can use selectionListener to set the selected line to a variable of bean (but this bean must be in extended view or some superiors)

    Something like this: http://www.awasthiashish.com/2015/07/get-selected-row-singlemultiple-from.html

    Dario

  • Highlight the current line


    Apex 4.2

    Theme 21

    I am able to highlight current form fields using get focus and lose focus of dynamic actions.

    How to highlight the current line in the form of an updated report.

    I tried to use DA with

    Picker JQuery tr [headers = 'TAX'] (column in my report)

    Run Javascript

    $x_RowHighlight (this.triggeringElement, 'yellow');

    Any help appreciated

    Gus

    Gusford Hello!

    Try to update your JQuery selector to what follows, with a trigger event in the DA 'click ':

    table. Report-standard tr

    JR.

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

  • How to manage the current line with radio button selection?

    Hello world

    I have an ADF page with a table and a search"" button.
    I created a new attribute with VARCHAR2 (1) in the VO and dragged this attribute as the first column of the table. And changed this first column of the option button to select only a single line at a time.
    By clicking on the "Search" button, I need to get the current selected row values.

    How can I get the values of selected line?
    What code should I write to get the values of the selected line in the method of binding the button 'search '?

    All suggestions will be really useful.

    Thank you.

    Hello Kumar,
    I have a few comments on your case.
    >
    I created a new attribute with VARCHAR2 (1) in the t
    >
    1. you should create this attribute in the object of the entity, and then add it to the view object.
    2-do you need this radio that a button is defined for all lines? If yes then you need handle the case where the user set several lines and clear the value of the attribute for all other lines.

    >
    How can I get all the values of the current row in backing bean, binding of the Find method (method)?
    can u please give me the code for this?
    >
    If you mean by the current row is the row for which the value of the selected attribute is defined (the radio button is set to the rank), then you can write a method in the viewObjectImpl class and expose it to the customer interface and call it from your bean.
    Here is a sample Department table in the HR schema.

    //This method is written in DepartmentsViewImpl
    public Row getSelectedRadioRow(){
                //create a second row set to not impact the row set used in ADF
                RowSet duplicateRowSet = this.createRowSet("duplicateRowSet");
                //get the current row of the table to set it back after re-executing the VO
                DepartmentsViewRowImpl currentRow = (DepartmentsViewRowImpl)this.getCurrentRow();
                Row[] filteredRows = duplicateRowSet.getFilteredRows("IsSelected", "1");
                DepartmentsViewRowImpl row=null;
                if(filteredRows.length>0){
                    row = (DepartmentsViewRowImpl)filteredRows[0];
                    System.out.println("Department Name " + row.getDepartmentName());
                     }
                this.setCurrentRow(currentRow);
                duplicateRowSet.closeRowSet();
                return row;
            }
    
  • 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 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

  • 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

Maybe you are looking for

  • Satellite L505-it is repeatedly freez or collapsed suddenly

    I have problem with my machine "Several times my machine to the work stoppage or freez and don ' t make any order as ctrl + alt + delete then I shutt down my machineand then open... Please, I want to know what this problem is? fast please

  • How can I make my hpdesktop 1512 as my default printer

    I have just bought and set up my new PRINTER HPDESKJET1512 with the cd that came with it. OK with the cd, but how to set the printer above on my default printer on a laptop with Windows 7. Thank you

  • My music files no longer work

    I get a message that reads something like: "You can't have these music files on three computers and you max out." I have only this one computer - which I "recovered" or "reinstalled" several times since I had a problem awhile back.  Seems to be a rec

  • How to reduce the size of an image to send as an attachment to e-mail

    Sending photos as attachments to emails How can I reduce the size of photos for me to email it more?

  • It is a code of 80070005 error,

    I went through the first steps, and they said in this post.  Any help would be greatly appreciated. Error opening of HKLM\software\Microsoft\Windows\CurrentVersion\Component database maintenance:Access is denied. No matching items found.