Conditional Formatting for Report Rows based on page item

Hi,
I have a report and a page item on a page. I would like to somehow highlight any report rows where a particular column in the report (e.g. "Customer_ID") matches the page item (e.g. P2_CUSTOMER_ID).
Any idea how to do this?
Thanks,
Forrest

You can also achieve this by jquery ( Please note - I just started learning jquery , so my way of doing it may not be a good way of doing it)
1. Download jquery from [http://www.jquery.com]
2. In Page Header enter
  <script type="text/javascript" src="#WORKSPACE_IMAGES#jquery.js"></script>
   <script type="text/javascript">
   $(document).ready(function(){
      //t20data is the class for table cells in theme 20 .. change it as per you theme - right click view source and find it
         x = $('.t20data').length;
     //i=7 is the column index of customer id
    // i = i + 10 , 10 is the number of column
       for( i = 7 ; i < x ; i=i + 10)
            if($('.t20data').eq( i ).html() == $x('P2_CUSTOMER_ID').value)
                // i-7 is the first cell of row and i+2 is the last cell of row 
                for( c = i - 7 ; c <= i + 2 ; c++)
                     $('.t20data').eq( c ).css("background","red");  
</script>[ E X A M P L E | http://apex.oracle.com/pls/otn/f?p=62171:1]
Regards,
Shijesh

Similar Messages

  • Color report rows based on a value in that row

    I would like to Color report rows based on a value in that row.
    For examplle with the "EMP" table:
    I would like job=MANAGER to be red and job=CLERK to be green etc etc
    The other example I found only had the option of one color either the highlight or the default color.
    I am looking for a way to do multiple colors.

    Hi,
    In the row template, you can use #1#, #2#, etc to indicate where a field in the report needs to be output. This does not have to be plain text - ie, you can use it within style tags if you like.
    So, take a query like:
    SELECT EMPNO,
    ENAME,
    DEPTNO,
    DECODE(DEPTNO, 10, 'green', 20, 'red', 30, 'cyan', 'white') BG_COLOUR
    FROM EMPYou get columns 1=empno, 2=ename, 3=deptno and 4=bg_colour. In the row template, you can then do:
    Before Rows setting (sets up the table):
    &lt;table&gt;
    &lt;tr&gt;&lt;td&gt;ID&lt;/td&gt;&lt;td&gt;Name&lt;/td&gt;&lt;td&gt;Dept&lt;/td&gt;&lt;/tr&gt;After Rows setting (closes the table):
    &lt;/table&gt;Row Template 1 (used for ALL rows):
    &lt;tr style="background-color:#4#;"&gt;&lt;td&gt;#1#&lt;/td&gt;&lt;td&gt;#2#&lt;/td&gt;&lt;td&gt;#3#&lt;/td&gt;&lt;/tr&gt;Then, for every row, the colour that has been calculated using the DECODE function will be used in the style tag to colour the background for the entire row.
    How you determine the colours is up to you. I've used DECODE here, but you could use a field on the DEPT table to hold this and use this in your SQL statement.
    Andy

  • Conditional format of one cell based on contents of another cell

    Preparing list of appointments for visitors with time for each. There are four possible status categories for visitors based on projected activity and whether they have shown up or not. (A Group Scheduled, A Group Showed, B Group Scheduled, B Group Showed). I've created the calendar in iCal with different calendars, then accessed that through Bento iCal Events. Bento adds the column with name of calendar from iCal. Info is now in Numbers. (iWorks 09)
    It shows Title, Start Date, Location, Calendar. I'm adding more fields using Lookup in Numbers drawing on entire data base brought over from Bento. I'm trying to get what info I need, but none that I don't, so the form isn't too crowded and busy.
    I would like to be able to conditionally format the Time column based on the contents of the Calendar column. If successful, the color of the Time column would tell me all I need to know about visitor status, and I could hide the Calendar column and clean up the form.
    I hope I've described it adequately. Can this be done, and if so, how?
    Thanks! Have a great Thanksgiving!

    jpcranch wrote:
    Does it work to format two cells based on contents of one of them?
    Conditional formatting of a cell depends on the contents of that individual cell, compared with another value, so no.
    But you could use a two-table approach.
    In general terms, the technique is to:
    • make the original table's cell fill transparent,
    • Add a second table to the sheet,
    • Set the second table to copy the control values into a column of cells,
    • Select the cells in that column of Table 2,
    • Apply conditional formatting rules for each possible control value (see below)
    • Set the text opacity for these cells to 0 (full transparency),
    • Click on Table 2 in the sidebar, then use (shift and) the arrow keys to slide Table 2 behind Table 1 to align the highlighted cells with the cells to appear highlighted in Table 1.
    • Set the colour of the cell borders on table 2 to none.
    Using the information you gave regarding the calendar column, you'll need four rules for conditional formatting of this column. All are of the same format:
    Text contains: A Group Scheduled
    With the text changed to match each possible entry.
    Regards,
    Barry
    BTW: by changing the width of the formatted column on table 2, you can appear to highlight as many columns as you wish on Table 1.

  • How to create print format for report

    Hi Experts,
    Can we create print format for report program. I need x_90_150 format,
    means 90 rows and 150 column. If possible then give me solution.
    Thanks,
    Ashish.

    Get with your Basis folks to set up a 90x150 printer option.
    Then you set something like this.
    REPORT zlmr_lead_account_list LINE-SIZE 150 LINE-COUNT 90.

  • Charts based on page items

    Hello,
    I want to create a Pie chart based on page items. There are 3 page items that I want to use for an Pie chart. The page items are calculated in an page process PL/SQL block and they are numbers. I want all PL/SQL in that page process and from there built the Pie chart. Is this possible to use the page items for the pie chart, I can only find information to build charts with querys.
    I use apex 4
    Edited by: Martijn Brands on 1-sep-2010 2:46

    I have used an function with three values as input and returning an pl/sql table with the three values.

  • Check for null values in conditional formatting when no rows returned.

    I have a report that is showing facts for different months.
    For some months there is no row in the facts table.
    But in the report, I have to show a * when there is no data.
    If there is a row in the facts table with null value for data, the conditional formatting successfully shows a * when data is null.
    But when no row is present in the facts for a particular month , conditional formatting is unable to detect any null, as none exist.
    How we can check that no rews returned for a particular month and then show *?
    thanks

    Hi,
    which obiee version r u using?
    My Blog ref:
    http://obieeelegant.blogspot.com/2011/06/replacing-null-as-0-in-obiee.html
    in obiee10g its working fine.expect obiee11g
    also see the bug reference
    How to replace null as 0 in  obiee11g pivot table view?
    obiee11.1.1.6.0 also have the same issues.
    Thanks
    Deva

  • How to make a table column block editable for a row and remain non editable for other row based on some condition

    hi ,
    i need help on the below scenario ,
    we have a web dynpro table with different columns, now based on new business requirement  one of the column need to     
    dynamically editable or non editable for different row.
    for ex :
    Field 1
    Field 2 ( Dynamic field )
    Field 3
    Field 4
    Data 11
    Data 12 ( Editable with Drop down   )
    data 13
    data 14
    Data 21
    Data 22 ( Non editable )
    Data 23
    data 24
    Data 31
    data  32 ( Editable with drop down )
    data 33
    data 34
    how to achieve this ? please help on this.
    Thanks in advance
    Thanks
    Manish

    Manish,
    there is no proper way to insert two Cell Editors in a column(except variants), have a look on below scenario, it may help.
    add one more attribute to your table context node for read-only.
    create dropDown as celleditor for table and bind with newly created attribute to read-only property of dropdown.
    before binding data to table, check the condition then mention readonly value abap_true / false.
    @ we can achieve by the use of Variants.
    for ex :
    Data 11
    Data 12 ( Editable with Drop down)
    data 13
    read-only - abap_false
    Data 21
    Data 22 ( Non editable, dropdown )
    Data 23
    read-only - abap_true
    Data 31
    data  32 ( Editable with drop down )
    data 33
    read-only - abap_false

  • Apply conditional formatting for a textbox in a matrix that contains an expression

    I have a matrix that contains one row, and one of the columns in this row (a field ) contains an expression. I know this field is "Textbox24" but anyway, I have created a placeholder for this field and in Placeholder Properties I have given the
    label "PD". Note that the Value in this placeholder shows "Expr" because it contains an expression.
    I don't think this is relevant, but just in case, the expression is:
    =Code.GetPercentageDifferenceBetweenCurrentAndPreviousValue()
    where GetPercentageDifferenceBetweenCurrentAndPreviousValue is custom code for the report which returns a decimal value. This works correctly in Preview mode.
    I now want to apply conditional formatting on this field so the colour of the font changes depending on the value of the expression. I clicked on the text box of that field, and in Properties > Color > Expression > I entered
    =IIF(Fields!PD.Value >= 50,"Green","Black")
    When I go to Preview mode I get the error "The Color expression for the text box 'Textbox24' refers to the field 'PD'. Report item expression can only refer to fields within the current dataset scope or, if inside an aggregate, the specified
    data set."
    I have tried a couple of other forms of the sytax for Fields!PD.Value but it doesn't work. Is my problem a syntax problem or a scope problem, and how do I solve it?
    Thank you

    From your description, PD is not a field so you cannot reference it as a field. You can do what you want by referring to the textbox:
    =IIf(ReportItems!Textbox24.Value >= 50."Green","Black")
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Conditional formating in report painter (GRR2)

    Hi all,
    An end user ask me if it's possible to do a conditional formatting in a cell of report painter (run with GRR3) if the value is true (i.e. as in excel, you can colour a cell if it's less than zero and so on). I know that it's possible with the BEx (for SAP BI), xcelsius, crystal reports and surely with bussiness object. I can see that it's only available do the format for the all column or for a line, but I don't  find the option for a cell with a condition (surely because it isn't available).
    Please, confirm me if it is not available, because I'm a long time looking for a reply but I only find info about BEx, xcelsius and so on (nothing related with report painter, GRR2 and so on). But if it's possible, please let me know how to do it.
    Thanks in advance
    Best regards,
    Eduardo

    Hi,
    I don't think that we can put the conditional formula. but we can do the calcualtion by row wise or column wise.
    Thanks.

  • Conditional formatting in report designer.

    Hi All !
    What is conditional formatting & how to do it ?
    does it act like condition which we do in BEX query designer ?
    Can we restrict values using this at the report designer level ?
    Regards
    Tom.

    Hi,
    Conditional Formatting: You use this function to set a design that deviates from the design for selected characteristic values, hierarchy nodes, and so on, that is set by the default row patterns.
    Conditional formatting can only be applied to characteristic values in dynamic sections of a data provider. A query (or query view) with one or more characteristics in the drilldown forms the basis of a data provider with a dynamic section.
    Take a look at the URL below:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/f4b8c3a7dd7065e10000000a1553f6/frameset.htm
    Regards,
    Kishore
    Message was edited by:
            Kishore Sivakumar

  • Conditional display of report row

    Hi All,
    I've a report form and have a LOV for a column. Based on the data selected in the LOV I need to populate some more rows to that report.
    It is basically like a survey page where depending on the answer provided by the user, sub suvery question needs to be populated. For example if I select "Married" for maritial status another question should be populated asking for Spouse Name. All the queries are stored in a same table with Parent question ID to link Child question to Parent Question.
    Any clue on how to do this.
    Thanks in advance
    Prasanth

    a. It is a report on table and one column is editable with a LOVThat is Tabular Form or Updatable report. Implies there is a ApplyMRU/ApplyMRD process to perform the update.
    >
    b. APEX 4.1
    >
    The solution will depend on your database design. You may need to review in the light of the page design you will do.
    I don't think I will get into the code for this as it will be fairly nifty and will require a study of your database design.
    At a high level:
    a. Create a table(s) for keeping your questions, say Questions.
    b. Next you need to decide how you want to store your "rules" for selecting questions based on prior responses. Rules may be built into the database design or external processing based on column(s) in the question rows.
    c. Create a table for Responses. Populate it with the mandatory questions.
    d. Base your Tabular form on the Responses table
    e. Each time a use makes a selection in a row's LoV submit the page to loop back on to itself.
    f. In OnSubmit processing, after the Responses table has been updated, add the relevant rows from your Questions table to the Responses table using your rules in a Page Process.
    h. When the Form is displayed again the new questions will be displayed as the corresponding rows have been inserted into the Responses table in the process referred to above.
    Of course, you will need to write some more code for situations where a user goes back and changes the Lov of a prior question that affects related questions....
    Cheers,

  • Display interactive report rows based on user role.

    Hello,
    Can anyone please help me out with this issue. i have an interactive report and now i want to make this report as conditional based on user role. Like i want to dispaly all the report rows for an Admin user role and for a developer I want the report to display only his/her rows. Can anyone please help me how can I resolve this issue.
    Do I need to have two separate reports for each role or can we make achieve this with only one report.
    thanks,
    Orton

    Here is a possible answer.. Build your Interactive report off of a collection. And when you build the collection you can build an if statement to either build your select with or without the filtering of user_id..
    See this blog entry for how to build a interactive report from a collection: http://www.oracleapplicationexpress.com/tutorials/71-oracle-apex-interactive-report-based-on-plsql-function
    Thank you,
    Tony Miller
    Webster, TX

  • OBIEE 11g : Conditional formatting in Chart view based on different column

    Hi ,
    I would like to add formatting to the bars based on another column.
    Ex: I just want to highlight bars(metric) when it is less than target value.
    We have conditional formatting option in charts but , its working on the same column but not comparing with other columns.
    Thank you..

    Hi, If you have column A and column B , and for example you want the values of column A to get formatted if the the correspoding value of column B less than a specific value. You just go to Criteria -> Get to Column A -> Column Properties -> Conditional Format -> Add Condition -> Choose your Column B , and then make sure the condition is " Less than the value you want"
    Now, In case you want the values of your column A to be formatted if they are less to the corresponding value of colum B, Well, I don't think it is natively integrated, but still, here is an idea :
    You drag again your column B , so that in Criteria -> Selected Columns , you'll have the columns A - B - B , then, you go to the newely added B Column -> Edit Formula and modify the formula to be ColumnA Minus ColumnB.
    Then go back in selected columns to your A Column -> Column Properties -> Conditional Format -> Add Condition -> Choose now the new column ( ColumnA Minus ColumnB ), and then make sure the condition is " Less than the value *0* "
    You can later, go and hide the colum A Minus B from Edit View in Results.
    Hope this helps.
    Cheers
    Salma

  • Using conditional format for company logo

    Hi
    Before running the report, customer, will enter some data into the promt(Entity dimensions - Holding structure)
    Every company has unique logo, and depending on selection , in report should display the company's logo
    Is it possible?
    Regards
    Alexander

    One way you might be able to do this is to have each logo/graphic on a separate text row and then add conditional suppression on the rows only to show that row if it matches the required value for the entity.
    Depending on how many entities you have it could be confusing and be maintenance intensive if new entities were added.
    Hope this helps. Cheers.

  • Graphic/Image not displayed with conditional formatting in Report Designer

    We are facing problems with displaying an image in a conditional formatting in the Report Designer. The image itself is in the mime repository and can be displayed in the report if no conditional formatting is used. But if it is used the image doesn't appear in the report.
    Backend setup: SP 8
    Frontend setup: Patch 8, hotfix 2, Revision 95
    Any help is highly appreciated.
    Sven

    Hi,
    I could not reproduce your problem in internal SP8 system. Also images in rows with conditional formatting are displayed.
    Do you get any errors after the execution in the portal?
    Try to use exactly the same image in both rows (drag-and-drop with CTRL key pressed).
    If then your problem still occurs, open a customer message. Describe your problem in detail and write technical name of the report you used.
    Regards, Karol

Maybe you are looking for

  • JVM Crash: with jre 1.6.0_18 but not with 1.5.0_14

    Hello everyone, I got the problem that my JVM crashes when I am using the jre 1.6.0_18 but the same code runs with an jre 1.5.0_14. The code contains some JNI parts and is compiled with a JDK 1.5.0_14. The crash can not be reporduced within a debugge

  • R/3 forms on Portal

    Hi, System: We have EP6SP2, ITS and R/3 4.7 installed on three diff machines. Situation: When I create SmartForm and call it in the portal via the ITS, automatically the output goes to Adobe Acrobat Reader from where I can print the form output. Prob

  • How to hide. textInput in UIX file....

    Hi, I need to hide.. textInput in the UIX file... is their any way to do it! following is the part of UIX file, in which i just need to hide the textInput <cellFormat> <contents> <textInput name="${uix.data.constants.RESPONSIBILITY_PARAM}" columns="4

  • Query Regarding Workflow........plz help its urgent.

    hi friends Here is my query in Workflow I would like to know when a work item gets triggered.? I know that its a run time object,but i want to know is there any such condition which must satisfy before any work item gets triggered,or is there any pro

  • HT4976 Why won't iMessage let me message back

    I have tried to text back but it won't send and I have tried resending but it still won't let me send back