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

Similar Messages

  • Conditional highlighting in standard report based on a column -disappearing

    Hi All,
    I implemented some conditional formatting on a standard report based on the thread below
    Highlighting a ROw in a tablular form based on a column in the row
    Everything works well, except when you pass the cursor over the report the highlighting disappears. It reappears if you refresh the page or scroll to the next page in the report.
    In my style tag in the template I'm just using
    style="background:red"
    Is it something to do with the template? I'm using builder 2 theme.
    Any ideas?
    Andrew

    Hi Andrew,
    this is coming from the report template - Before Each Row: <tr #HIGHLIGHT_ROW#>
    Just remove the #HIGHLIGHT_ROW# if you do not need it.
    Regards Garry

  • Bold a single row in a Report based on SQL Query

    Should be easy? So, how do I bold a single row in a report based on SQL query without creating a new template or writing Java for the page? What is the Tabular Form Element "Element Attributes" field for? Or what am I supposed to put in there to make it do anything?

    One way to do this is to add a hidden column to your report which contains the formatting value, for example:
    select empno
    , ename
    , sal
    , decode(empno,1,'font-weight:bold','font-weight:normal') style
    from emp
    Hide the STYLE column.
    Then you can use this column for each column in Column Formatting > HTML expression in this way:
    <span style="#STYLE#">#SAL#</span>
    Unfortunately you have to do this for each colum you want to appear bold.
    good luck,
    Dirk Dral

  • Iinsert the row in standard report

    hello,
    i want to insert the row in standard report i.e. for remarks, kindly explain me how to do same, please explain me in step by step.
    thanks
    suja

    Hi Sujatha,
    If you would like to ADD a FIELD to a standard table, please follow the below given procedure.
    Go to SE11. Open the standard table.
    Click on button APPEND STRUCTURES.
    You might get a warning "No append defined for table MAKT". Hit Enter.
    Now enter structure name. E.G., ZTEST.
    Enter the description for the structure.
    Enter the FIELD NAME that you want to append to the table.
    Save and activate.
    <b>Reward points for helpful answers.</b>
    Best Regards,
    Ram.

  • Filter standard reports based on user login

    Hi All,
    Is there any way to filter standard form reports (not PLD), based on the user currently logged in. for example, if user 'sales1' has logged in,  he should be able to see the sales report(say sales analysis) for the documents made by him only. there does not seem to have any access on the query being passed to this report. so even customization does not seem to be the solution. kindly help if any one knows a better way or a way at all.
    thnks and regards,
    Binita Joshi

    Hi Petr,
    thanks for replying.
    Before posting, I had already searched in SAP B1 forum and there , for a similar problem, it was advised to use SDK so I posted here.
    I knew, SDK seems to be the way. but, again, As I wrote, I wanted to know, whether there exists a way to filter the standard reports based on the user login. I don't want authorization or setting rights, sort of things.
    but, suppose If user A wants to see the sales documents reports then, he should be able to see the reports of the documents made by him only. so we will have to filter the records based on the Usersign field in marketing documents' tables but, I am clueless on, where should I give this filter.  and I am afraid there is no way to do that. make your own reports and block the access of system reports.Pls right back if U have more to say.
    regards,
    Binita Joshi

  • Link based on value in column of a Standard Report

    I have a Standard Report the displays only the images (BLOBs) in a column of a table. In that same table I have a ciolumn that hold url's. I want to have the image link to its corasponding url.
    Currently I am displaying the image using a BLOB format mask. IMAGE:LC_SCSC_SPONSOR_CATALOG:SCSC_LOGO:SCSC_UID
    The url is in a column named SCSC_URL.
    I am running Application Express 4.0.1.00.03
    Thanks for any help.

    I know where to create templates but do not know how to make a "named column report template".Unfortunately the documentation is particularly pathetic on this important topic. Unfortunate as Custom Named Column templates are one of the best features in APEX. They can be used to do some cool stuff fairly simply.
    See:
    <li>About Generic Column Templates and Named Column Templates
    <li>Report Column Template Attributes for Named Column Templates
    and the online help from the property labels on the Report Row Template page.
    1. Go to: Shared Components > Templates > Create
    2. In the wizard select: Report > From Scratch
    3. Enter/select:
    Name: Photo/link list
    Theme: [Your current theme]
    Template Class: Custom 1
    Template Type: Named Column (row template)
    4. Click Create.
    5. Click the Photo/link list link in the Templates report.
    6. Enter the following properties:
    Row Template 1
    <li><a href="#SCSC_URL#">#SCSC_LOGO#</a></li>
    Before Rows
    <ul>
    After Rows
    </ul>

  • How to create a new row for a VO based on values from another VO?

    Hi, experts.
    in jdev 11.1.2.3,
    How to create a new row for VO1 based on values from another VO2 in the same page?
    and in my use case it's preferable to do this from the UI rather than from business logic layer(EO).
    Also I have read Frank Nimphius' following blog,but in his example the source VO and the destination VO are the same.
    How-to declaratively create new table rows based on existing row content (20-NOV-2008)
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    I have tried:
    1.VO1(id,amount,remark1) and VO2(id,amount,remark2) are based on different EO,but render in same page,
    2.Drag and drop a Createwithparams button for VO1(id,amount,remark),
    3.add: Create insertinside Createwithparams->Nameddata(amount),
    4.set NDName:amount, NDValue:#{bindings.VO2.children.Amount}, NDtype:oracle.jbo.domain.Number.
    On running,when press button Createwithparams, cannot create a new row for VO1, and get error msg:
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Amount"
    java.lang.NumberFormatException: For input string: "Amount"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    Can anyone give some suggestions?
    Thanks in advance.
    bao
    Edited by: user6715237 on 2013-4-19 下午9:29

    Hi,CM,
    I'm really very appreciated for your quick reply! You know, today is Saturday, it's not a day for everyone at work.
    My principal requirement is as follows:
    1.select/check some rows from VO2, and for each selection create a new row with some attributes from VO2 as default values for VO1's corresponding attributes, and during this process the user may be cancel/uncheck or redo some of the selections.
    --so it's better to implement it in UI rather than in EO.
    2.it's better to implement this function with declarative way as in Frank Nimphius' blog.
    --little Jave/JS coding, the better. I only have experience in ORACLE FORMS, little experience in JAVA/JS.
    In order to get full information for the requirements of my use case, can take a check at:
    How to set default value for a VO query bind variable in a jspx page?
    (the end half of the thread: I have a more realworld requirement similar to the above requirement is:
    Manage bank transactions for clients. and give invoices to clients according to their transaction records. One invoice can contain one or many transactions records. and one transaction records can be split into many invoices.
    Regards
    bao
    Edited by: user6715237 on 2013-4-19 下午11:18
    JAVE->JAVA

  • Debtors Ledger Standard report based on Division

    Hi SAP gurus,
    Pl let me know is there any Standard Report in Debtors based Division of a customer.
    (Or Debtors report based on Division?)
    Pl help
    Thanks in advance
    regards
    Ediga

    Hi Ediga,
    what exactly do you mean by Division?
    If you mean the division from SD (field SPART, you know, sales organization + distribution channel + division = sales area, you can see it in every sales order or SD invoice), or probably the business area (field GSBER)?
    A report customer by division (SD) should be available from CO-PA or even directly from sales. However, I do not think there is something standard here, but it should not be a problem for your CO-PA and/or SD guys to let it create easily.
    If you mean the business area, there is also nothing delivered in standard. Customer balances are not stored by business area (see fields in table KNC1). A possible workaround is if you go for line item reporting like FBL5N. However, this is not very performant and after the documents (+ index table records from table BSAD) are archived, it can get more difficult. My recommendation here would be to set up FI-SL for this purpose: transfer the customer number and the business area (plus company code, of course) to your new Special Ledger application and you'll get the information within a few minutes. Also, FI-SL could be a solution if you meant the SD division (technical field name SPART) and not the business area (technical field name GSBER).

  • Highlight  a row in classic report based on condition

    HI all Gurus
    Using Apex 4.1.1 oracle 11g linux oc4j
    I want to highlight a row where #column_value#='Y' to grey  keep others as normal report settings.
    I have a simple sql query
    SELECT PK_ID,
      FIRST_NAME,
      LAST_NAME,
      INITIAL_REG_DATE,
      MAIL_DATE,
      BEGIN_DATE,
      END_DATE,
      END_DATE-BEGIN_DATE as "#days",
      BEGIN_STATUS,
      END_STATUS, 
      COMMENTS,
      DELETE_FLAG,
    case when  DELETE_FLAG='Y' then 'GREY' else '#f0f0f0' end  DELETE_FLAG ,
    INITIAL_REG_DATE+(END_DATE-BEGIN_DATE) "New Reg end date"
    FROM SOR_TRACKING_DEL
    where pk2_id =:P216_Detail
    order by mail_Date desc
    I created a Dynamic action
    which will fir on on load , BIND on this classic report
    $("input[name=f29]").each(function(){ 
    var lThis=$(this); 
    if(lThis.is("Y")){ 
      lThis.parents("tr:eq(0)").children("td").css({"background-color":"GREY"}); 
    } else { 
      lThis.parents("tr:eq(0)").children("td").css({"background-color":"#f0f0f0"}); 
    But this is not changing color as expected..
    Kindly help me !
    Thanks

    Scott and Tom
    Thanks you guys for looking into this.
    Pls ignore my improper explanation and my inexperience with jquery.
    I read some blog and was trying to do same on classic report but all blogs I found so far referred either interactive report or tabular report none of them mentioned classic report.
    I guess using array for classic report wont be a good idea to start with. :/
    I am not sure if this is right syntax and logic to highlight the row
    $(function(){
    var DELETE_FLAG = $(this);
        if DELETE_FLAG.is("Y"))
      DELETE_FLAG.parents("tr").children("td").css({"background-color":"GREY"});
    I also created app here
    http://apex.oracle.com/pls/apex/f?p=35155
    workspace sors
    user tester/testing
    application 35155
    Thanks again.

  • How to set background color based on values in column grouping

    Hello,
    I have query
    select 1 as CustomerID,'Reality' as Type, 100 as Turnover
    UNION
    select 1 as CustomerID,'Budget' as Type, 120 as Turnover
    UNION
    select 2 as CustomerID,'Reality' as Type, 140 as Turnover
    UNION
    select 2 as CustomerID,'Budget' as Type, 120 as Turnover
    I have matrix, where in rows are customers, there is columngroup based on field Type and in details are summaries of Turnover. I need to change background color of Reality field, when lower than Budget. How can I do that please ?

    Hi volyn,
    After testing the issue in my own environment, we can use custom code to achieve your requirement. For more details, you can refer to the following steps:
    Copy the custom code below and paste it to your report. (Right-click report>Report Properties>Code)
    DIM PreviousValue AS Decimal
    Dim CustomerID AS String = ""
    Public Function  GetPreviousValue(byval Val as Decimal, byval CusID as string)  as Decimal
    DIM Local_PreviousValue AS Decimal
    IF CustomerID <> CusID THEN
    CustomerID  = CusID 
    PreviousValue  = val
    Local_PreviousValue  = 0
    ELSE
    Local_PreviousValue =  val - PreviousValue 
    PreviousValue  = val
    END IF
    return Local_PreviousValue 
    End function
    Click the cell which contains [Sum(Turnover)] value, modify the expression of BackgroundColor property to like this in the Properties Window: 
    =iif(Code.GetPreviousValue(Fields!Turnover.Value,Fields!CustomerID.Value)<0,"Brown","White")
    In this scenario, you can change Brown color to any color you like. The following screenshot is for your reference (I added some data to make it more clearly):
    If you have any other questions, please feel free to ask.
    Thanks, 
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Discoverer 4i:i have to create a report based on the two columns

    Hi,
    I have to create a report(workbook) that will have 2 parameters from date & to date.i have to apply a validation that from date should be lesser then to date.Do reply
    Thanks,

    The methods described by user564110 will work, but may not give the results you want. The user will enter the dates, the query will run, and if the to_date is lesser than the from_date, the result will be an empty worksheet with a "no rows returned" type of message. There is no way that I can think of that validate the parameters and warn the user prior to runing the worksheet.
    One alternative condition you could try:
    col_date between least(:from_date, :to_date) and greatest(:from_date, :to_date)It won't warn the users, but will still allow the worksheet to return data.

  • How to highlight a row in a standard report?

    Friends,
    Hope you can help.
    I need to highlight a row in standard report dependent on some criteria.
    Having searched the forum I have been trying to implement the example given here.
    This is what I have done:
    1) Create a new report using the following query
    select decode(deptno, 10, 'class1', 20, 'class2', 30, 'class3') trclass , ename, job, sal, comm from emp
    2) Created a new Report Row Template from scratch and added the details given in the example above.
    3) Placed the CSS Style sheet code in the stylesheet box at the following location:
    Shared Components>Cascading Style Sheets>Edit Cascading Style Sheet
    3) Ran the page
    4) Employee report is displayed but nothing is highlighted.
    What have I done wrong?
    Thanks in advance for any help given (which of course will be marked helpful\correct!)
    Ian

    >
    >
    3) Placed the CSS Style sheet code in the stylesheet box at the following location:
    Shared Components>Cascading Style Sheets>Edit Cascading Style Sheet
    >
    What have I done wrong?The CSS needed to go in the page HTML Header.

  • How to create a report based on the selection of a node of a tree

    Hello,
    I am new to Oracle Apex and I was trying to build a tree and also an interactive report based on the empno column of the emp table.
    I have created a tree based on emp table. Now I want to display records of the employee selected in the tree.
    Here is the tree query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "ENAME" as title,
    null as icon,
    "EMPNO" as value,
    null as tooltip,
    null as link
    from "#OWNER#"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME"
    Can anyone tell me step by step how to go from here?
    I tried to follow the thread Re: tree question but could not understand much from it.

    The approach for reloading the page and displaying the report is quite simple.
    <li>You start by creating a new page item which would be used to store the selected node ID , eg. P100_SELECTED_NODE (you can make it atext item and change it hidden once everything works as expected)
    <li>Modify the tree query and change the link column in the tree definition SQL query to a link to the same
    for example if your page is 100 , you would make the tree node link to the same page but set the P100SELECTED_NODE with selected node's id_
    This done here
    {message:id=4410987}
    In this case it would be
    'f?p=&APP_ID.:100:'||:APP_SESSION||'::::P100_SELECTED_NODE:'||EMPNO as link Now when you click on a tree node link , it would come back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.
    <li> All that is left to do, is changing your Report so that it refers to the new item inorder to filter the records for this employee i.e empno
    SELECT ...
    WHERE empno= :P100_SELECTED_NODE

  • Standard Report on Profitability Segment in SAP

    I need standard report based on profitability segment in SAP or any report in SAP having information related to profitability segment. Any thread is welcome.

    Hello,
    Please use KE30.
    Also you can create your own report using KE31.

  • Standard Report requirement

    Hi Guys
    In my current implementation i have one report requirement.
    Iam giving lot of benefits to my employees. I like to capture all the expenses employee wise.
    I have already uploaded the employee personel number and during transactions we are entering the personel number
    But we i go and check the report, in the dynamic selection the personel number is not available
    Is it possible to take a standard report based on personnel number. If i give a personel number - i should get all the expnese gl accounts done for that employee
    Warm Regards
    Bala

    Hi:
    I have a suggestion.
    Create Employees as Employee vendors in Accounts payable.While creating vendor master, In the accounting information tab, assign the personel no.You have a separate reconciliation account for this employee vendors.
    Make Payments to vendor by using T.code F-53 . You can view the report of all employees to whom payment was made.
    You can view the standard reports to see the payments made to the employees.
    S_ALR_87012103 - List of Vendor Line Items
    S_ALR_87012083 - List of Vendor Open Items for Printing
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

Maybe you are looking for

  • How to change the default admin password for IAS/UDDI

    Using "OracleAS UDDI Registry" 10g Release 2 (10.1.2) http://docs.oracle.com/cd/B15904_01/web.1012/b14027/regwsuddi.htm How to change the default password ias_admin/ias_admin123 http://xxx.xx.xxx.xx/uddi/publishing

  • Journal Entry/Document  headers

    In the journal entry layout, certain fields are coming in the header portions and I want to bring it to line item level so that I can enter the data against line item. For example I have ' Trading partner' field. Rather than coming in document header

  • No image preview

    So I accidentally crashed my system by attempting to get my system to run in 64 bit mode and failed, severely. My boot file was messed up and I just couldn't fix it so I did a time machine restore. But thats all behind me now, and ALMOST everything w

  • Directory service in CUCM

    hello all i need your help in configuring directory service in CUCM, i wanna look directory of extensions in IP phone, please suggest me ways how to fo it as i am using cucm 9.1 and 7945 phones. thanks 

  • Ecatt: ME21N (document overview)

    Hello ecatt experts, I have one question concerning the recording of ME21N with ecatt (sapgui). When creating a PO with ME21N I want to link it to a purchase requisition. To choose a puchase requisistion I use the document overview. The problem which