How do I set an Apex mulri-row reports form value for the specifc current row using Javascript?

I have a multi-row region based on a table in which I have two particular columns of interest.  The first has an LOV defined for which I have set up a pick-list of codes associated with the item's status as "OK" or having some problem, for which there are a small number of set codes associated.  Most rows will be OK, but when there is a problem, the pick-list will be used.
When that pick list has been used, there is an optional "comments" column that can be filled in.  I want my screen to dynamically enable/disable a pushbutton that links to the comment based on the code.  This being row-based, the push-button needs enabling or disabling by row, not as a whole "conditional column".  That bit is ok, I think, but I don't know and can't find the syntax for how within the javascript onchange function I set the current row value for a different column to the one that triggered it.
My header function (that doesn't work) is going to be something like this (where the status column LOV having a value = 6 means "OK").  Note I'm using alert for a debug mechamism.  The $s line is my failed attempt to set he column value, here with a hard-coded string "Changed COMMENTS":
<script type="text/javascript">
function doActivateButton(object)
  if(parseInt(object.value)!='6')
    alert('It is not 6!');
    $s('#COMMENTS','Changed COMMENTS','Changed COMMENTS',TRUE);
  else
    alert('It is 6, you know!');
</script>
Ideally, I want any existing comments blanked if the user picks "OK" (6) as the new status, whereas for debug above I'm setting the hardcoded debug string.  You will probably also note I realise I haven't properly understood the purpose of the third parameter in the $s API.
(This is a reports region, by the way.  A detail block, in forms-speak, with a header block above it.)
Thanks for any assistance.
Mark

Sorry, versions are: Apex 4.1 on Oracle RDBMS 11.2.

Similar Messages

  • How to store global values for the whole application to use ?

    Hi,
    In our application, we have global values that is store in a parameter table, I want only to query it once, and it will be used every where from the whole application.
    e.g :
    I have general parameter tables that store :
    % Tax
    Current Period
    etc..
    Then these values will be used in our business rules in the whole application.
    How can I do that in ADF BC ?
    Thank you,
    xtanto

    I would go ahead and create a transient VO with an attribute called "userLanguage" and store the value at the initialization step.
    We generally call this type of VO as PVO which is a transient VO and contains only 1 record at any point of time. Keep this VO inside the RootAM and you can write a static util method as below..
    public static String getUserLanguageFromPVO()
    PVOImpl pvo = (PVOImpl)am.findViewObject("MyPVO");
    if(pvo != null)
    Row row = pvo.first(); //Always returns the one record
    return (row == null ? null :
    (String)row.getAttribute("UserLanguage"));
    return null;
    }

  • How do I convert an Adobe pdf file with sound assist for the visually impaired to use the keyboard to play audio?

    I am trying to convert an Adobe pdf article file with a play button to an iTunes or other accessible file for people with visual impairments.  The file has been converted to a format that has a play button; however, the computer does not have a keyboard stroke that leads to the play button.  In other words, the play button isn't integrated into the accessible format; only sighted people can access the play button.  The individual is using an Apple laptop.
    Can someone help me please?
    Thanks!

    http://www.macworld.com/article/1162699/how_to_convert_pdfs_to_word_and_other_fo rmats_.html
    https://itunes.apple.com/us/app/pdf-converter-free/id422540367

  • How to execute a same sequence number for the resulting dynamic rows

    Hi friends,
    I have a sequence and trigger(which will fire id for each and every row insert).
    My scenario is, If i update more than 5 rows at a time means, i need to set a same sequence number example(1) for all the 5 rows.
    Next time, if i update another 5 rows means, then i need to set a same sequence number (i.e) 2 for the next 5 rows.
    So, my updation will be dynamic(may be 2 ,5, 10 rows at a time), But i need to set a same sequence number for one of the column for all the rows that i update.
    Next time, if i update another set of rows means, then i need to set only the next sequence number(i.e) 2(assume that previously updated sequence for the before set of rows is 1) for another set of rows.
    Like that sequence has to update in a sequential manner for more than one set of rows in that column.
    How to achieve it friends.
    example
    id-----------------name
    1-------------------A
    1-------------------B
    1-------------------C
    1-------------------D
    1-------------------E
    2-------------------D
    2-------------------E
    2-------------------F
    2-------------------G
    3-------------------H
    3-------------------IBrgds,
    Mini

    Hi,
    You forgot to mention your version.
    If you want a trigger based solution, then in 10g you need two triggers
    1. A statement level trigger that takes sequence.nextval into a dummy variable that will not be used.
    2. A for each row trigger that uses sequence.currval.
    In 11g you should be able to write a single, composite trigger.
    If you want a solution with no triggers, it could look something like
    SQL> create sequence s start with 10;
    Sequence created.
    SQL>
    SQL> create or replace function s_wrapped
      2  return number
      3  as
      4     v number;
      5  begin
      6     select s.nextval
      7     into v
      8     from dual;
      9
    10     return v;
    11  end s_wrapped;
    12  /
    Function created.
    SQL> create table tab1 as (Select level x, cast(null as number) y from dual connect by level <= 5);
    Table created.
    SQL> update tab1
      2    set y = (select s_wrapped from dual)
      3   where x <= 3;
    3 rows updated.
    SQL> commit
      2  /
    Commit complete.
    SQL> select *from tab1
      2  /
           X          Y
           1         10
           2         10
           3         10
           4
           5
    SQL>Regards
    Peter

  • % is not getting correctly for the Grand Total Row in OBI10g

    Hi,We have a report in table view with the following structure.
    Name     Target     Act     %Ach
    ABC     100     50     50
    XYZ     200     10     5
    Total     300     60     27.5
    The value for the %Ach Total row should be 20% but in the report it is showing as 27.5.
    any one observed this ,how to correct this??
    Thanks

    Hi,
    To get grand total correctly..configure instanceconfig.xml and put..
    <ReportAggregateEnabled>true</ReportAggregateEnabled> between <serverinstace>..
    refer..
    http://obiee101.blogspot.com/2009/09/obiee-grand-totals-with-calculated.html
    Hope it solves ur problem

  • How to accessing current row report column value in Lov Query?

    Hi,
    which access methods (eg. bind variables, substitutions, ...) for getting the current row report column value can be used in the "Lov Query" property of a report column?
    As what I know of and what I have read on the forum there are no bind variables for the report columns. For the "Link Text" property it seems that the column values exist as substitution strings (#COLUMN_NAME#). But they don't work in the Lov Query. => And would be good because of a hard parse each time the Lov query is executed.
    The following post (Re: Simulating a correlated sub query in lov
    is showing a solution to use package variables for temporary storage of the referenced value, but the only problem with that solution is that if a new record is added with the "Add rows to tabular form" process the package variable still contains the value from the last queried row! Is there a way (variable, APEX package, ...) to determine if the lov query is executed for a new record so that the package can return null?
    I know that I could write the package in a way that the value is immediately cleared when lov_pkg.keyval is called (one time read), but then I would have to create several variables if I'm accessing the value multiple times in the query or in another query => I think an one time read solution would be very obscurely.
    Thanks for your help
    Patrick
    http://inside-apex.blogspot.com

    Hi Patrick,
    I agree that it's a waste to continually use Ajax to go back to the server to get the contents of a dynamic select list.
    There are no bind variables for any row item - but what you do have, as per my previous post, is the value of the data entered by the user in the first row. You can pass this into your application process (using get.add("VARIABLENAME", value)), which can use it to retrieve the correct LOV in your Ajax code - this will give you a "bind variable" that your process can use.
    What you could do, however, is generate hidden select lists on your page - one for each possible LOV list and replace the contents of the new row's select list with the contents of the appropriate hidden select list. This is easy to do with javascript (using innerHTML functions). Obviously, though, the usefulness of this depends on the number and size of the select lists.
    Even if you don't generate them to start with, you can keep a copy of any select lists returned by Ajax in the DOM for use on new rows. So, if you have retrieved a select list, you will have a copy of it in DOM which you can then copy into the new row. If you don't have the list in DOM, use Ajax to get it, store a copy of it and copy it into the new row.
    Which method you use will depend on the number/size of select lists needed. If they are few in number and/or size, I would suggest generating hidden lists. If they are large, use Ajax to get them once, store them and then retrieve them from the DOM when needed.
    There is another thread here where Arie recommends going to the server every time to make sure you get the most up-to-date data for the lists. If you want to follow this advice, for this reason, use get.add("VARIABLENAME", value) to pass the value to your process. If this is not an issue, you can use one of the other methods I outlined above.
    Regards
    Andy

  • HT204053 How do I set up a second I cloud ID so that 2 family members can use the same I Pad?

    How do I set up a second I cloud ID so that 2 family members can use the same I Pad?

    To change a secondary account to a primary account do the following:
    Tap Settings > Mail, Contacts, Calendars.
    Delete the secondary account.  (This only deletes if from your iPad, not from iCloud)
    Tap the Back button.
    Tap iCloud.
    Delete the primary account. (This only deletes it from your iPad, not from iCloud.  Your son's iPad will not be effected by this.)
    Add the secondary account that you want to be your primary account.

  • HT4628 How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)?  There used to be a setting for this in previous versions of OSX but I can't find it in the new version.

    How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)?  There used to be a setting for this in previous versions of OSX but I can't find it in the new version.

    How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)?  There used to be a setting for this in previous versions of OSX but I can't find it in the new version.

  • How do I set up my iPad so that I can recieve the emails from my Outlook Express account

    How do I set up my iPad so that I can recieve the emails from my Outlook Express account

    Your iPad doesn't receive email from Outlook Express (or any other email client).  It receives email from your email provider.  To set up your email account on your iPad go to Settings>Mail,Contacts,Calendars...tap Add Account and add your email provider's account settings with your username and password.  iCloud, Gmail, Yahoo, AOL and Hotmail email settings are automatically entered by tapping the appropriate button.  Others must be manually entered by tapping Other.  (Exchange accounts will also require you to enter your email provider's settings.)

  • How do I set a fixed page size in Muse so that the window always stays the same size

    how do I set a fixed page size in Muse so that the window always stays the same size

    Hi Aish & thanks for responding;
    I would like the window size to stay the same for the entire site and not be
    able to scale to drag & scale it. ie 950 pixels x 500 pixels.
    Thanks,
    JB
    On 12/4/14 3:30 PM, "Aishvarya Raj Rastogi" <[email protected]>

  • How do I set up iTunes to automatically move on to play the next album after the last one has finished? (in Album view)

    How do I set up iTunes to automatically move on to / play the next album after the last one has finished? (in Album view).
    This used to happen automatically in Genre view.

    Hi Henryhippo,
    If you have questions about play order in iTunes, you may find the following article helpful; I believe you can use the Play Next or Add to Up Next to add albums as well as songs.
    iTunes 11 for Windows: Ways to play songs
    Regards,
    - Brenden

  • How do i set a default time of 2.0 seconds for all transitions in iMovie 10.  Please help.,

    how do i set a default time of 2.0 seconds for all transitions in iMovie 10.  Please help.,

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.org/kb/Preferences+are+not+saved

  • How to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?

    how to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?
    the message sked me to alter the quality of the DVD as the content was too large for the quality sellected.
    PLEASE HELP again,
    THANK YOU VERY MUCH
    MIchael

    Check the Advanced ➙ Project Information menu option to make sure the playing time of the entire project, movie plus menu is below the 120 minute limit.
    OT

  • I have CS6 and CC installed on my mac when I'm using CS6 and use bridge CC activates how can I set this to only work on one and not the other

    I have CS6 and CC installed on my mac when I'm using CS6 and use bridge CC activates how can I set this to only work on one and not the other

    If you want Bridge CS6 to open when using Photoshop CS6, you must quit Bridge CC.
    Then File menu > Browse in Bridge will bring up Bridge CS6.
    If Bridge CC is already open, The File > Browse in Bridge for Photoshop CS6 will use Bridge CC and Bridge CS6 will not open.
    I hope that's the answer you were looking for.
    Gene

  • How do i set up an airport express as an extender for my airport extreme

    how do i set up an airport express as an extender for my airport extreme

    Check these discussions:
    Best bets to extend/boost signals from Airport and AP Extreme
    How to extend and Extreme network using Express

Maybe you are looking for

  • Follow up Knowledge Article

    Hi all , I want a follow up Knowledge article from ServiceRequest and i have done all the required copy control configuration. but still when i click " create follow up " in Service Request , i didnt find Knowledge article transaction in follow up. T

  • Final cut pro x keeps on saying files are full when trying to export when their not ?

    Hi Final cut pro x keeps on saying files are full when i'm trying to export when they are not full and also what setting do i export them on for a small quicktime?

  • Query rewrite usage

    is there a way to log how often materialized views are accessed in general or by query rewrite enabled option? i would like to find out which materialized views are useless, because they are never used by query rewrite.

  • Complaining please reply asap

    I'm vicky from indonesia... I already use blackberry for 2years... And buy some application at appworld... But now why can't I buy some application at appworld??? Its always told me that my credit card authorization has a problem error Id:11000, plea

  • No image sin my podcast

    Hi, I have images on my podcast track and in my episode cover. I am able to Send podcast to iTunes with no problem, but when I play from iTunes there are no images. Well there one for the cover but its not even one I've used in the podcast. Any idea