Highlight and disable report row

Apex 4.2.1
In prior releases, the recommended way to highlight a row in a classic report region involved creating a new generic column report template and using the PL/SQL condition on the template to add a CSS class/style to the report data cell.
Thats's too cumbersome! Is this still the easiest way to do it or is there some nifty, declarative, jQuery-powered way to implement this in 4.2.1?
By disable I mean that if there are some actionable INPUT fields on the row (INPUT tags like checkbox or radionbutton), they should be disabled/grayed out.
Thanks

:-) I guess some jQuery magic like
$('table.report-standard td').css('background-color','pink');
$('table.report-standard tr').find('input,select').attr('disabled','disabled');works but doing it conditionally based on some data in the row is slightly more tricky. Something like td:contains("foo").closest("tr").find('input,select') should work.
Anyway, I think I got the general idea. Thanks

Similar Messages

  • Toggle the highlight of a report row on and off

    Greetings,
    I am using Apex Version 4.1.
    What I am trying to do is to toggle the highlight color of a row when it is clicked. I have done this with a dynamic action that runs this:
    $x_RowHighlight(this.triggeringElement,'yellow');
    I would like to be able to 'unhighlight' the row if the user clicks on it again. For that I need to know if the row is already highlighted when the click happens. It seems simple enough but I have not been able to figure out if the row is currently highlighted.
    Thanks for your help.
    Larry

    you could try getting the background color and figure out if it is highlighted or not
    window.event.srcElement.style.backgroundColor;

  • How to disable highlighting in Crystal Reports 2008

    Hi,
    does anyone know how I can disable highlighting of fields when using the .NET 2.0 CrystalReportViewer 2008?
    See as example: http://i31.tinypic.com/30ivshs.png
    The problem is, that the highlighting is meaningless and thus confusing, and additional to that it also leaves lightgray artifacts (background of the field9 on the screen after highlighting. The latter problem is not happening on every configuration though, probably related to color settings.
    Regards,
    Florian

    I do not see this highlighting in my reports, unless I design them to be as such. Questions and a suggestion:
    Do you see this highlighting in the CR designer?
    Is this a web or a win app?
    Download SP 2 for CR 2008 (12.x) and see if this helps. SP 2 is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    Ludek

  • Report row highlight based on a page item

    Is there a way to highlight a report row based on the value of a page item?
    In my case I have a report where the application user requests data in a detail report using a column link in the master report. This loads an id number from my report into a page item (say :P8_ID for example). If this item is null, I want the report rows to all render normally (nothing is selected or the detail report has been closed). If there is an id in that field then I want the row containing the information about that item to highlight (its column link has been clicked selected it to bring up a detail report).
    At first glance, this looks similar to Vikas solution (Change the Report row color when clicked but I am trying to make the connection between what has already been done and where I need to be.

    After looking back, I discovered my value was being set after the report rendered. When I re-organized my calculations and the rest, it worked.

  • Report - Disable some rows

    Hey everyone,
    I have created a report und want to disable the items in a line if the of the line has a defined value.
    So if the value is 'declined' the line should be complete disabled but not hidden and if the value if 'open' the line should be changeable.
    Is there a way to implent this idea?
    Thank you in advance.

    Since you don't use ,apex_item API's disabling(or making them readonly) cannot be done from PLSQL (using the p_attributes parameter of the apex_item api's)
    So we are going to use some Javascript that fires on load (execute or load or a dynamic action that fires when page loads or onload="function_name" in older versions)
    I am going to assume that the "declined value" is for some editable(input)field in the report and if it equals the string "declined", we will disable all the other editable fields of the report row, open up the HTML code for this feild find this field's name attribute. It should something like name="fXX" (01 to 50)
    As an example I am using f05
    $('[name=f05]').each( function(){ //loop through all rows (rather columns values of declined column in all rows)
      if ( $(this).val() == 'declined') { //check if it matches the string
        $(this).parents('tr:first').find('input,textarea,select').attr('disabled','disabled');  //disable all editable fields in this report row
    modify the field name as per your case
    Add the code to be executed on load in one of the ways mentioned above.

  • Report Row Height and Column Width

    Hi,
    I have a cell in a report (a description column) that causes the row height to become very large (when there is a lot of text in the description). I can make the column wider on the report attributes page, but there doesn't seem to be any place to influence the maximum height of a row on a report, short of modifying the template.
    Adding style attributes (e.g. max-height:30px) to an element only affects the <span> that the element resides in, not the table cell or row.
    Displaying the column as a text area is a useful workaround. The downside is the border and scroll bars do waste a lot of screen real estate. Does there exist some other way of setting a limit on the height and/or width of a report, report column or report row?
    Oh, and another question- how do make line breaks in this forum? There's no support for <BR> or [br].

    Please reply to this thread, my customer is facing the same issue. He does not have issue with the excel and the pdf output but in the rtf output the table heght increases to accomadate the data.He want it to bevave in the same way as the pdf do.
    Regards,
    Ajay

  • TS3274 On my ipad, why do I have to highlight and double tap to do something. How do I disable that function.

    I changed something on my iPad and now I have to tap to highlight and then double tap to get the function I highlighted. How do I disable this?

    Go to Settings > General > Accessibility > VoiceOver and turn this Off.

  • Add dynamic buttons to each report row and bind the row data to buttons specific to that row

    I have a page with a form at the top and a report at the bottom which is tied to a table. I need to add a pair of buttons for each row of the table and add dynamic actions for these buttons. I need to submit the data corresponding to the row to a REST service and refresh the table/row. I know it is possible to add ajax call and refresh the table after the response is received. But I am not sure how I can dynamically include a pair of buttons on each row and have the access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.
    Below is the representation of how I need the page to look like.
    Col 1
    Col 2
    Col 3
    data 1
    data 21
    data 31
    Button 1
    Button 2
    data 2
    data 22
    data 32
    Button 1
    Button 2
    data 3
    data 23
    data 33
    Button 1
    Button 2
    data 4
    data 24
    data 34
    Button 1
    Button 2
    I should be able to access data 1, data21, data 31 from button 11 and button21 etc.

    select data1,
              data2,
              data3,
              null button1,
              null button2,
              rowid r_id
    from .....
    If you edit the column for button1 and navigate to the Column Formatting region you can create your button here, several different ways.  You will need to play around with how you prefer.  See below:
    <input class="button1" type="button" id="#R_ID#" value="label for the button" /> or <button id="#R_ID#">label for button</button> or you could use <a> and apply css of your theme.
    You also create both buttons in a single column.  From here you can reference any of the columns from your select by using the #COLUNMNAME# format (as I did with R_ID).
    You will next need to something similar for all columns you want to be able to grab when you click the buttons.  See below:
    --- This would be for data1 column
    <span id="D1-#R_ID#">#DATA1#</span>
    You would do these for each column that you want access to when button clicked as mentioned above.  You could bypass this step and use jquery to traverse the DOM using .closest() and .find() and give each column a distinct class.  Is is your preference.
    You would then create a dynamic action triggered when .button1 is clicked.  Now that you have that object you can get the id of the triggering object which would be your r_id and from there you can access all your individual data points(all this done in a javascript in the dynamic action) and assign to hidden items on your page.  The next step of that dynamic action you could execute pl/sql and pass those in page items.
    Hope that all makes sense.
    David
    Message was edited by: DLittle
    Just as a bit of clarification:  the r_id column does not have to be rowid, but it does need to be unique for each row return.  You could use your primary key or rownum.  Whatever works for your scenario.

  • Disabling reports printing and generating to a file

    Can any one help me, i want a database function which disable printing and generating reports to a file where:
    - i have so many reports, so i do not want to put the function inside each report source
    - the printing or generating conditions varies from a user to another (authority rules)
    - i have 8i database

    first of all, i would like to thank you for your cooperation
    i will make it clear, answering your questions:
    - my reports version is 6i
    - we are using an ERP calling the standard (system built in) reports and the customized also from a form (so i do not have the system built in reports source (which are so many))
    - i only want the users review the reports on the screen only without printing or generating to a file (data security matter) so i want to enable these functions due to rules
    - i want it as a database function because of the previous information
    Edited by: user2212473 on 11/04/2011 06:11 ص

  • Education and Training Report produce a blank row

    Hi Experts,
    I run Education and Training Report to get a list of employees education. It shows a list of education report but there's a blank row for some employees and others are not. For employees who didn't have education data, it gives a blank row for that employee. I've checked the table and there's not a blank record for each employee. Anyone knows about this probelem?
    Thank you for your responds.
    Regards,
    Erli

    Hi,
    I am talking about SAP Personnel Administration Report - Education and Training (T-code S_PH9_46000224).
    Thank you for your respond.

  • Get Crash Reporter EVERY time I try to open Firefox. Installed latest version and disabled or deleted all add-ons. Still not working.

    Updated Firefox to latest version and disabled or deleted all add-ons. Still get Crash Reporter.
    Firefox DOES open in Safe Mode.
    Ran MalwareBytes, AVG and SuperAntiSpyware. No viruses.
    Restored Firefox to its Default State.
    Checked for missing files In windows using Windows System File Checker in Command Prompt. There are none.
    I am running Windows 7 Ultimate on a Dell XPS 400.
    Everything else on my system works fine except for Firefox.
    KEEP GETTING CRASH REPORTER!
    Frustrated now.

    Thanks. I'll take any kind of practical help I can get at this point.
    I filed a crash report RIGHT BEFORE I did this so this first one is DEFINITELY ME.
    [[https://crash-stats.mozilla.com/report/index/bp-bae3319d-801e-4ca5-902a-2cc2d2130404]]
    ID: bae3319d-801e-4ca5-902a-2cc2d2130404
    [[https://crash-stats.mozilla.com/report/index/bp-d927527a-622e-47f4-8fba-89aa22130404]]
    ID: d927527a-622e-47f4-8fba-89aa22130404
    [[https://crash-stats.mozilla.com/report/index/7c47c3e6-e5e5-4eb1-af17-09ab32130331]]
    ID: 7c47c3e6-e5e5-4eb1-af17-09ab32130331
    [[https://crash-stats.mozilla.com/report/index/bp-a7fe1588-1fcb-4da8-88b0-e963e2130330]]
    ID: a7fe1588-1fcb-4da8-88b0-e963e2130330
    [[https://crash-stats.mozilla.com/report/index/bp-b73ffa4b-2bec-4d42-ae7d-f39492130330]]
    ID: b73ffa4b-2bec-4d42-ae7d-f39492130330

  • How to enable only current row and disable others?

    Hi,
    We have a requirement like, the top row only should be editable in a detail block. For example,
    Item No. Item Name Qty
    1 Item1 1
    Add Row --> button
    when i click this "Add Row" button a new row should be created with editable text boxes for all 3 columns. and the existing row should become display only row.
    Could you any one please tell how to do in APEX?
    Thanks & Regards
    M Thiyagarajan

    Hi,
    Try this link:
    Re: Tabular Form Question
    Regards
    Rana

  • 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

  • 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

  • GT70 2PC – Software testing and performance report.

    It is so excited here again. Currently, my first/only object after work is playing Titanfall.
    I intended to share another performance testing today. But I didn’t. I found there are too many great open box posts on different forums. Therefore, I decide to dig the MSI software compatibility and do a touring. What can I say? I’m Mr.Curiosity who really desires to know every built-in application in system. That is why I share this article with you, my friends. I would like to discuss with everybody who is interested in MSI software. Of course, I have some performance reports for you, too. Please also remind me if you find any typo/wrong in this post. Thanks in advance.  
    1. MSI Boot Configure
        This is the first software which pops up immediately. It is thoughtful design because we can choose enter the [Windows 8.1 metro] or [desktop] by ourselves now. I give it two thumbs up!!!
    Select your favorite boot configuration and press [OK]. If we want it work immdiately, we can logout the system and re-login again.
    2.   MSI Remind Manager
    Honestly, I didn’t know what it is in the beginning. The cute robot shows every time when I login the system. I found this is a reminder for product registration. Good, I would like to have best MSI support and warranty for my lovely GT70 2PC. But don’t worry, if you don’t want to get this message again, you just need to select the right option and close it.
    3.   Synaptics TouchPad
    This is a driver for mouse. [Mouse property] will show if we do the double clicks on TouchPad icon in tray. You can choose enable/disable internal pointing device when external pointing device is attached. This is brilliant. A tough guy (like me…HA! HA!) didn’t like to play game with touchpad. Because the character in game will be weak and slow if I control it by touchpad. Of course, I need the external mouse all the time and don’t want the interference from touchpad.
    4.   System Control Manager (SCM)
    We can enable/disable the WLAN/BT/camera devices by SCM. Besides, it can control the display brightness, volume, screen on/off and ECO. ECO is special mode for gaming watching movie.  
    5.   Sound Blaster CINEMA
    Sound Blaster CINEMA is come from an old school audio company – CREATIVE. The software can adjust the surround sound easily. We also can adjust 5.1/7.1 surround sound for the internal speakers and external headphone. That is great, isn’t it?
    Besides, we can also adjust CRYSTALIZER/BASS/SMART VOLUME/digital output by ourselves.
    6.   Killer Network Manager
    This is a major feature of MSI NB.
    In Killer Network Manager, we can set the network priority for each of applications and we also can abandon the connection from malicious software.
    [Performance] shows current status of network. We can find out which application occupied the most greedy resources by it.
    [Network -> Test Network Speed] will detect the network environment automatically. Furthermore, it will adjust the priority for applications.
    [Killer Ethernet] show the LAN connection info.
    [Killer Wireless] show the router info.
    7.   SteelSeries Engine
    This is another major feature of MSI NB
    If we do the right click on icon in tray, the menu will show following list. We can select [Launch SteelSeries Firmware Update Tool], [Updates]…and so on.
    If we select the [Settings]. It can help us change default language and set application auto running when system power on.
    I.   Buttons
    Double click to open the SteelSeries Engine. I think it can set 4 different keyboard settings for each of profiles. And it can switch by FN+1~4.
    [Keypress Marc] can record what you input. And [Record Delays ] can modify the delay time. HA! No game can block us anymore. Please remember to press the [SAVE] for your setting
    [Launch Application] can launch any application immediately. I suggest to set the cold key for this function.
    Here is example. I use [PgUp] to quick start the 3D Mark11. See, it will pop up when I pressed [PgUp].
    It is simple to use [TextMarco] set our own phrase. Now I become a quick speaker in my team. One key, only one key can help me to type a lot of words.
    Are you tired to press some keys that you never want to touch in game (Like WIN KEY)? It is not the problem now.  [Disable Key] will do the favor and disable any key which you hate.
    II.   [Colors] can change the color of backlight keyboard. Also, you can set different modes (Gaming/Audio…etc) on it.
    We can change the color zone. There is not only 4 or 5 colors. The engine provides thousands of colors for us. [Audio mode] is the coolest. It will change colors by itself when we play music by speakers. I like to dance with my keyboard.
    III.   We can select different languages by [Settings].
    IV.   [Properties] can save our hard works of settings reliably.
    V.   If you want to defeat your competitors, it is important to know your enemy. However, It is more important to know yourself. [Statistics] can help us observe which keys are most popular by our fingers.
    Right click on [Profile]. It can modify/export/import/delete the profiles.
    Mouse can use the same kind of settings as keyboard.
    DPI setting for mouse.
    Save files.
    We can record the mouse, too.
    8.   Norton
    Norton Internet Security: Anti-Virus software, MSI provides 60 days for free.
    Norton Online Backup: Online data backup software, MSI provides 30 days for free.
    Norton Anti-Theft: Anti-Theft software, MSI provides 30 days for free.
    If you like Norton’s products, you can buy it online.
    If you don’t, I believe we can uninstall it directly.
    So, the decision is ours.
    Introduction from Norton official website
    9.   Dragon Gaming Center
    I.   System Monitor:
    It can monitor CPU/GPU loading and temperature. We also can find the network speed and fan speed in it.  
    II.   Utility:
    You can set your favorite apps in [Add new Utility].
    E.g. I added a [MSI Afterburner]. Click [Open] to build the link. Do you feel familiar with something? Exactly, [Launch Application] of [SteelSeries Engine] can do this, too.
    III.   Instant Play:
    We can define [Fn+F4] to enable the quick start. But there is more secret.
    We can also use [Browse] to assign the game which we want.  
    Click the icon of game and [Fn+F4] will be ready. We can only use 1 program at once.  
    I usually change the brightness, volume and mouse sensitive before the game. As you know, every games are different. It is sweet because we can use  [Apply Setting] to do this.
    I can’t believe it. We also can find the clock feature in it. How convenient it is!
    IV.   Hybrid Power is another MSI feature.
    It can provide the power by AC adapter and battery in the same time. We can monitor the status in here.
    10. BurnRecovery
    It can create the recovery CD/DVD/USB for MSI NB.
    Here can select Recovery disc/USB/ISO.
    I will make a ISO file first.
    We can select where to put the ISO.
    Creating the recovery file...
    Finish!
    Open the folder and we can find 4 ISO files in it.
    Well…[BurnRecovery Help] provide the details spec.
    In my opinion, everyone should create their own recovery image. You will need it in one day.
    11. Battery Calibration
    This is software for battery calibration. In order to keep our battery good, we should do the calibration every three months. Don’t forget to plug-in the AC adapter and battery during the process..
    Press [Start] to begin the process. It will make the battery fully charged first.
    Then, it will empty the battery like this.
    System will shut down after the empty process. At last, fully charged again. It will take 4~5 hrs to complete the process.
    12. MSI Dragoon Army /MSI Facebook /Web site /YouTube
    Those are MSI forums/Facebook/official website/YouTube and links.
    [MSI Dragoon Army] is the official forum for MSI. We can find NB, MB and AIO info in it.
    Facebook Quick Link for many countries of world.
    MSI official website
    YouTube channel of MSI.
    13. Super-Charger
    There is no message when I click this app at the first time. But when I attached my IPAD, it pops up the [Super-Charger]. It is amazing because IPAD can’t be charge by this USB port. As far as I know, the USB 3.0 only provides maximum 900mA for its device. IPAD will need 2.1A for charge process. I have no idea how MSI NB make IPAD charging okay.
    14. XSplit GameCaster
    This is one of important features. I saw many different first class gaming machines this year. All of them have the broadcast software. (Like PS4, Xbos ONE)
    It can switch the default language after we login.
    Twitch/YouTube / Facebook/ Twitter/Google+ can be used by [Accounts]. It is easy to start the live show.
    We can modify the resolution and use twitch by [Setting]
    We can configure FPS/CPU loading/where to show on display by [Status label].
    Hotkey configuration.
    Videos storage.
    Press [Ctrl+Tab] to call Gamecaster in game. And we can twitch or modify setting. I will provide my gaming video for you later.
    15. Power DVD
    This is a famous video player. Also, it can support BD format.
    We can use the [Setting] to change our language.
    We can change 5 times for default country .
    It is glad that I’ve finished the introduction of GT70 software.
    Performance report:
    Um…Now is late at night. I should go to my lovely bed.  Following is the testing report for the reference.
    1.   FurMark
    1920*1080, 15 minutes.
    2.   AIDA 64
    CPU and GPU stress testing, 30 minutes.
    3. 3D Mark 11
    4. 3DMark Vantage
    5.   3DMark 2013
    6.   Heaven Benchmark 4.0
    7.   CINBENCH 11.5
    8.   FINAL FANTASY XIV Benchmark
    9.   PCMARK 7
    10.   HD Tune Pro  5.50
    11.   AS SSD Benchmark
    12.   Crystal Disk Mark
    I didn’t forget my promise. Here is my gaming videos
    http://youtu.be/tCd5Lnj2U0I

    Editors' Choice Award. Good job MSI !!
    http://www.computershopper.com/laptops/reviews/msi-gt70-dominator-893#review-body

Maybe you are looking for

  • How to Create a Group in OID Using oracle.ldap.util Classes

    Hi, I've searched hi and low to find out how to do this, but with no luck. Could someone share the code they would use to do this, please? Thank you, Dave

  • Blue Tooth issues - connecting Mac Mini to Bose Speaker

    I am trying to bluetooth my Mac Mini to a Bose Soundlink Mini speaker. I've successfully paired the devices, but I can't then some to get them to connect. Anybody experienced a similiar problem? Any suggestions for solutions gratefully received. Than

  • How to select value of selectOneChoice

    Hello, First of all I want to describe what I want to do and then the preconditions for my case. What I want to do: I simply want a <selectOneChoice> Component which represents an enumeration of values. In database there is a column which has the val

  • Rank Question

    Hello, Why does this SQL not work in a PL/SQL function in my report? rank() over (ORDER BY column_name DESC) AS column_name I am wanting a report that looks something like this... Name     01/2002     Rank     02/2002     Rank     03/2002     Rank   

  • My wifi just stopped working on my iPhone 4. I need help

    My wifi just randomly stopped working. It's working for my Xbox and other stuff so I know there's something wrong with my iPhone.. Please help