Disable and enable on Apex 4.2.1 tabular form

Hi,
I have a requirement on Apex 4.2.1 tabular form where It gets rows dynamically based on the master record.
when page loads for the first time all the rows on the tabular form should disable and based on check all rows it should enable all the rows
or if I check particular row it should enable that row. is this possible with dynamic action. or else how can i achieve this ??
Thanks

user10755387 wrote:
Hi,
I have a requirement on Apex 4.2.1 tabular form where It gets rows dynamically based on the master record.
when page loads for the first time all the rows on the tabular form should disable and based on check all rows it should enable all the rows
or if I check particular row it should enable that row. is this possible with dynamic action. or else how can i achieve this ??
You cannot disable them instead make them read-only, but the problem comes if you have any form controls like select lists because they are already read-only
Create a dynamic action as follows:
Event: Page Load
True Action: Execute JavaScript Code
Code:
//replace the REGION_STATIC_ID with your tabular form's region static id
$('#TF').find('.uReport.uReportStandard').find('tbody').find('td[headers!="CHECK$01"] > :input').attr("readonly", true).css("background-color", "#F2F2F2");
$('td[headers="CHECK$01"] > input').click(function () {
     if ($(this).is(':checked')) {
          $(this).parent('td').parent('tr').find('td[headers!="CHECK$01"] > :input').attr("readonly", false).css("background-color", "");
     else {
          $(this).parent('td').parent('tr').find('td[headers!="CHECK$01"] > :input').attr("readonly", true).css("background-color", "#F2F2F2");
});

Similar Messages

  • How to disable and enable a java bean area's visability?

    I have a large javabean area on my initial canvas when first dispalying my form.
    When I use the SHOW_CANVAS('canvas name') to display another canvas, everything looks fine except that the javabean from my previous canvas is still visible and covering up portions of this new canvas.
    So I tried using the set_property visible for the javabean area in the form and it only got rid of the surrounding edge of the javabean area.
    Last I made some set_custom_property values to send to the bean that would then use java calls to enable and disable the beans visability.
    But once the beans visibility was disabled in Java then it wouldn't come back after the calls to enable the visibility and refresh the bean were made through Java calls.
    Is there any other ways of disabling and enabling a java bean area's visability?
    Thanks,
    Michelle

    Hello,
    Maybe the bean is always display because of its particular paint() method ?
    Anyway, without any reflexion, I could suggest you to set the bean item width and height to 1 pixel when you don't want to display it. (Set_Item_Property)
    Francois

  • I recently had to disable and enable all add-ons on Firefox. Now when I google something, when I hover over the website preview and click 'cached' it won't highlight the key terms anymore. How can I fix this?

    I recently had to disable and enable all add-ons on Firefox. Now when I google something, when I hover over the website preview and click 'cached' it won't highlight the key terms anymore. How can I fix this?

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[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
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Create and Enable Find/Torch menu Button in Customized Form

    Hello Friends,
    I want to Create and Enable Find/Torch menu Button in Customized Form??? How can i do that? Please Help !!!
    Thanx in Advance
    Deepak Arora

    Hi,
    Please see the Application Developer guide.
    Applications Releases 11i and 12
    http://www.oracle.com/technetwork/documentation/applications-089559.html
    Thanks,
    Hussein

  • SP with input parameters to disable and enable indexes

    I need to build a stored proc script with input paramters to disable indexes and enable indexes of specific tables.
    Parameter would be tablename,schemaname,a value input which will determine if it is for disabling index or enabling index
    I will have a reference table which would hold the specific tables
    Below is the ddl script and sample data for reference
    USE [test]
    GO
    /****** Object:  Table [dbo].[TestingIndex]  DDL  Script Date: 01/27/2014 22:38:39 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[TestingIndex](
    [tablename] [varchar](30) NULL,
    [schemaname] [varchar](10) NULL,
    [Flag] [varchar](1) NULL
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    sample data
    tablename
    schemaname
    Flag
    tableabc
    abc
    y
    tabledef
    def
    y
    tableghi
    ghi
    y
    All I want to do is disable all the indexes of the tables which are present in my reference table by looping through the reference tables.
    Similarly I want to do enable all the indexes of the diabled table using the reference table
    Any help would be appreciated and best way to do it thinking all pros n cons.
    Mudassar

    New code with changes
    USE [TEST]
    GO
    /****** Object: StoredProcedure [dbo].[usp_indexes] Script Date: 1/28/2014 10:11:55 AM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE PROCEDURE [dbo].[usp_indexes1]
    @ref reftable READONLY,
    @input int
    AS
    BEGIN
    ---Declare variables
    DECLARE @tblnm VARCHAR(30), @schnm VARCHAR(10), @flag BIT, @sql VARCHAR(MAX)
    ---Declare cursor
    DECLARE cursor_index CURSOR
    FOR SELECT tablename, schemaname, flag FROM @ref
    --Open cursor
    OPEN cursor_index
    FETCH NEXT FROM cursor_index INTO @tblnm, @schnm, @flag
    WHILE @@FETCH_STATUS = 0
    BEGIN
    if @input =1
    BEGIN
    SET @sql = 'ALTER INDEX ALL ON '+@schnm+'.'+@tblnm+' DISABLE '
    print @sql
    EXEC sp_execute @sql;
    END
    else
    BEGIN
    SET @sql = 'ALTER INDEX ALL ON '+@schnm+'.'+@tblnm+' REBUILD '
    print @sql
    EXEC sp_execute @sql;
    ALTER INDEX ALL ON dbo.Test1 DISABLE
    END
    FETCH NEXT FROM cursor_index INTO @tblnm, @schnm, @flag
    END
    CLOSE cursor_index
    DEALLOCATE cursor_index
    END
    GO
    result when I execute it gives below message
    (3 row(s) affected)
    ALTER INDEX ALL ONdbo.Test1DISABLE
    Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
    Procedure expects parameter '@handle' of type 'int'.
    ALTER INDEX ALL ONdbo.Test3DISABLE
    Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
    Procedure expects parameter '@handle' of type 'int'.
    ALTER INDEX ALL ONdbo.Test4DISABLE
    Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
    Procedure expects parameter '@handle' of type 'int'.
    DECLARE @ref reftable
    INSERT INTO @ref
    SELECT * FROM testingindex
    EXEC usp_indexes1 @ref,1
    but when I go n check indexing status no tables  have been disabled using the below query it shows still enabled
    select sys.objects.name as 'table',
    sys.indexes.name as 'index',
    is_disabled = case is_disabled
    when '1' then 'disabled'
    when '0' then 'enabled'
    end
    from sys.objects join sys.indexes
    on sys.objects.object_id = sys.indexes.object_id
    where sys.objects.name in('Test1','Test3','Test4' )
    below are my table schema and index script (similar for 3 tables i m using for testing)
    CREATE TABLE [dbo].[Test1](
    [YEAR] [varchar](10) NULL,
    [MONTH] [varchar](10) NULL,
    [MONTH_VAL] [varchar](10) NULL
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    USE [TEST]
    GO
    /****** Object: Index [NonClusteredIndex-20140128-112203] Script Date: 1/28/2014 11:23:48 AM ******/
    CREATE NONCLUSTERED INDEX [NonClusteredIndex-20140128-112203] ON [dbo].[Test1]
    [YEAR] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    GO
    Mudassar

  • Disable and enable field at runtime in sap crm 2007

    Dear experts!
       I created 2 new fields on Opportunity type by EEWB. The first field is checkbox type, is called FIELD1. The second is dropdown list type, is called FIELD2. My problem is: In general, if FIELD1 is not checked, FIELD2 is disalbe. When i checked FIELD1, FIELD2 is enable, enable to choose a value in dropdown list value of FIELD2. But, i don not know how to do it.  Can you help me resolve this problem?
       Thanks alot!
       Longndtb.

    Thanks Amar Nath and sijokjohn85 for your answer!
       But maybe i have not described clearly to you understand, so your solution has not resolved my problem. I will describe more detail as following:
       - I create 2 transaction type ZOP01 and ZOP02 are BUS200111 object type. And using EEWB to generate 2 fields type input field are ZZFN01 and ZZFN02 on those transaction type. Because 2 Trans type are common component BT111H_OPPT, so 2 fields ZZFN01 and ZZFN02 will display on Web UI together when i create either of 2 trans type. Problem is if i create new opportunity type ZOP01, only ZZFN01 is enable, ZZFN02 is disable. and if i create new opportunity type ZOP02, only ZZFN02 is enable, ZZFN01 is disable. Your solution to resolve this problem. But, i done it, and my thread do not question about  this.
       - My problem is: I create 2 field are ZZFN01 and ZZFN02 on transaction type ZOP01. ZZFN01 is checkbox type, ZZFN02 is dropdown box. (i do not question: How to make ZZFN01 is check box and ZZFN02 is dropdown box, i done it). I want that: when ZZFN01 is not checked, ZZFN02 is disable and when i checked the ZZFN01 then, ZZFN02 goes from disable to enable, immediately? I create method GET_I_ZZFN02, in this method, i put some code lines to check ZZFN01 and return to PA_RETURN_ZZFN01. if (PA_RETURN_ZZFN01 = ' ', then make ZZFN02 is disable. If (PA_RETURN_ZZFN01 = 'X', then make ZZFN02 is enable). when i create new opportunity type ZOP01, the ZZFN01 is not checked, so ZZFN02 is disable, of course. Next, i check ZZFN01, how to method GET_I_ZZFN02 recheck the ZZFN01 to make ZZFN02 is enable? This is my problem, and i question about this! So, can you help me?
       Thanks for your concern!
       Longndtb.

  • Aperture not automatically Pushing new Photostream photos without disabling and enabling again

    Hi I have an iPhone 4 runing iOS 5.0.1 with Photostream enabled.
    My mac also has Photostream enabled on the same account.
    Aperture 3.2.2 also has Photostream enabled on the same account.
    When I take a photo with my iPhone, it does not automatically come up in Photostream, after waiting some time with a strong and tested Wifi connection.
    Photos only appear in Aperture's Photostream when going to Aperture>Prefrences and disabling and re-enabling Photstream.
    Both checkboxes are ticked underneath 'enable photostream'

    I have the same setup as you. Mac with Lion 10.7.2,  iPhone 4 and Aperture 3.2.2. I havn't observed the photostream much but a couple of times I had Aperture open and took some screenshots on my iPhone. It took a bout 10 minutes for them to show up in Aperture's Photo Stream folder. The last time I took 4 screenshots and only 3 showed up in Apertures Photo Stream. The next day I opened Aperture and the 4 was there too. Seems to me to be a little hit and miss.

  • Disable and Enable Wi-Fi on Touch 2G (8GB) and 3G (32GB) at will

    My daughter would like to password disable the wi-fi component only on her kid's 2G and 3G and enable it only when they are supervised.
    I have looked at threads for "lockout wi-fi" and "disable wi-fi" but didn't see anything after 5 pages and did not find anything on my own 3G 64GB that would let me do this. Can this be done on the iPod Touch?

    There is a setting in Restrictions that can block the use of Safari, YouTube, iTunes Store, and App Store. Go into Settings/Restrictions and then make changes and use a passcode to prevent her from going back in and changing the settings.
    Another way (and maybe more subtle and perhaps easier) is to control wi-fi access at home using your router's security settings -- just allow/disallow the MAC address of the Touches. That won't help when she takes the Touches to other locations, but at least at home you can gate the access by going into the router's administration (refer to the manual).

  • Disabled and enable clips look the same

    Is there a way to change the preferences so that disabled clips show up dark in my timeline? Because right now they are showing up bright regardless of whether they are disabled or enabled?

    I know that's how it's supposed to work but for some reason mine isn't. It does show up that way on my laptop though.
    screenshot(s)
    http://i114.photobucket.com/albums/n243/peetiewonder/disabledenabled_zps6bfa6044 .png

  • Disabling Popup LOV (named LOV) cell in my tabular form

    Hello.
    I have a tabular form.
    I have a column where I insert values based on the named list of values. I make the field of "Popup LOV (named LOV)" type. However, ApEx allows the values to be either picked from the popup list or entered manually into the field's text field. I want to prevent the user from being able to manuall enter the values into the field and force the use of the popup LOV.
    I know that selecting Popup LOVs for regular items in a region make the text field "disabled" disallowing direct entering of values. However, for tabular forms' fields, this does not seem to be the case.
    Is there a style I can add to the attribute to make this happen?
    thanks
    Boris

    Hi Boris,
    I'm glad that you are learning things through this forum!
    You can't validate tabular form items using the normal Item Level validation - as this is for page item names only (that is, P1_EMPNO for example).
    You can do validation using PL/SQL in a Page Level Validation. There are a number of examples on how to do this on this forum. Here's one by Denes: [http://htmldb.oracle.com/pls/otn/f?p=31517:41]
    When you submit a tabular form page, Apex creates collections for each "fnn" set of items. "f01" items are stored in APEX_APPLICATION.G_F01, "f02" items are stored in APEX_APPLICATION.G_F02 and so on. To validate any item, you loop through one collection and check its value or the values in the same position on the other collections.
    In Denes's example, he is looping through the "f02" items (that is APEX_APPLICATION.G_F02 from 1 to APEX_APPLICATION.G_F02.COUNT) and checks the values in the "f07" (APEX_APPLICATION.G_F07) and "f08" (APEX_APPLICATION.G_F08) items. The items are stored in their collections in the same order as they appear on the page, the first item in G_F01 is on the same row as the first item in G_F07 and so on. The validation(s) to perform will depend on your requirements.
    In the example, Denes is using a "Function Returning Error Text" validation. In these, you either return a string containing the error or NULL (meaning no error has been found).
    Andy

  • IE 11 Won't open PDF unless I disable and enable the Adobe add-on?

    I'm using IE 11 under Windows 7, whenever I try to open a pdf in the explorer it prompts me if I want to open or save?  If I disable the add-on and re-enable it works fine - I don't even have to restart the explorer - and it works fine from that point on until I reboot my computer.  After rebooting I have to go through the process again to get it to work.  Does anyone have any suggestions on how to correct this?  I'm using Adobe Reader XI (11.0.10).  Thanks for any help....

    This is probably the proprietary PDF viewer in Firefox at fault.
    In Firefox type "about:config" (minus the quotes) in the address bar. You'll see a warning about making chnages. Click "It's OK. I'll be careful" and open the configuration page.
    There's a search at the top. Type "js" (again, minus the quotes).
    In the results, you'll see pdfjsviewerdisabeld witha value of "false".
    Right click it to toggle it to "true" and close the configuration page.
    Click Firefox>Preferences and under the Applications tab, locate Adobe Acrobat PDF document in the list (or Portable Document Format).
    Change it to "Use Adobe Reader (Default)"
    Click OK and restart Firefox.

  • How to disable and enable a Hardware Card on my Mac

    Hi all,
    I have a system with2 BlackMagicDesign (BMD) Decklink cards in it. One HD Extreme and one HD Extreme 3D+ card.
    I use it to capture multiple video streams at once and it works perfectly. I can choose to input and output card for audio, etc...
    But I have software that can use a BMD Decklink card as 3th monitor or VideoOut Monitor.
    That software always chooses the HD Extreme Card, and I cant choose it manually...
    I need the software to use the Decklink 3D+ card (because it has a HDMI 1.4 out and works in Stereo3D)
    If I remove the second card, all works perfectly, but I want to avoid to do that...
    In Windows you can easily disable hardware....
    But, can we do that in MacOSX 10.7??
    thx for your hrlp,
    Steven.

    Don't know if this will work for your specific setup or not, but SwitchResX is a unique utility for controlling video configurations (including enabling/disabling multiple monitors).

  • On 3g disabling and enabling

    When i am restarting my iphone4s with ios 5.1.1 the 3g service disabled..and when the phone turn on.. it is directly enabling the 3g service why?

    having a similar problem, when switching from edge to 3G it shows full bars and even shows me connected on let's say Beejive IM but i'm actually not. mobile data doesnt seem to work unless i activate plane mode for a while. so annoying ... looks like the iPHONE is good with everything but the PHONE part

  • Abt USB drive Disabling and enabling

    how to enable and disable USB mass storage devies in Mac os 10.4 tiger and Mac os 10.5????
    pls i need an answer.... so many people is using my macs usb ports plss provide some solution

    dear sir
    thanks 4 that link bt i already been dr..
    sir do u know anything abt
    """ iousbfamily308.4.0log.dmg """"""
    i thnk this can end ma search bt only aft ur response....
    and i must say i also hate to switch on ma windows machine bt wat to do i need to burn quality vcds that an impossible task in mac .toast and and other encoding techniques in mac are really not up to standard if u consider it for vcds..for dvds thy are splendid..i can use compressor bt it takes a **** a lot of time if want to make a really quality vcds...
    so i use Tmpeg installed win xp for that purpose with 1gb ram c2d system

  • Depend on first combo selection, second combo should disable and enable

    hi
    i am using jstl and jsp. I have two combos , first combo has 4 items
    when clicking the 3rd item and 4 th items second combo should
    be disabled( that means he should not select second combo items)
    combo items are not hardcoded they are polulating by mapping through hibernate to database. Please help me how to do it by
    using javascript or jstl conditions.
    can any body help me please...this is urgent
    thanks
    jalandhar
    Message was edited by:
    jalandhar
    Message was edited by:
    jalandhar

    Hi,
    This is not a javascript forum, please google for a javascript forum. (Javascript is not java)
    Kaj

Maybe you are looking for