Easy way to highlight the row you are editing

Hi,
How can I easily highlight the row in a report with an edit button when I click this button. If I click it I go to another page but when I come back( After saving modifications) I want the row I just edited highlighted
Thank you for the help
Erwin

Hello Erwin,
First, you need to add an ID to every row in your report, so you’ll be able to manipulate it on the DOM level. Duplicate your report template, and edit the Before Each Row field to look similar to the following:
<tr #HIGHLIGHT_ROW# id="#ROWNUM#">I’m using a hidden item on the report page, to hold the rownum of the report line I’m branching to edit. I’m setting this item in the link column (or in the f?p URL) to be #ROWNUM#.
I’m using an onload event to fire the following JS function:
function colorLinkRow(pItem, pColor) {
   var elm = $x(pItem);
   if (elm.value > 0) {
     $x(elm.value).style.backgroundColor = pColor;
}The pItem parameter is the hidden item name, and the pColor is the background color I want to use.
This code assuming only one report region per page. Otherwise, you need to take different approach to setting unique IDs to your reports lines.
Regards,
Arie.

Similar Messages

  • Is there a way to highlight the row of a newly added row to a collection?

    I have created a copy of my report template and altered Column Template 1 to be:
    <td bgColor =FF0000 #ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="t2data"><font color="#FFCCFF"</FONT> #COLUMN_VALUE#</td>
    the column template 1 Condition is set to: Used Based on PLSQL
    and the condition (and this is where I am not clear) is: #C002# = 1
    I have a query based on the following collection. When a new row is added, I would like it to be hightlighted based on the above. Is there a way to do this? thanks.
    Karen
    SELECT
    apex_item.checkbox (1,seq_id, 'onclick="highlight_row(this,'
    || seq_id
    ||')"', NULL, ':', 'f01_'
    || LPAD (seq_id, 4, '0') ) delete_checkbox,
    apex_item.hidden(2,seq_id) seq_id,
    apex_item.hidden(3,seq_id),
    s.common_name SPECIES_ITIS,
    g.grade_desc GRADE,
    m.market_desc MARKET_CATEGORY,
    c007 unit,
    apex_item.text(8,c008,5) fav_order,
    apex_item.select_list_from_query(9,c009,'select disposition_desc, pd.disposition_code from partner_dispositions pd, dispositions d where pd.partner_id = :G_ISSUING_AGENCY and pd.disposition_code = d.disposition_code','style="width:175px;background-color:#FBEC5D;" onChange="saveSpeciesDisposition(#ROWNUM#);"','YES','0','- Select Disposition -','f09_#ROWNUM#') disp
    from apex_collections,
    species s,
    grade_categories g,
    market_categories m
    where collection_name = 'C_DEALER_SPECIES_FAV' and
    c004 = s.species_itis and
    c005 = g.grade_code and
    c006 = m.market_code
    order by c008, s.common_name
    It gets a bit more complicated, in that a row is added by selecting (species_itis) from a tree.

    Hi Karen,
    Firstly, try changing:
    &lt;td bgColor =FF0000 #ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="t2data"&gt;&lt;font color="#FFCCFF"&lt;/FONT&gt; #COLUMN_VALUE#&lt;/td&gt;to:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="t2data" style="background-color:red"&gt;&lt;font color="#FFCCFF"&lt;/FONT&gt; #COLUMN_VALUE#&lt;/td&gt;Also, change the condition to:
    '#C002#' = '1'
    and make sure that you have an unconditional Template 2
    Andy

  • App Store says update available for iPhone app. Try to install and get the message "the item you are trying to buy is no longer available" for three apps in a row.

    App Store says update available for iPhone app. Try to install and get the message "the item you are trying to buy is no longer available" for three apps in a row. Even when I go to the specific app and press Update, the update begins to install then aborts with this error message.iPhone 3GS running iOS 5.1.1. Also very long delay typing each keystroke in this message.

    That error message is usually indicative of a problem with the App Store. If you look through the forums, you'll see that a number of people are experiencing the problem. Try again tomorrow.

  • I once created an account and changed meanwhile my Apple ID. Now, when trying to log in to iCloud, I get the message: "You are already logged in". I cannot get access to the account in the way, that, for example, the options appear on the right hand side.

    I once created an account and changed meanwhile my Apple ID. Now, when trying to log in to iCloud, I get the message: "You are already logged in". I cannot get access to the account in the way, that, for example, the options appear on the right hand side.
    What can I do?

    Thank you, pvonk, but:
    To be more precise: I am talking about the logging-in within the System Preferences on my iMac.
    When trying to log in with the old ID, I get no access, i.e. it says "Try again"...-Trying the same with the new one gives me the result I mentioned in my first question...
    Now I found out how to do it: I had to erase all accounts-then I could sign in with my Apple-ID. Thanks again.

  • IS THERE ANY WAY TO EMBED LINKS INTO THE FILE YOU ARE WORKING ON?

    IS THERE ANY WAY TO EMBED LINKS INTO THE FILE YOU ARE WORKING ON?

    Ha! Perfectly classic case of XY problem! Pointed out by Jongware in some other thread recently - couldn't find an exact link right now...
    In short:
        User wants to do X.
        User doesn't know how to do X, but thinks he can fumble his way to a solution if he can just manage to do Y.
        User doesn't know how to do Y either.
        User asks for help with Y.
        Others try to help user with Y, but are confused because Y seems like a strange problem to want to solve.
        After much interaction and wasted time, it finally becomes clear that the user really wants help with X, and that Y wasn't even a suitable solution for X.
    Maybe it worth to add to a list of tips and best practices of the forum:
    Avoid XY problem!

  • "There is no SIM card installed in the iPhone you are attempting to activate" I do not wish to use as iPhone anymore, just an iPod is there a way to use again without inserting a sim card?

    "There is no SIM card installed in the iPhone you are attempting to activate" I do not wish to use as iPhone anymore, just an iPod is there a way to use again without inserting a sim card? There is a hardware fault but this is confined to the internal sim card receivers and purely the parts related to the sim card there are no other hardware faults! I've tried dfu mode and a restore and cant find anything related to this anywhere on the internet, thanks for any help in advance, Bobby

    iPhones require a SIM card, that card does not need to be active.

  • Bookmarks - Hate the firefox version. Double click on the site to bookmark and the book it too small. And when in the bookmark window on the right side of the screen there is no way to know which folder you are actually in. Help.

    Bookmarks - Hate the firefox version. Double click on star in the address window to bookmark the site and the pop-up window is too small and user unfriendly. And when in the bookmark window and have bookmarks on the right side of the screen there is no way to know which folder on the left you are actually in. Is there any way to upgrade the bookmarks feature. So frustrating I might actually go back to IE because of this. Thanks.

    I have sort of the exact same problem. Extremely far away from user friendly
    I have an second issue as well: When I hook off all-day it comes up with an 8 hour event!
    And then if I put in a late start hour it pushes end time to next day due to the 8 hour event suggestion.
    All in all this gives a lot of changes just to enter an event.
    Command N
    I learnt from your input to use this fuction. At least that comes up with a one hour event as default.

  • How to highlight the row from the JTable then remove

    hi !!
    i'm using an abstract model in making a table....
    and having a button up and down and delete also!!
    how can i highlight the row when i click down and up!!!
    and when selected or highlighted i can press the button delete ...
    then the data is removed!!!
    pls... i need it!!
    tnx...

    Table row selection should take care of it. By default table rows can be selected.
    The getSelectionModel() method on the JTable gives you access to the row selection model. You can set that either to allow one at a time or multiple selection, and when your delete button is pressed, you access that selection model to decide which rows to delete.
    Add a ListSelectionListener so you can enable or disable your delete button as rows are selected or deselected. JTable will take care of the highlighting.

  • I get the following message when installing 11.0.5 "The feature you are trying to use is on a network resource that is unavailable" for windows install

    I get the following message when installing 11.0.5 "The feature you are trying to use is on a network resource that is unavailable" for windows install

    I just found a way to get Fixit to Run.  Go to http://support.microsoft.com/fixit/ and then pick "Install or upgrade software or hardware" and run Fixit from the "Run" button on the webpage.  I just picked run, instead of save, and ran it directly from the web page for each of the apple software.  If the window doesn't come up full size, hit "Tab" twice and then "Return".  You'll be able to see the prompts from there.  Have it attempt to uninstall iTunes on its own.  Repeat the process for any of the other Apple products, including Bonjour and iCloud.  Then, go to the iTunes website and install from there.  I had a downloaded copy and installed from there, but it came up with an error about missing the apple help, or something like that.  It allowed me to uninstall, and I reinstalled direclty from the website, and it all works now.

  • The Vendor account entered is not associated with the item you are trying to open

    Hi
    I moved from a Windows laptop to a Mac Book pro and moved all my files across, now I have found that two of my purchased books I can no longer open, I always get "The Vendor account entered is not associated with the item you are trying to open" message, I have the correct authorisation but they do not open, is theer a way to recover these 2 books?
    Thanks in advance

    This is the Adobe Reader forum; please ask in the Digital Editions forum.

  • IR - easy way to change the items

    Hello,
    When you recive an invoice for a purchase order and the quantity of the GR is not the same as what was on the PO but the invoice does there is a quantity differece, the users have to manually change the items on the invoice from the quantity recived to what is on the invoice. After that we expect a credit memo.
    Is there a "easy" way to handel this if you have many items on an invoice?
       Regards
       Ann-Sofie

    Use BDC option

  • "the feature you are trying to use is on a RD-ROM or ohter removable disk that is not available insert the 'itunes' disk and click OK

    I've beeing having problems with Itunes since about january, wheneveer i click on itunes the error message reads "The file 'ituneslibrary.itl' cannot be opened because it was created by a newer version on of itunes", yet when i try to updat to itunes 11 or uninstall itunes from my computer i keep on getting a message stating  "the feature you are trying to use is on a RD-ROM or ohter removable disk that is not available insert the 'itunes' disk and click OK" what is the best way to fix this problem?

    yet when i try to updat to itunes 11 or uninstall itunes from my computer i keep on getting a message stating  "the feature you are trying to use is on a RD-ROM or ohter removable disk that is not available insert the 'itunes' disk and click OK"
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • "No SIM card installed in the iPhone you are attempting to activate" after updating to iOS 5. Living in Canada with Rogers service provider.

    Any solutions yet?
    "No SIM card installed in the iPhone you are attempting to activate" after updating to iOS 5.
    Living in Canada with Rogers service provider.

    Its an IMEI issue.  In my case, about a year ago, after originally purchasing my iP4 from AT&T store, I had a prox. sensor issue.  Went to the Apple Store, they replaced the phone.  Here is where it all stems from.  The IMEI of the new phone was never updated in AT&T/Carriers systems.  For iOS updates prior to iOS5, this was not an issue.  My phone did its iOS updates along the way with no probs.  However, when I updated to iOS5, the firmware did not match the IMEI with what AT&T/carrier had.  When I went to Apple Store for the issue about 3 days ago and was given a new phone....again....the new phones IMEI was never updated with AT&T/carrier.  I then again attempted the upgrade to iOS5 with the new phone and iOS5 bricked that one also.  Today, at the store, we tried 3 replacements with same outcome.
    So, after 4 hours and 3 replacement phones with Apple Store Tech (BTW totally gobsmacked), we solved the issue.  Luckily, due to iPhone 4S launch, there was an AT&T guy there with a computer tied to the AT&T network to work along with us.  The issue is......once the IMEI's on carrier account and phone do not match, iOS5 shuts down the sim card reader within phone.....forever. How to reverse this?......this is a question Apple needs to come up with, because with my case, they have 5 "bricked" phones. 
    What solved the issue was to get a new phone with iOS4.3.5, new SIM from carrier/AT&T, have carrier/AT&T (in their system) change/match the IMEI to the new phone and activate new SIM.  Then, do iOS5 upgrade. 
    Simple and makes total sense..........however........there is an internal firmware (Apple Security??) issue that bricks the phone once IMEI's dont match. 
    I am now on iOS5.....no problems......so far.  Good luck to all others. 

  • TS3999 Is there a way to see the date you invited someone to an event on your calendar?

    Is there a way to see the date you invited someone to an event on your calendar?

    How are you getting to full screen mode? I assume you are using Full Screen mobile add-on?
    Try the following instead:
    * Download Firefox Beta (v22) from google play
    * Navigate to about:config
    * In the search bar look for "dynamic"
    * Toggle 'browser.chrome.dynamictoolbar' to 'true'
    * Close the tab
    Now when using Firefox beta the navigation/loading bar will disappear automatically when you scroll down a page and will reappear when you click on a link.
    Please note that this is an experimental feature so there may be some issues. But I think it works better than the add-on. The feature will eventually come to the standard release version of Firefox for Android.

  • Count the rows which are selected ?

    Hi Experts,
    I need help.My requirement is:
    I am having a table which can be multiple selected. But there are two buttons attached to it.Edit and Delete.For Delete I want the Multiple Selection not for EDit.So, If i will click the Edit after multiple selection of the rows.How i can give pop-up that multiple edit is not possible?Means I want to count the rows which are selected how to do that?
    Please guide me.
    Urgent need
    Regards
    Nutan

    Hi Nutan,
    Marcel is right about backend. However I might have an idea once I am developing a quiet similar solution. I would like to ask you to explain with more detail. It seems you have two requirements in one question.
    Regards,
    Gilson

Maybe you are looking for

  • Consuming Sharepoint webservice from Abap

    Hi, I have a need to access a Sharepoint database from SAP.  I am using the search.aspx webservice that sharepoint offers, or at least trying to.  I set up an abap proxy from the WSDL that sharepoint supplied (which was not the best WSDL).  From my A

  • Condition type upper lower limits

    Hello Experts, As we know, condition types can be set upper and lower limits. Lets say a condition type has 3 scales : 2% , 3% , 4% for discount, for example. And if the lower and upper limits are : 0% , 5% respectively, i do not see how effective th

  • Css auto center issue

    http://www.pmcgvideoportfolio.info/test.htm I have been following a tutorial from Adobe relating to "Working with Background Images and CSS - Part 3 Altering the Appearance of Your pages with Drop Shadows."  I think I have stayed pretty close to the

  • My TV does not have an HDMI connect

    Are there converters available that would allow me to connect an AppleTV to an older TV without an HDMI connection?

  • Laptops Can't Print Since Leopard

    I have 2 Airport Extreme N's in my network. One is a router and the other is a wired bridge. Since Leopard, we are having a lot of trouble keeping connections to our networked printers. If I unplug my 2 airport extremes and plug them back in, I can s