Is there a way to enable/disable a tabular form item based on the value of a second item?

Hi Everyone,
I have a tabular form based on a collection.   The column c050(maps to f30) will be either Y/N.  If it is Y, then I would like to enable column c024( maps to f24) (which happens to be a radio button based on lov).  If the value of c050 = N, then disable c024.   There are potentially many rows, and the item c024 would only be enable/disabled for the specific row.   So if row 1 has c050=Y and row 2 has C050=N then row 1 c024 is enabled, and row 2 c024 is disabled.  Hope that makes sense.
I have created a dynamic action called enable/disable HMS fields.
event=CHANGE
selection type = jquery selector
jquery selector = input[name='f30']
condition EQUAL TO
value Y
true action1 - enable, jquery selector, input[name='f24']
true action 2 - alert, You have added an HMS Species.   There may be additional data to enter.  thanks
false action1 - disable jquery selector, input[name='f24']
false action2 - alert, no hms worries.
The alerts in both cases show properly...but nothing seems to happen to f24.....what am I doing wrong?
thanks

Agh! This is the first time you mention this is a radio button!  That changes things a lot! As you can see, the format is different (f24_0001_0001) than what we have discussed (f24_0001).
Radio buttons have their own quirks.  My bad, I should have asked what you had.  But since you said your original selectors on input were working I just thought these were text fields or something like that.
How about you change it to a drop down list just so that you can see all work?  And fully understand it.
Then you can work out the radio button option.
If that doesn't get you there... I'm going to ask you setup an example in apex.oracle.com and give me credentials to log in and take a look.
I could re-try the js on my side with a radio but it will take some time.
So just to be clear... f30 is a drop down and f24 is a radio?
See, this line:
$x_disableItem("f24_" + row, true);
Is NEVER going to find the radio buttons because it's missing the 3rd 0001 and 0002 (how many options do you have?)
So perhaps you try it like this:
$x_disableItem("f24_" + row + '_0001', true);
$x_disableItem("f24_" + row + '_0002', true);
... keep going for the options...
Do the same for the false of course.
But I think this needs a better approach if you'll have radio buttons.  I just need to work it out.
Ok, go try things...
Thanks
-Jorge

Similar Messages

  • Select list enable / disable in tabular form

    Hi,
    I have created report on (ACT_COA_SEGMENT_MAS) table and this is master table , and created link on this report, when i click on report link, control moves to tabular form that is based on detail table (ACT_SEGMENT_VALUES_MAS)
    In master table there is column,
    SEGMENT_ID number primary key;
    QUALIFIER varchar2(1);
    If in master table qualifier column value is 'N' then
    then in detail table (ACT_SEGMENT_VALUES_MAS) column account type cannot be null and column should enable.
    If in master table QUALIFIER column value other than 'N' then Account column in detail table should disable . and value should not be enterable.
    and ACCOUNT_TYPE column in deatil table is a select list.
    How i can do this?
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 10, 2013 10:14 PM

    Vedant wrote:
    If in master table qualifier column value is 'N' then
    then in detail table (ACT_SEGMENT_VALUES_MAS) column account type cannot be null and column should enable.
    If in master table QUALIFIER column value other than 'N' then Account column in detail table should disable . and value should not be enterable.
    and ACCOUNT_TYPE column in deatil table is a select list.
    How i can do this?One way - sadly a bit of work - would be to use APEX_APPLICATION_ITEM to generated the detail items as a manual tablular form where you can control the disabled property when generating the tabular form fields using CASE statements, writing manual PL/SQL processes and the built-in APEX_ITEM collection to manually perform insert/update/delete operations on submit. Check the documentation for the full syntax of using APEX_ITEM functions to generate HTML items.
    An example from the Oracle docs looks like
    SELECT
      empno,
      APEX_ITEM.HIDDEN(1,empno)||
      APEX_ITEM.TEXT(2,ename) ename,
      APEX_ITEM.TEXT(3,job) job,
      mgr,
      APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy') hiredate,
      APEX_ITEM.TEXT(5,sal) sal,
      APEX_ITEM.TEXT(6,comm) comm,
      deptno
    FROM emp
    ORDER BY 1where the disabled property could be specified in the unlisted fifth argument to APEX_ITEM.TEXT. The first item to the APEX_ITEM calls is a number defining the G_FXX global variables so that 1 identifies the item later as apex_application.g_f01(9) - 9 being symbolic for a collection identifier -, ename as apex_application.g_f02(i),m and so on. The G_F99 items can be reference on submission in Pl/SQL processes through looping, something like (this example assumes all array items are populated - under some circumstances they may not be)
    for i in 1..apex_application.g_f01.count loop
      update my_table set sal = apex_application.g_f05(i) where empno = apex_application.g_f01(i);
    end loop;Edited by: riedelme on Jan 11, 2013 7:12 AM

  • Data Merge - Is there a way to selectively hide rows/columns from layouts based on cell values?

    I'm using data merge to generate pages from a product spreadsheet. The complication is, some columns should exist for some products (like "qty per bundle") but need to be hidden for others. Is there a way for InDesign to automatically include or remove rows for some pages but not others, based on something like "qty = 0"?

    For logic-based data merge, I use Em Software's product InData.
    Depending upon the design, ID's merge can remove blank fields thereby removing there paragraph or position on a line. Unless, of course, you have static text along with it. Which I almost always do. that's why I use Em Software's solution. It has a trial version. One needs to get familiar with the language statements. But for me it was worth the price and learning curve.
    And there are other plug-ins but for "simple" merging they are overkill in my circumstances (and so cost more).
    Mike

  • Is there a way to enable tabbing betwen form fields on ipad?

    I have forms created in Adobe Acrobat X Pro on an ipad 3. The forms work as expected apart from being able to use the tab key to move between fields. is there any way to enable this on the ipad. Works fine on a pc and tabs in the correct order.
    thanks.

    There is no tab button on the on screen keyboard. Instead, there you should use the prev/next. As for the bluetooth, this is something we're considering. One odd issue with PDF is that the fields aren't actually fillable fields until they are activated by tap. This is why the standard prev/next behavior with the tab key on the bluetooth keyboard doesn't work. However, this is something we're actively investigating for a future release. It won't be in our next release, but please keep an eye out for future updates.

  • Is there a way to enable & configure Volume Discounts via the Product Import Spreadsheet? Is there a way to enable more than 2 Quantity Thresholds?

    Is there a way to enable & configure Volume Discounts via the Product Import Spreadsheet? Is there a way to enable more than 2 Quantity Thresholds?

    Hi Michael,
    You can set the thresholds via an import file. The easiest way to do this (and this goes for all importable data, webapps included, 301 redirects and so on) is this:
    1. go into the Admin and create a single item, in you case create a test product and set the thresholds
    2. export that data - in your case export the product list
    3. take a look at how the data looks like in the export file so you can get an idea of how the format should be like in the import file
    Unfortunately you cannot set more than 2 thresholds, that is not possible at the moment.
    Thanks,
    Mihai

  • My wife and I each have our own apple ID's which we use on our own iPhones and iPads. We share an iMac. Is there a way of enabling Facetime on the iMac to accept calls to either of our IDs without the need to login as that particular user?

    My wife and I each have our own apple ID's which we use on our own iPhones and iPads. We share an iMac. Is there a way of enabling Facetime on the iMac to accept calls to either of our IDs without the need to login as that particular user?

    no, when using facetime you log in with the apple id you want people to reach you at, so unless you both agree to share one apple id for all the facetime you do, it will be necessary for you to logout and login each time you use the application.

  • Is there a way to stop iPhoto storing my photo stream photos on the mac hard drive when enabled? They have not been imported to my library. I have no photos saved on my MacBook Air yet 50gb of Hardrive space is taken up by photos.

    Is there a way to stop iPhoto storing my photo stream photos on the mac hard drive when enabled? They have not been imported to my library. Is there a way to stop iPhoto storing my photo stream photos on the mac hard drive when enabled? They have not been imported to my library. I have no photos saved on my MacBook Air yet 50gb of Hardrive space is taken up by photos. When I turn off photo stream on iCloud preferences the memory is freed up. I like to be able to access my icloud photo streams on
    my macbook but it has a small Hardrive and loosing that much space is annoying and it kind of voids the point of photo streams. Is there a way I can stop
    this ?

    Is there a way I can stop
    this ?
    No, Photo Stream is syncing with iCloud. The most recent 1000 photos in iCloud will be buffered on your mac, even if you do not import them to your photo library, if you enable My Photo Stream.
    See this link:   iCloud: Photo Stream FAQ
    iCloud pushes all your photos to the My Photo Stream album on your devices and computers, and manages them efficiently, so you don’t run out of storage space.

  • How come I have to put in a keychain password every time safari or mail is opened? Is there a way I can disable it or save the password so it doesn't pop up every time?

    How come I have to put in a keychain password every time safari or mail is opened? Is there a way I can disable it or save the password so it doesn't pop up every time? Also, I have my mail account set up from my Yahoo! account and every time I open mail, it asks for the password for my Yahoo! account. I have checked save this password to keychain and it persists on popping up repeatedly.

    You don't want to disable keychain (if there's even a good way to do so), since it stores stuff like certificates and the such.  It's quite useful.
    Anyways, Keychains>Preferences>First Aid.  Check Set Login Keychain as default.  When you login, it unlocks the keychain.
    That should help you.

  • Is there a way to temporarily disable the iPod in the iPhone. I am trying to stream from an app and it gets overridden by the iPod initializing

    Is there a way to temporarily disable the iPod within my iPhone. I am trying to stream music using an app and a dock on my Sony AIR and the stream is over ridden by the iPod starting up.

    First of all, an idle threat is one that a person has no intention of carrying out. In the past 16 months that I have had this phone I have become less and less satisfied and found that it is like much of today's technology....over rated and under performing. The one thing that I have never been accused of is not wanting, or not giving help but when a company makes itself unavailable to resolve issues and leaves it to forums run by users helping users, it speaks more about the company than anything else they could do. As I said, I do not make idle threats and I did not threaten you in any way. Guess I'll call this topic done with as it is not and was not the intent to get a war started    

  • Is there a way to enable the "protect tones" box while working in Lab mode for dodging and burning?

    Is there a way to enable the "protect tones" box while working in Lab  Color mode for dodging and burning?

    Don't think so. Those algorithms are built around the RGB color model as far as I know and there is no way to achieve the same result in other color modes. It may not be programmaticalyl and matehmatically impossible, but it's probably too complicated for a quick solution due to constant color space conversion math getting involved.
    Mylenium

  • Picture Frame will not play vidoe, only stills. Is there a way  to enable it to play video?

    Picture Frame will only play the stills in my photo albums, not the video. Is there a way to enable it to do both?

    Yvonne-
    I haven't tried videos on my camera yet.  Do you use the Videos App to play them?  I don't think they will play in the Photos App.
    If yours are in a format that is not in Vazandrew's list, you may need to sync them to your computer and convert them to M4V or MP4 format.  You can use a program like HandBrake to do the conversion.  <HandBrake>  Once converted, you can sync them back to the iPad and they should play.
    This may not meet your needs, but the alternative appears to be getting a different camera.  I don't know of another Video App that might work.
    Fred

  • Is there a way to temporarily disable Quicktime in Windows 7?

    Is there a way to temporarily disable Quicktime in Windows 7? I can't download any music from sites other than itunes, a player opens and streams the song instead. I download a lot of music and I'm crippled

    I can't download any music from sites other than itunes, a player opens and streams the song instead.
    That is a setting in your browser that tells it what to do with an MP3 file.  For example, if you are using Firefox, go to Options > Applications.  For "MP3 Format Sound," change it from QuickTime to "Always Ask."
    Other browsers have similar settings.

  • Does this computer have gps (my daughter's was just stolen), is there a way to remotely disable it?

    does this computer have gps (my daughter's was just stolen), is there a way to remotely disable it?

    First off, I'm sorry to hear about the theft of your daughter's computer.  The good news is that all Apple computers have their serial number in multiple places (depending on the model) and Apple maintains a list of every one of them.  Do you have the serial number?  If not, you can get it from the retailer you purchased it from.
    As far as GPS and disabling it, it is going to depend on several factors but the short answer is probably not.  I mean, Yes, there is a a way to detect location in most modern Mac's through a web browser using Geolocation (W3C API) but there is no onboard GPS; disabling the machine remotely would require you to have 'Back to my Mac' already set up on it from iCloud.  There might also be some third party tools available that I'm not aware of.
    Again, I'm really sorry to hear about the stolen computer.  I'll keep an eye on this thread to see if you have any other questions.
    BTW, what model and year is the computer that was stolen?

  • Is there any way to permanently disable(not usable) your iPod touch while you still have it?

    Is there any way to permanently disable Itouch 4th gen

    Only password on lock screen and restrictions for certain apps could be helpful in that case.
    But restoring will remove this protection and delete all data, so make sure that other people can not take your iPod away from you.
    Other than that, no.

  • Is there a way to enable your Apple ID?

    I have tried updating Itunes, and I still cannot enable my Apple ID.  Is there another way to do this?

    If you are referring to the Activation Lock, as Waikeet guessed, see the section titled "What if I purchase a device that is still linked to the previous owner's account?" in this support article:
    http://support.apple.com/kb/HT5818
    If that's not what you meant, please post back and clarify.
    Regards.

Maybe you are looking for

  • Discoverer report print issues

    Hi, I have a peculiar issue in printing the Disco reports (plus). version is Oracle Business Intelligence Discoverer Plus 10g (10.1.2.48.18) when i do a print preview it shows me a single page, but when i give a print it is printing in 2 pages and th

  • Primary Keys and ADT

    Hi, For uniformity sake, I've created a new data type with one property in it (VARCHAR2(30)). Prior to this I had that data type in all of my tables and created primary keys on that. Now, I have replaced the old VARCHAR2(30) with this new data type Y

  • Posting Line Items after Archiving in SAP

    Hi Experts, I have a small query regarding SAP data archiving in Financial accounting data. I have archived Financial total records data for one fiscal year (2010), and that data is deleted from the SAP database. Now my client is trying to do catchup

  • Multiple OS9 per partition

    I know 9.22 supports multiple system folders per volume, eg. HD partition. But this wasn't always the case with the 'old' OS -- before arrival of that feature, when you wanted several system folders on your system, you needed to partition your drive

  • How to integrate adobe forms using webdynpro-abap

    Hi All, How to integarte adobe forms with webdynpro -abap(se80). Thanks & Regards Suman