IR highlight row error

Hi,
I have two columns in IR
- Amount to be paid
- Paid amount
I would like to highlight rows that have remain amount =0
so I created a Compute column Name Remain Amount = Amount to be paid - Paid amount
and created highlight condition where Remain Amount = 0
but I catched the error when apply the condition
ORA-20001: get_dbms_sql_cursor error ORA-00904: "Remain Amount null(null)": invalid identifier
Please help me out.
Thanks

Hi,
Is it possible that one or more of your records doesn't have a value in one/both of the fields? Try using NVL(columnname, 0) to ensure that any nulls are converted to 0 (zero)
Andy

Similar Messages

  • Highlight row in standard report based on value in column...

    I am trying to highlight rows of a standard report based on the value of the column TICKET_TYPE.
    I have been following the post: Highlighting a ROw in a tablular form based on a column in the row
    but having difficulty. I receive 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 Error processing PLSQL expression. 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
    from TRIPS T, one_ticket_type o
    where t.dea_permit_id = :G_DEA_PERMIT_ID and t.trip_id = o.trip_id
    I have created a new template called one-ticket-highlight.
    row tempate 1 = <td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t14data" style="background:red">#COLUMN_VALUE#</td>
    row template 1 condition = use based on pl/sql expression
    row template 1 expression = #TICKET_TYPE# = 'SHRIMP' (**** I have also tried without the quote)
    any thoughts? thanks!!
    Edited by: KEH813 on May 25, 2010 11:10 AM

    Hi,
    You can achive the same using javascript without changing the page template.
    http://apex.oracle.com/pls/apex/f?p=27576:8
    here is the code for the same
    <style>
    .myclass{ background-color:red;text-align:center}
    </style>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js "></script>
    <script>
    $(function(){
       $("td [headers='DEPTNO']").each( function(i){
           if($(this).html() == $v('P8_DEPTNO'))  //value of the textfield
               ele = $("td [headers='ENAME']").eq(i)
               ele.removeClass('t20data');   //i'm using theme 20 so t20data .. u need to change this part
               ele.addClass('myclass');
    </script>Regards,
    Shijesh

  • Classic report - Highlight row

    APEX 4.2.1
    With all the latest and greatest dynamic action and jQuery goodness in 4.2.1, what is the easiest, declarative way to highlight rows in a classic report region (Generic Column Template) based on data condition using values on the row, using #COL# notation? e.g. If SAL > 1000 and DEPT = Marketing, highlight row in red or some such.
    In prior versions, this involved copying the Generic Column Template to one used just by this report and use the (up to 4) Column Templates with a PL/SQL expression.
    Thanks

    Custom report templates are okay if your needs are straightforward. But you said it already, there are only four different flavors to chose from.
    Here is a solution that'll work on all pages if once installed and can be extended to a multitude of visual attributes. Only an example that you may want to adapt to your liking.
    Edit Page, "CSS, Inline", or via Shared Components &gt; CSS files
    td.color1 {background-color:#9F9} /* Table cell gets colored in light green  */
    td.color2 {background-color:#FF9} /* Table cell gets colored in light yellow */
    td.color3 {background-color:#F99} /* Table cell gets colored in light red    */
    /** and so forth, followed by as many declarations as you need... */Page Template, "Function and Global Variable Declaration":
    /** Change the visual appearance of your classic report as you like after it's rendered */
    function customClassicReportDisplay(){
      /** Transfer the color class from the text to the table cell */
      $('td span.color1').closest('td').addClass('color1');
      $('td span.color2').closest('td').addClass('color2');
      $('td span.color3').closest('td').addClass('color3');
      // and so forth, followed by as many declarations as you need...
    }This jQuery code can be simplified, especially the handling of many lines for many colors can still be compacted, which makes it more difficult to understand though.
    Page Template, "Execute when Page Loads":
    /** Perform the function on Page Load */
    customClassicReportDisplay();
    /** Perform the function after Partial Page Rendering */
    $('form').bind('apexafterrefresh', function(){
      customClassicReportDisplay();
    });Here comes the trick. In the SQL statement, you wrap a &lt;span&gt; HTML tag with a different class declaration around each value that you want to color.
    SELECT '<span class="color' || case when some_value > 100 then '2' else null end || '">' || some_value       || '</span>' AS some_value
         , '<span class="color' || decode(some_other_value, 'too much', '3', NULL)   || '">' || some_other_value || '</span>' AS some_other_value
         , '<span class="color' || case when last_value between  0 and  10 then '1'
                                        when last_value between 11 and  50 then '2'
                                        when last_value between 51 and 100 then '3'
                                        else null end                                || '">' || last_value       || '</span>' AS last_value
      FROM ...This obviously makes the SQL a bit more complicated but in my opinion, I think this is a data driven topic and therefore just fine. Hence you say "depending on value ranges I want to change something" - and that belongs to SQL. WHAT you want to do (here: change color) is then up to your JS and CSS declaration. If you shift the SQL code into a view it's better to maintain and won't get spoiled by non-savvy third party developers...
    I know that's not what you originally asked for, because there is no #COL# notation, but for me it's the most flexible solution I can think of under APEX.

  • Highlight Rows/Fields in Inetractive Report

    What is the best way to conditionally highlight rows/field in an Interactive Report? I don't want to create filters that the users can see/turn off

    Hello Bob,
    Before you have to think about what happens (or should happen) if a user creates his own highlighting. That will interfere with the highlighting you created....
    But you can set highlighting for a field in the select statement:
    select      "DEMO_ORDER_ITEMS"."ORDER_ITEM_ID" as "ORDER_ITEM_ID",
          "DEMO_ORDER_ITEMS"."ORDER_ID" as "ORDER_ID",
          "DEMO_ORDER_ITEMS"."PRODUCT_ID" as "PRODUCT_ID",
          CASE
             WHEN UNIT_PRICE < 200 THEN
             '<span style="display:block;width:30px;background-color:red;color:darkgreen;">'
             || unit_price
             || '</span>'
             ELSE to_char(unit_price)
             END UNIT_PRICE,
          "DEMO_ORDER_ITEMS"."QUANTITY" as "QUANTITY"
    from      "DEMO_ORDER_ITEMS" "DEMO_ORDER_ITEMS"But remember that the outcome of your query now changed. If you sort upon UNIT_PRICE the <span> tag also is taken into consideration.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How do you un-highlight text highlighted in error in Reader?

    How do you un-highlight text highlighted in error in Reader?
    Also How can you change the color of the highlighting?

    Yes i saw, but what i don't understand is that i don't see "Allow Page Breaks within Content" on my textfields :
    Maybe i am using an older version of livecycle.
    In an other order of idea, have you checked if the page was set to allow page breaks?

  • Highlight row

    all,
    i'm using the "Background color for current row" property in the report template to define the background color of rows when the mouse is over it. is there a way to define the color of the font for the highlighted row also?
    thanks in advance,
    paul

    See the same example
    http://htmldb.oracle.com/pls/otn/f?p=24317:111
    Modifiying the FG color is not a builtin feature, but you can piggyback on the code generated by the background color feature.
    Add the following to the region footer to override the generated code
    <script type="text/javascript">
    var rowStyleHoverFG = new Array(15);
    function row_mouse_over404667826284618949(rowNode,currentRowNum) {
                    rowActive = 'Y';
                    for( var j = 0; j < rowNode.childNodes.length; j++ ) {
                        if (rowNode.childNodes[j].tagName=='TD') {               
                            rowStyleHover[currentRowNum] = rowNode.childNodes[j].style.backgroundColor;
                            rowStyleHoverFG[currentRowNum] = rowNode.childNodes[j].style.color;
                            rowNode.childNodes[j].style.backgroundColor = '#ffffc1';
                            rowNode.childNodes[j].style.color = 'green';
                function row_mouse_out404667826284618949(rowNode,currentRowNum) {
                    rowActive = 'N';
                    for( var j = 0; j < rowNode.childNodes.length; j++ ) {
                        if (rowNode.childNodes[j].tagName=='TD') {               
                            rowNode.childNodes[j].style.backgroundColor = rowStyleHover[currentRowNum];
                            rowNode.childNodes[j].style.color = rowStyleHoverFG[currentRowNum];
    </script>Change the green color to anything you want.
    Hopefully this becomes a standard feature in the next release so we wont have to hack into it like this.
    Hope this helps.

  • About highlight row

    Hi all,
    I tried to highlight rows in my report.
    <?if@row:position() mod 2=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">lightgray</xsl: attribute><?end if?>
    But I found if I use this in the default template(using report wizard), it doesn't affect any rows.No any highlight.
    If I added this code in the table that I created by hand or using table wizard, it works well.I can see gray highlight in every second row.
    I made this two templates exactly same, but the first one didn't work.I tried to copy the code to a table which is created by myself, it works.
    Is it a bug or something else?Any suggestions and answers are welcome.I really appreciate it.
    Thanks.

    Yes Dude,
    even i faced some issue like this,
    I think its not bug, due to wrong formatting in the table which we could not see in RTF file,
    that is not working,
    even i did it newly and i got it correct :).
    It has been made so simple for people who are not tech-savy.
    http://blogs.oracle.com/xmlpublisher/2007/08/09

  • Highlight row on mouseover

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:106
    Selecting a radiobutton and Clicking the Submit button highlights the selected row.
    But when I mouseover the highlighted row, the color changes due to the mouseover stuff defined in the Alternating Row Colors template.
    How can I disable all the mouseover stuff?
    Thanks

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:111
    The row color changes as you mouseover the rows. As you say, the color is defined in the "Background color for current row" on the Row Highlighting section on the Report Template
    My question was: How do I suppress this mouseover stuff from being generated on the report region? The mouseover code seems to be hardcoded by the HTML DB engine, I didnt see a way to suppress it on the Report Templage page.
    Thanks

  • Highlight rows in SM30 that are in error  using Event 01

    I have created an Event 01 (via SE54) to validate the data that is entered in my custom table using SM30.  In my code, how can I highlight the row(s) of data that have invalid data.  Event 01 is executed before saving the data.
    Thanks.
    Ryan

    Hi Dimitri,
    I guess I have included it in my page header (in bold letters). Here is a portion of my page source..
    <html lang="en-us" xmlns:htmldb="http://htmldb.oracle.com">
    <head>
    <script src="/i/javascript/htmldb_html_elements.js" type="text/javascript"></script>
    <script src="/i/javascript/htmldb_get.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    /*Global JS Variables*/
    var htmldb_Img_Dir = "/i/";
    //-->
    </script>
    <link rel="stylesheet" href="/i/css/core.css" type="text/css" />
    <style type="text/css">
    td.t2data {color:red}
    td.t2dataalt {color:blue}
    </style>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='Would you like to perform this delete action?';
    //-->
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Store Class Local Information</title>
    <link rel="stylesheet" href="/i/themes/theme_2/theme_V2.css" type="text/css" />
    </head>
    <body ><form action="wwv_flow.accept" method="post" name="wwv_flow" id="wwvFlowForm" >
    <input type="hidden" name="p_flow_id" value="2007" id="pFlowId" /> <input type="hidden" name="p_flow_step_id" value="42" id="pFlowStepId" /> <input type="hidden" name="p_instance" value="16705997569361941904" id="pInstance" /> <input type="hidden" name="p_page_submission_id" value="318155" id="pPageSubmissionId" /> <input type="hidden" name="p_request" value="" id="pRequest" /><table width=983 border=0 cellpadding=0 cellspacing=0>
    <tr>
    <td>
    <img src="wwv_flow_file_mgr.get_file?p_security_group_id=22816117248010841&p_fname=bgADW2_01.jpg" width=600 height=57 alt="">
    </td>
    <td>
    <img src="wwv_flow_file_mgr.get_file?p_security_group_id=22816117248010841&p_fname=bgADW2_02.jpg" width=383 height=57 alt="">
    </td>
    </tr>
    </table>
    ....... some more codes .....
    but still its not working... Thanks for bearing with me..

  • Highlight Row on click

    Hi all,
    I have a datatable with a commandlink in it and when I click it the whole row should be highlighted.
    function highlightRow() {
         alert("inside highlight");
         var trs = document.getElementById('_idJsp8').getElementsByTagName('tbody')[0]
         .getElementsByTagName('tr');
         for (var i = 0; i < trs.length; i++) {
         trs.onclick = new Function("this.bgColor='#ffffff'");               
    <t:column>
    <f:facet name="header"><h:outputText value="Errors"></h:outputText> </f:facet>
    <h:commandLink><h:outputText value="errors" ondblclick="highlightRow();"/></h:commandLink>
    </t:column>but when I click the errors the function is never called. I mean it never displays the alert dialog.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I tried assigning the value of backing bean with the row that is clicked but the main probelm here is I have backingBean variable row as string and I need to assign the row clicked. The row clicked is an object and it has no attributes. Can some one tell me how can I assign the row to backingbean variable.
    function highlightOnClick() {
             alert('inside highlight on click');
             var trs = document.getElementById('form:data').getElementsByTagName('tbody')[0]
             .getElementsByTagName('tr');
             for (var i = 0; i < trs.length; i++) {
             trs.onclick = new Function("setRow(this)");
    function setRow(tr)
    alert("set row tr"+tr);
    document.getElementById('form:row').value=tr; //here is the problem should do something here.
    alert(document.getElementById(form:row').value);
    function highlightRow() {
    var tr = document.getElementById('form:row').value;
    alert("tr:"+tr);
    tr.bgColor = (tr.bgColor != '#ff0000') ? '#ff0000' : '#ffffff';
    }Edited by: niki007 on Jul 30, 2008 6:49 PM
    Edited by: niki007 on Jul 30, 2008 6:50 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • ODI - SCD Type 2 - Insert new row error

    Hi All,
    For Dimension I have a surrogate key, a natural key, and a column with "overwrite on change", start_date, end_date, current_record_ind. When I run the interface with the default SCD Type 2 for SQl server, this runs fine. But when I change that one column from "overwrite on change" to "insert new row", it fails on the update step. What should I be looking for anf fixing.
    Thanks for your time and help.

    DB: SQL Server 2008.
    IKM = IKM MSSQL Slowly Changing Dimension
    Error Message: ODI-1228 - Incorrect syntax near the keyword from.
    Code: update T
    set
    from database.dbo.Dim_type as T,
    database.dbo.I$_Dim_type as S
    where T.Cd = S.Cd
    and T.Current_rec_ind = 1
    and IND_UPDATE = 'U'
    To overcome the issue, I have commented the update code in the Knowledge module and the insert works, but for this one it is ok, but I have requirements where one column needs to be overwritten and other column changes will require to add a new record. How to handle both?
    Thanks for your time.

  • How to highlight rows in the following code.

    Hi,
      I am using the following logic to display 2 lists at a time.
    I want to highlight the last 2 rows of both the lists that I am displaying.how to do it.
    Kindly help.
    TYPE-POOLS : slis.
    TABLES : mara,
    makt.
    SELECT-OPTIONS : mat FOR mara-matnr.
    DATA : BEGIN OF itab OCCURS 0,
    matnr LIKE mara-matnr,
    maktx LIKE makt-maktx,
    matkl LIKE mara-matkl,
    mtart LIKE mara-mtart,
    END OF itab.
    DATA : BEGIN OF itab1 OCCURS 0,
    mtart LIKE mara-mtart,
    count TYPE i,
    END OF itab1.
    DATA : BEGIN OF itab1_col OCCURS 0,
    mtart LIKE mara-mtart,
    count TYPE i,
    END OF itab1_col.
    DATA : t_fcat1 TYPE slis_t_fieldcat_alv,
    t_fcat2 TYPE slis_t_fieldcat_alv,
    wa_fcat TYPE slis_fieldcat_alv,
    t_eve TYPE slis_t_event,
    wa_eve TYPE slis_alv_event,
    t_layout TYPE slis_layout_alv.
    DATA : v_repid LIKE sy-repid,
    t_mat LIKE mara-matnr.
    DEFINE create_fcat.
    clear wa_fcat.
    wa_fcat-fieldname = &1.
    wa_fcat-seltext_l = &2.
    wa_fcat-outputlen = &3.
    append wa_fcat to t_fcat1.
    END-OF-DEFINITION.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM dis_data.
    *& Form get_data
    text
    FORM get_data.
    SELECT amatnr bmaktx amtart amatkl INTO CORRESPONDING FIELDS OF TABLE itab
    FROM mara AS a INNER JOIN makt AS b ON
    amatnr = bmatnr
    WHERE a~matnr IN mat.
    LOOP AT itab.
    itab1-mtart = itab-mtart.
    itab1-count = 1.
    APPEND itab1.
    ENDLOOP.
    SORT itab1 BY mtart.
    LOOP AT itab1.
    MOVE-CORRESPONDING itab1 TO itab1_col.
    COLLECT itab1_col.
    ENDLOOP.
    ENDFORM. "get_data
    *& Form dis_data
    text
    FORM dis_data.
    v_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = v_repid.
    REFRESH t_fcat1.
    CLEAR t_fcat1.
    REFRESH t_eve.
    wa_eve-name = 'TOP_OF_PAGE'.
    wa_eve-form = 'TOP_OF_PAGE1'.
    APPEND wa_eve TO t_eve.
    create_fcat:
    'MATNR' 'Material' '10',
    'MAKTX' 'Material Description' '40',
    'MTART' 'Type' '10',
    'MATKL' 'Group' '10'.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = t_layout
    it_fieldcat = t_fcat1
    i_tabname = 'ITAB'
    it_events = t_eve
    TABLES
    t_outtab = itab.
    REFRESH t_fcat1.
    CLEAR t_fcat1.
    REFRESH t_eve.
    wa_eve-name = 'TOP_OF_PAGE'.
    wa_eve-form = 'TOP_OF_PAGE2'.
    APPEND wa_eve TO t_eve.
    create_fcat:
    'MTART' 'Type' '10',
    'COUNT' 'Total' '5'.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = t_layout
    it_fieldcat = t_fcat1
    i_tabname = 'ITAB1_COL'
    it_events = t_eve
    TABLES
    t_outtab = itab1_col.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
    ENDFORM. "dis_data
    *& Form top_of_page1
    text
    FORM top_of_page1.
    FORMAT COLOR COL_POSITIVE.
    WRITE:/ 'First Block'.
    FORMAT COLOR OFF.
    ENDFORM. "top_of_page
    *& Form top_of_page2
    text
    FORM top_of_page2.
    FORMAT COLOR COL_NEGATIVE.
    WRITE /5 'Second Block'.
    FORMAT COLOR OFF.
    ENDFORM. "top_of_page

    Hi Renu,
    U Can use this FORM
    FORM TOP_OF_PAGE.
      FORMAT FRAMES ON INTENSIFIED ON COLOR = 7.
      WRITE : / 'SOURCE SYSTEM INFORMATION'.
      FORMAT FRAMES OFF INTENSIFIED OFF COLOR OFF.
      FORMAT FRAMES ON INTENSIFIED ON COLOR = 2.
      WRITE : / 'User Name  : ', sy-uname.
      WRITE : / 'System ID  : ', sy-sysid.
      WRITE : / 'Client     : ', sy-mandt.
      WRITE : / 'System Date: ', sy-datum.
      WRITE : / 'System Time: ', sy-uzeit.
      FORMAT FRAMES OFF INTENSIFIED OFF COLOR OFF.
    ENDFORM. "TOP_OF_PAGE
    U can make changes accordingly
    Rohit G

  • A/P Invoice - Row Error

    Hello all,
    when adding an A/P invoice, i encounter this error " [A/P Invoice - Rows - Discount % per Row][line: 12], 'you are not permitted to perform this action - Chart of Account' this is my screen shot, please see image
    http://i264.photobucket.com/albums/ii184/abing430/error.jpg
    can anyone suggest me how to resolve this one.
    Thanks
    FIDEL
    Edited by: Marc Riar on Feb 28, 2008 2:03 PM

    Hi Avelino,
    As I seen from your screen shot it appears as if the error comes for the specific user only. And since this is about discount you will have to mention the discount that particular user is eligible to give to the BP.This can be done from Administration -Systen Initialisation - Authorisations - General Authorisations  - Select the user and in the max discount field below mentiuon the max discount he can give to the BP.
    Check this out and let me know.
    Nagesh

  • Left Group style report highlight row issue

    I have a Left group style report that I need rows highlighted for sub-total lines in the report. I have coded it with the following in a fiield after the for each of the report
    <?if@row:PERF_NON_PERF='Sub-Total'?><xsl:attribute name="background-color" xdofo:ctx="incontext">yellow</xsl:attribute><?end if?>It highlights MOST of the row but ends up missing the last few columns. The page setup has been set to landscape to maximize the amount of data being displayed.
    I can send along sample data and rtf file if needed, just seems rather... Weird...
    Any help would be welcome..
    Thank you,
    Tony Miller
    Dallas, TX

    Bump.. Anybody have an idea on how to have highlight for entire row of a landscape based report?
    Thank you,
    Tony Miller
    Dallas, TX

  • How can i use the highlight row to select the row on a report

    The row is highlighted as I move the mouse how can I select this row without having to make a column a text link.
    thanks in advance

    Hi
    Try this out.
    Create or alter a report template. In the 'Before Each Row' section paste:
    <tr onMouseOver="cOn(this);" onMouseOut="cOut(this);">
    In the 'After Each Row' section paste:
    </tr>
    In the report page definition click on the page attributes and navigate to the HTML Header section. Paste the following script into this section:
    </script>
    <script language="JavaScript1.2">
    function cOn(td){
    if(document.getElementById||(document.all && !(document.getElementById))){
    td.style.backgroundColor="#cccccc";
    function cOut(td){
    if(document.getElementById||(document.all && !(document.getElementById))){
    td.style.backgroundColor="#ffffff";
    </script>
    In the report region navigate to the 'Layout and Pagination' section and select the report template you altered above.
    Now the report row will get highlighted when you mouse over. If you want to change colors, edit the color attributes in the javascript.
    Regards
    Kiran Akkiraju

Maybe you are looking for