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
;-)

Tags: Database

Similar Questions

  • How to highlight the line of the ADF table based on the value of the column?

    Hi all

    I use jdev 10.1.3.4. I want to highlight a table row or a cell based on the value of the column.

    Lets say, I have a table emp with column empid, empname and sal. I want to emphasize the lines that have sal = 10000.

    How can I achieve this? Please help me with this.

    Thank you
    Abhijit

    Hello

    You want to highlight the lines? or set a different color for the lines? If it's the second, you can set the inline style based on the salary. (+ Edit: well, never mind, both are same :)) +)

    Something like

    
    

    If you want the entire line to be a different color, you have 2 options.

    1. define the same style inline for all columns in the table (good if you want to do only for a single table).
    2. create a style class and apply the styleclass based on the value of sal (preferably if you want the same behavior in all of your application).

    Arun-

    Published by: joel Ramamoorthy, October 23, 2009 16:56

  • Highlight the line in the standard State is based on the value in the column...

    I'm trying to highlight the lines of a standard report based on the value of the TICKET_TYPE column.

    I followed the post: highlighted a line in a tabular form based on a column in the row

    but the difficulty. I have the following error:

    ORA-06550: line 1, column 34: PLS-00201: identifier 'SHRIMP' must be declared ORA-06550: line 1, column 7: PL/SQL: statement ignored

    ERR-1025 expression PLSQL treatment error. SHRIMP = "SHRIMP".




    My report query is:

    Select T.TRIP_ID,
    T.TRIP_ID trip_show,
    T.TRIP_ID trip_select,
    T.DAYS_AT_SEA,
    T.NBR_OF_CREW,
    T.TRIP_START_DATE,
    T.VESSEL_ID,
    o.ticket_type ticket_type
    TRAVEL t, o one_ticket_type
    where t.dea_permit_id =: G_DEA_PERMIT_ID and t.trip_id = o.trip_id

    I created a new template called a ticket-enhancement.

    line 1 = tempate < td #ALIGNMENT headers # = "" #COLUMN_HEADER # "class ="t14data"style =" background: red "> #COLUMN_VALUE # < table >"
    model condition rank 1 = use based on the expression of pl/sql
    template expression rank 1 = #TICKET_TYPE # = "SHRIMP" (* I also tried without the quote)


    any thoughts? Thank you!!

    Edited by: KEH813 may 25, 2010 11:10

    I'm not sure of the JavaScript. Whenever you sort the report, coloring disappears and you can send the page again.

    PS Don't forget to mark the answers as Correct or useful.

    Best regards
    Mathieu Gosselin

  • Insert/update of the lines in tabular form from one table to another table

    Hello

    I'm having a tabular presentation for a table (equip_test) with 2 columns (equip_id, equip_name). I create a new

    Button (submit_alt) in this tabular form. I need to insert or update lines that are changed in this table to form

    another table (equip_staging) when you press the submit_alt button. How can I do this? How can I identify which lines are

    Insert or update? The process of the page I am trying since this button is
    begin
    
    FOR i in 1..APEX_APPLICATION.G_F01.count
    
    LOOP
    insert into equip_staging values(APEX_APPLICATION.G_F02(i),APEX_APPLICATION.G_F03(i));
    END LOOP;
    
    end;
    But it does not work. Help, please

    Thank you

    TJ

    Unchecking (does not) the column is a problem. Use this SQL instead (which is included in my examples):

    SELECT empno,
              empno
           || apex_item.hidden (33, wwv_flow_item.md5 (ename, sal, job))
                                                                    empno_display,
           ename, sal, job
      FROM emp
    

    and join this column hidden from your display column. In this way, it should work. When you feel there is no data found message in the treatment in a table, it will mean that the id does not exist.

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Help with cascading pop-up list on slot form of table

    I'm new to APEX (on APEX 5.0) Please bear with me!  Let's say I have a tabular form with 4 columns (A, B, C, D)

    Here's the logic:

    1 column A is just a static list of 2 values.

    2 column B is determined by what you choose in column a.

    3. column C is determined by what you choose in column A and column B

    4 D column is determined by what you choose in column A and column C


    I need a list of popup cascading for columns B, C and D but since its under table, with several lines it is difficult.  I followed this link:

    Jari APEX blog: 'cascading' list Article on slot form table

    I was able to get the above to work in my application to meet business #2 logic, but I can't figure out how to make it work for the logic #3 and #4 because there are several critical values.  Is there an easier way to do this?  Can someone help me understand what the javascript code does in the link above?

    More precisely:

    (function ($) {;})

    / * Cascading pop-up list * /.

    $.fn.htmldbCascadePopup = function (parent, tempItem, options) {}

    options = $.extend({)

    loadingTxt: 'Loading... '. »,

    loadingCss: {'width': '80px","float": 'left'}

    (}, options);

    return this.each (function (i) {}

    var $self = $(this);

    $anchor = $self.next ("a").

    $parent = $(parent) .eq (i).

    popupFn = new Function ($anchor.attr("href").substr (11));

    $parent.change (function () {$self.val("").effect("highlight",{},2000) .focus () ;});})

    {$anchor.click (function (e)}

    e.preventDefault ();

    var parentVal = $parent.val ();

    if(!parentVal) {parentVal =' ";};}

    Apex. Server.Process ("DUMMY", {}

    p_arg_names: tempItem,

    p_arg_values: parentVal

    },{

    data type: "text",

    beforeSend: function() {}

    $self

    . Hide()

    .after ($("< div/>", {"html":options.loadingTxt,"la classe css":options.loadingCss",": "ui-saisie semi-automatique-chargement"})

    . Width ($self.outerWidth ())

    . Height ($self.outerHeight ())

    );

    },

    complete: function() {}

    popupFn();

    $self

    . Show()

    . Next ("div. UI-AutoComplete-Loading")

    . Remove();

    }

    });

    });

    });

    };

    (}) (apex.jQuery);

    I have a Monday deadline for this so my time is up.  Here's what I did to help someone, even if it has a very quick and dirty solution.

    After the example of Jari blog work, I learned the following: Popup LOVs have a display value and a return value.  They correspond each to their own field in tabular form.  For example, the display for my column 'B' column is f10 and the back column is (hidden) f09.  Column C depends on A and b.  So, I did the return value of B for the concatenation of A & B.  Then I pass that value into a variable of the APEX with Jari javascript and try the parse to the LOV for column C.

    It gives me values in the table that I don't really want.  If column A is supposed to be "12345" and column B is supposed to be "XXXXX", then the value in column B is "12345". XXXXX. "  So I'll make a post process clean.

    All this could be increased if I know enough javascript to add multiple parameters to the code of Jari.

  • Highlight the line does not work after dynamic refresh

    Hello


    Request Express 4.2.1.00.08


    Hoping someone can help with this. I have a report (list of loans for a person) who gets refreshed dynamically when the account number is changed. The loan id column is a link when you click fires a dynamic action that uses JavaScript to highlight the current line

    $('.highlight-row').removeClass ('point culminating-row');

    $(this.triggeringElement) .parent () .parent () .children () .addClass ('point culminating-row');

    It works fine first time around, but if the loans area is updated the javascript does not work anymore and the current line is not highlighted.

    Thank you


    Neal



    Hello

    What is the scope of the event?

    It must be dynamic.

    You can create a new DA the event which is:

    After Refresh.

    Selection type: report

  • 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

  • Highlight the line in the sql statement

    Using APEX 3.2

    How can I highlight a row (changing fonts colors or change the background color) on a sql report based on a value in a column? If the BALANCE_AMT column is negative, I would like to point out the line.

    Thanks for your suggestions offered!

    Sandie

    Just a guess but I think your column #BALANCE_AMT column data # are not quite a number. There is a comma in the Oracle error: error parsing of expression PLSQL. -388,200<>

  • 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

  • If the default value in columns on slot form of table does not work.

    Hello

    I created a tabular form and I want to set some default values to columns that are based on the values of page elements.

    so I put the page element to the value of the column in the attributes in a table by selecting the value & P24_ISSUE_ID. default type as Expression PLSQL & DEFAULT function there but
    in the same way, I tried for the other column by selecting the type default as pl/sql expression and function by default the value & P24_CASE_NAME.

    but it throw an error of this type could not parse the SQL query: ORA-00904: "C254DB": invalid identifier

    I don't understand where I did wrong, I checked for the data types of columns, all right.

    so please help me out of this problem.

    1243 Tulasi wrote:
    for the first column

    I chose
    The DEFAULT TYPE as PL/SQL Expression & FUNCTION

    As the default * & P24_ISSUE_ID.* it is a number data type column

    2nd column

    The default Type as PL/SQL Expression & function

    As the default * & P24_CASE_NAME.* it's column of type Varchar2.

    Element (name of the page element or application) for the default Type and the name of the default item ( P24_ISSUE_ID, P24_CASE_NAME etc.) options appropriate for a default value for a page element.

    * & P24_ISSUE_ID.* is not a "PL/SQL Expression or function.

    but it throws an error, because this guy could not parse the SQL query: ORA-00904: "C254DB": invalid identifier

    What you're doing results in the engine of the APEX, P24_CASE_NAME 'C254DB' value in the default value and then try to assess this string as a piece of PL/SQL. Outside a block in which it is defined as a variable, constant, or a function 'C254DB' is not a valid expression of PL/SQL.

  • Change commits on slot form of tables

    Hi guys,.

    Apex 3.2

    My application has so many tabular forms. and I need to validate all for that I use function to return a Boolean value:
     
    BEGIN 
    FOR i IN 1 .. apex_application.g_f06.COUNT 
    LOOP 
    IF apex_application.g_f11(i) is NULL THEN 
    RETURN FALSE; 
    END IF; 
    END LOOP; 
    RETURN TRUE; 
    END; 
    and it works very well. But in one case, I have a presentation tabular than the change of table columns and even a few reduced times (for example: a few times g_f11 will be g_f13.furthermore, there is no such thing as a few times g_f11 )
    also, if I do the previous function I get this error:

    ORA-06550: line 4, column 21: PLS-00302: component 'G_F11' must be declared ORA-06550: line 4, column 1: PL/SQL: statement ignored
    Error ERR-1021 cannot run the validation of the "body of the function that returns a Boolean.

    any solution guys.

    Note: all fields in this tabular form should have the same validation both of them must be a number between 1 and 100.

    Thank you

    Hello
    You first need to test for the existence of an array of g_fnn to iterate through it before.
    The COUNTY comes to the rescue, like this

    BEGIN
       FOR i IN 1 .. apex_application.g_f06.COUNT
       LOOP
        IF apex_application.g_f11.COUNT > 0 THEN  -- to test existence
          IF apex_application.g_f11(i) is NULL THEN
            RETURN FALSE;
          END IF;
       END IF;
       END LOOP;
      RETURN TRUE;
    END;
    

    Of course, you can use IN the Condition. I just write separate lines to draw attention to the point that I'm trying to get.

    Kind regards

  • How to highlight the line end Word hyphen in the java script

    Dear Tpk & friends,

    I need to highlight all the end of line (continues 3 hyphen hyphen 2 only and Word), hyphen, Word in the Indesign (Cs6) application. I have attached the screenshot to your references.

    Screen Shot 2016-02-12 at 11.22.00 PM.png

    Thank you

    Knockaert

    Hello..

    The scripts may be useful for you below...

    Peter Kahrel - Free script | Checking of hyphenation

    http://www.kahrel.plus.com/InDesign/hyphens_collect.html

    Peter Kahrel - Free script | Change the cut words and update the lists of exceptions

    Homepage of sectors de Jong, a file manager

  • Highlight the line in the classic report

    Hi all. Is it possible to highlight only one row after the click of the mouse in a classic report? Perhaps with the help of JavaScript (or jQuery). Version of the APEX - 4.1.x

    view Denes Kubicek ApEx BLOG: line highlight selected to highlight a current row of the report

    See also Notes on Oracle: APEX: select a record in the report - with dynamic Action

    Can solve your problem.

    Leave.

  • 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

Maybe you are looking for