How to disable the datepicker based on the selection in a table list

I created an example on

https://Apex.Oracle.com/pls/Apex/f?p=85310:23:9121532652163:

follow-up

https://community.Oracle.com/thread/1119800

but no luck

My needs: -.

with selection N dymanic action datepicker should be disabled

and now, I think I need help.

anyone if possible have a look what I'm doing wrong

Hi ReemaPuri,

Check your application on apex.oracle.com. The problem is resolved.

Here are the steps:

  • Page-> section JavaScript attributes-> function and Global Variable declaration drafted according to the javascript function:
function f_disableDtPicker (pThis) {
    var row_val = pThis.value;
    var row_id = pThis.id.substr(4);
    if (row_val == 'N') {
        // disable datepicker input
        $('#f04_'+row_id).attr("readonly", true).addClass('apex_disabled');
        // disable datepicker icon
        $('#f04_'+row_id).next('button.ui-datepicker-trigger').addClass('apex_disabled').unbind('click');
    } else {
        // disable datepicker input
        $('#f04_'+row_id).attr("readonly", false).removeClass('apex_disabled');
        // disable datepicker icon
        $('#f04_'+row_id).next('button.ui-datepicker-trigger').removeClass('apex_disabled').unbind('click');
    }
}
  • Changed your SQL query from:
select APEX_ITEM.SELECT_LIST(1,'Y','Yes;Y,No;N','class=myclass" onchange="f_disableDtPicker(this);"')yn ,
APEX_ITEM.DATE_POPUP2 (
           P_IDX                   => 4,
           P_VALUE                 => NULL,
           P_DATE_FORMAT           => 'DD-MON-RR',
           P_SIZE                  => 10,
           P_MAXLENGTH             => 256,
           P_ATTRIBUTES            => NULL,
           P_ITEM_ID               => 'f04_'||ROWNUM,
           P_ITEM_LABEL            => 'Label for f04_'||ROWNUM,
           P_DEFAULT_VALUE         => NULL,
           P_MAX_VALUE             => NULL,
           P_MIN_VALUE             => NULL,
           P_SHOW_ON               => 'both',
           P_NUMBER_OF_MONTHS      => NULL,
           P_NAVIGATION_LIST_FOR   => 'MONTH_AND_YEAR',
           P_YEAR_RANGE            => '-5:+5',
           P_VALIDATION_DATE       => NULL ) "date "
from dual;

to do this:

select APEX_ITEM.SELECT_LIST(
        p_idx           =>   1,
        p_value         =>   'Y',
        p_list_values   =>   'Yes;Y,No;N',
        p_attributes    =>   'class=myclass" onchange="f_disableDtPicker(this);"',
        p_show_null     =>   'NO',
        p_null_value    =>   NULL,
        p_null_text     =>   NULL,
        p_item_id       =>   'f01_'||ROWNUM,
        p_item_label    =>   'Label for f01_'||ROWNUM,
        p_show_extra    =>   'YES') yn ,
APEX_ITEM.DATE_POPUP2 (
           P_IDX                   => 4,
           P_VALUE                 => NULL,
           P_DATE_FORMAT           => 'DD-MON-RR',
           P_SIZE                  => 10,
           P_MAXLENGTH             => 256,
           P_ATTRIBUTES            => NULL,
           P_ITEM_ID               => 'f04_'||ROWNUM,
           P_ITEM_LABEL            => 'Label for f04_'||ROWNUM,
           P_DEFAULT_VALUE         => NULL,
           P_MAX_VALUE             => NULL,
           P_MIN_VALUE             => NULL,
           P_SHOW_ON               => 'both',
           P_NUMBER_OF_MONTHS      => NULL,
           P_NAVIGATION_LIST_FOR   => 'MONTH_AND_YEAR',
           P_YEAR_RANGE            => '-5:+5',
           P_VALIDATION_DATE       => NULL ) "date "
from dual;

Kind regards

Kiran

Tags: Database

Similar Questions

  • How to disable the search in drop-down list control

    Hi all

    I'm designing a dashboard with a command prompt. In this message, I use a drop-down list control which I hope to turn off the option "search...". ».
    Does anyone know a way to disable the option 'search' in a drop-down list control, so that users can not find values on the database.

    Any kind of help appreciated.

    Thank you!

    Laurent

    Published by: 988334 on 26 Feb. 2013 10:27

    Hi Laurent,.

    You can try the below workaround to hide the option "search...". "on the drop-down list.

    -Click on the dashboard to change where the dashboard prompt is present.
    -Add a text object to the page and paste the code below into it.

    -Check that you check the option 'Contains HTML markup'.
    -Save the page and run the dashboard. This should hide the option "search...". ».

    I tried this on IE and obiee version 11.1.1.6.6.

    Thank you
    Hyder

  • How to revoke the SELECT on a table for a specific user?

    Environment:

    SQL * 3.1 on Windows XP Pro SP3 Developer to connect to Oracle 11.2.0.3 EE on Solaris 10.5.

    I have table T with SELECTION privilege granted on this issue both a role and a specific user.

    I am using SQL * Developer to revoke the privilege SELECT on this table of the individual user and leave the role.

    I can see how to revoke the role by right-clicking on the table and goes to the privileges-> revoke but I can't find where to choose a specific user to revoke of.

    Any help is greatly appreciated!

    -gary

    Hi Gary,.

    You are probably aware of the SQL syntax of base to make grant and revoke of SQL * more or the SQL Developer Worksheet:

    grant select on .T to ;
    revoke select on .T from ;
    

    To reach the equivalent to revoking of SQL Developer Connection Navigator...
    1. open the connection for
    2 expand the Tables node, and then open the object for table T browser.
    3. click on the grants tab and then, in its toolbar, select Actions->-> Revoke privileges
    4. Select in the drop-down list of the dialog box to remove user Action.
    5 shuttle privilege SELECT from the right back to the left, and then click apply.

    One would expect to be able to do the same thing from say the node under the node for the use of the SYSTEM for other users, but this isn't the case.

    Hope this helps,
    Gary Graham
    SQL development team

  • How to change the selected index of a list of a DG?

    It is probably simple and I'm in the right place. I have a datagrid. When I select an element of the DG, he fills out a form that can be updated. One of the form fields is a list control with a remote object values. I want this list to highlight/select the value that corresponds to that of the DG when the item is selected. For example if I have a list of numbers 1, 2, 3, 4, 5 and the question that I select in the DG contains a 4, then I want the list to automatically select 4 as a default in the list when I select the element of the DG.

    You must loop through the result of your RemoteObject looking for a match, after that you have added to the list. I posted a sort of model of example to show what I mean, yours will be different of course, but I think you can grasp the concept based on what I'm trying to show.

  • How to disable the selected lines in ADF

    Hello

    I have a dynamic data table with 2 test of EMPLOYEENAME and DESIGNATION fields. If the DESIGNATION is "trainee", I want the particular lines of "trainee" lock/disable dynamically. Can anyone tell how it is possible in the ADF

    Thank you
    Prabhsh.

    Prabhsh,

    If your question is answered would you kindly the question an answer?

    Timo

  • How to disable the boxes created by table multiplesection.

    Hello

    I created a table and I added a multiple selection which creates checkboxes in default.i used the "SelectFlag" as a transitional attribute in the VO.
    Now, in the t, I have a column name 'Status' which has two values
    1 error
    2. success.
    I showed this column in the table after that the checkbox "select..."

    So, my requirement is that when the status is 'Success', then the boxes must be disabled...

    Can anyone suggest me the things I need to add in the Page or the controller Code to implement this?

    Please its Urgent...//

    If his classic table, you can use bean to switch to achieve this.
    See exercise to delete in the tutorials of Toolbox, he got the step by step procedure to do this.

    Prasanna-

  • How to disable the SOS on Apple Watch 2 function

    How to disable the SOS on Apple Watch 2 function?

    Hello

    It is not currently possible to completely disable the SOS emergency feature.

    However, to disable "hold to call auto":

    • On your iPhone, in the application of the watch, go to: Watch My > General > emergency SOS - deactivate Hold to call self.
  • How to disable the feature CALL SOS?

    I've just updated to iOS 10 and 3 watch OS, but I can't find how to disable the feature of emergency SOS on my Apple Watch.

    I thought it would be a good feature for me so I turned it on, but my fingers are clumsy, so I struck the wrong cursor when I turned off my watch and accidentally, I called 911. I've disabled "Stick to Auto Call" and deleted all my contacts SOS in general in the application to watch on my iPhone and I restarted the iPhone and the Apple Watch, but emergency SOS still shows on my watch when I want to turn off my watch.

    I think that before I turned emergency SOS, I saw "Power Reserve" under the "Power Off". I read that once you turn Hold for Auto call in the app shows and then turn off, the cursor of SOS emergency will always be displayed when you turn off the watch.

    How can I disable the cursor of emergency SOS when I turn off my Apple Watch? Can I use Reset under general, or désapparier my watch and pair again? I don't want to do that, because it would take a lot of time to get all my settings that I want them to be.

    Hello

    I'm not aware of any option settings to remove the emergency SOS cursor in the menu that appears on pressing them and holding the button.

    If you want Apple to consider adding an option to disable the feature, you can submit a request here:

    https://www.Apple.com/feedback/watch.html

  • How to disable the photo?

    How to disable the photo?

    Not easy - just ignore it

    LN

  • I don't have a message to tell me the image my takes up screen is set to full screen. How to disable the who and the fade slow when he goes to fs?

    In Firefox 42

    When a site like youtube when I make the video fullscreen it just melted slow useless when it does. And then tells me that it is full screen. I know that it is full screen for two reasons. One, I hit the button fullscreen. Two, the video takes up my entire screen. The message point. Use the fade. How can I disable them?

    To disable the fade, you can change these preferences of the topic: config page.

    • full-screen - api .transition - duration.enter: "0 0".
    • full-screen - api .transition - duration.leave: "0 0".

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    I do not know how to disable the warning, but it might be possible to hide this message with code to userChrome.css or elegant.
    This message is displayed for security reasons because a malicious script can switch to full screen mode and take over the entire window without noticing you (i.e. show a fake office).

  • How to disable the Mozilla Startup tab

    I have just a single tab appears when I run Mozilla. In my case, it is my start page on GOOGLE. Why I also have the Mozilla Firefox Start Page? I do not need or want. How to turn off this tab it appears not everytime I run Mozilla Firefox?

    How to disable the "Welcome to Firefox" tab to appear?

    Hi, please see How to set the home pageand make sure that "Homepage" only shows your favorite - homepage for example google.com and remove anything else.

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

  • How to disable the toolbar to search related

    Visiting a few results from web sites in the appearance of a toolbar on the left, called "related searches." How to disable the toolbar?

    I have the feeling that it is injected by one of your modules. Here's my method to track down and clean the bad modules and ad injectors. I know it seems long, but it's not so bad.

    (1) open the Control Panel, uninstall a program. After the loading of the list, click on the column heading "installed on" to group infections, I mean additions by date. This can help the undisclosed items bundle smoker who snuck out with some software, you have agreed to install. Out as much garbage as possible here.

    (2) open Firefox page modules using either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons
    • in the Windows "Run" dialog box, type or paste
      firefox.exe "about:addons"

    In the left column, click on Plugins. Set essential and unrecognized plugins 'never enable '.

    In the left column, click Extensions. Then, in case of doubt, disable (or delete, if possible) not recognized and unwanted extensions.

    Often, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Any improvement?

    (3) you can search the rest of problems with scanning/cleaning tools listed in our technical support article: Troubleshooting Firefox problems caused by malware. These scanners on request are free and take a long time to run. If they end quickly, especially if they require the payment you have a serious infection. I suggest the specialty forums listed in the article in this case.

    Success?

  • How to disable the mac os 10.11.5 user comments?

    Hello world

    I managed to hide from the guest user at startup on my Macbook Pro. But with the last update came back again. Can anyone such me how to disable the guest on mac os 10.11.5 user?

    It is a part of the default value of the OS X system. It lets you allow guest access to the computer that is very limited, thus protecting your data. It is not supposed to be deleted.

    Tip for the disabled guest user appears at startup

    Disable the guest user on Mac OS X Lion login screen 10.7.2 account

    How to disable the guest user | Apple support communities

  • How to disable the InfoBar for plugins (ask to activate)

    Allow (url) to execute "Adobe Flash"? [Block Pligin] [Leave] X

    How to disable the information bar?
    plugins.hide_infobar_for_blocked_plugin or
    plugins.hide_infobar_for_outdated_plugin do not work.

    I need to activate the function but do not have this information bar.
    FF26

    Hello m8rr, yes it is possible - please see: https://addons.mozilla.org/firefox/addon/hide-plugin-notifications/

  • How to disable the PNG Images

    How to disable the PNG Images?

    PNG is a format for images (compressed) as JPG format. There is no way to disable this format.

    If you have a problem with images on web pages, then you will need to block images from certain domains.

    You can watch the Adblock Plus extension to block specific content.

    You must subscribe to a list of filters (for example the EasyList).

Maybe you are looking for