Enable/Disable Date Picker

I created an APEX page with two items named P47_APPROVED_YN and P47_APPROVED_DATE. The page item P47_APPROVED_DATE is controlled with the following logic in the HTML Header property:
function disAD()
var lVal = $v('P47_APPROVED_YN');
if(lVal == 'Y')
$x('P47_APPROVED_DATE').disabled=false;
$x('P47_APPROVED_DATE').style.backgroundColor = 'white';
else
$x('P47_APPROVED_DATE').disabled=true;
$x('P47_APPROVED_DATE').style.backgroundColor = 'lightblue';
P47_APPROVED_DATE is enabled and disabled properly when I select P47_APPROVED_YN but the date selector, defined in the item Display-as property, still displays and allows the user to select a date even when P47_APPROVED_DATE is disabled.
Question: How do I enable or disable the date selector when P47_APPROVED_YN == ‘Y’ or 'N'?
Thank you, Ned

See this thread... disable date picker
Thank you,
Tony Miller
Webster, TX

Similar Messages

  • Javascript-disabled date picker items

    If I disable a Date Picker item via Javascript the user can still enter a date into it via the calendar pop-up: I want to prevent this. Is there any easy way to do so? All I can think of currently is to build my own date picker functionality, with the icon as an item that I can hide or show via Javascript.

    Hello,
    Following Carl’s idea, the following should allow you to disable/enable a date picker item:
    function toggleDatePicker (pThis, pDisable) {
      var lNode = $x_UpTill(pThis,'TR');
      lNode.disabled = pDisable;
      var lNode = $x_UpTill(pThis,'TD');
      var lA = lNode.getElementsByTagName('A');
      if(pDisable){
        if(lA[0].getAttribute('href')){
           lA[0].setAttribute('onclickoff',lA[0].getAttribute('href'));
           lA[0].setAttribute('href','javascript: void(0);');
      }else{
       if(lA[0].getAttribute('onclickoff')){
         lA[0].setAttribute('href',lA[0].getAttribute('onclickoff'));
    }pThis is the date picker item name. pDisable set to true will disable the item, and false will enable it.
    Although the user can enter a date into the field, it’s still disabled. That means that this item will not be POSTed to the server and will not be set in session state.
    Hope it helps,
    Arie.

  • Disable date picker

    How do I disable date picker item (specifically the date picker pop up). I am workingon Version 3.0
    Thanks and Regards,
    Kumar

    Hello Kumar,
    In that blog post I explained how you can disable the clickable datepicker image (that will show the popup), when you disable your datefield.
    As you can see in the comment, if you add a condition to make the date field read-only the icon is automatically removed, but if you disable the datefield during navigation on your screen (using javascript), that wasn't happening.
    And in the example I used jQuery (installing that is a prerequisite), to disable all icons of date fields that are disabled.
    A function for disabling the icon of a specific datefield should be something like:
    function disableIcon( pThis ){
      var i=this.id;  
      $('#'+i+'_IMG').click(function() 
      {return (!document.getElementById(i).disabled);}); 
    }And you can call that using : disableIcon('Pxyz_DATE');
    HTH
    Greetings,
    Roel
    http://roelhartman.blogspot.com/

  • Disabling data usage on Elipsis Tablet does not turn of Data Usage

    Yesterday purchased 3 tablets for my kids. First thing I did when I got home was add home wifi and disable data usage. Ridicoulous but this does not disable data usage. Tablet used 4gb of data before I realized what was going on, all the while connected to home Wifi, like the data connectio took precedence. This is a major flaw of this tablet. Called Customer Service, waiting for a mgr to call back. Unfortunatly waiting on hold for over 45min without getting to tech support but in the end the only way to turn off data apparently (or at least I found) was to put in Airplane mode. This is not right!
    Even support forum states this is the way to enable/disable data. I feel dooped!

        I'm sorry you waited so long trying to get through to Tech Support dm805. I know being able to disable Mobile Data is important to keep usage under control. As Ann154 mentioned, you are able to turn off Mobile Data in Settings. You can go to Settings> Data Usage> Select Mobile Data (at top right hand side), and it will turn off.  You can also go to Settings> More> Mobile Networks> Uncheck Data Enabled.
    I hope this helps.
    Thank you,
    VanessaS_VZW
    Follow us on Twitter @VZWSupport

  • After enabling cellular data, i am receiving mails even if disable "use cellular data for mail", due to this data usage usage use is more, if we have fix please let me know

    Phone Model and OS
    Model - iphone 5
    IOS 8.0.2
    Problem Description
    After enabling cellular data, i am receiving mails even if we disable "use cellular data for mail", due to this data usage usage use is more, if we have fix please let me know.
    Steps:
    1. Enable Cellular Data
    2. Disable mail on "use cellular data for mail
    3. check whether mail is received or not
    tried multiple times and i am getting more billing amount because of data usage

    Mail isn't the only app using data. Turning it off there has no effect whatsoever on whether the rest of iOS or other apps you have installed. In fact most apps use data these days, at a minimum for Notifications and often for gameplay and other features.

  • How to disable the date picker in manualy Tabular form?

    I develope an application with apex 3.2 , I builded a tabular form manualy with APEX API and I have an item 'date picker' , I want that once user want insert the date , he can do it only by clicking on the date picker and not into the item
    I try to use the code that was provided by 'Desnes Kubicek' on his blog , but it does not works
    Any help!!!!!
    I used this code , but that is for an one item form
    <script type="text/javascript">
    function disFormItems(item1){
    disItem = document.getElementById(item1);
    disItem.style.background = '#eeeeee';
    disItem.disabled = true;
    </script>
    2. Region Footer javascript:
    <script type="text/javascript">
    disFormItems('P18_DATE_PICKER');
    </script>

    Hi,
    Try something like this
    SELECT
    APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy',12,15,'readonly="readonly"','f04_' || ROWNUM) hd
    FROM EMP;Thanks,
    Manish

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • Updating date while enabling/Disabling user in AD

    Hi All,
    We are using FIM 2010 R2 SP1 and integrated with AD.
    All integration is done through synch rule and no coding.
    Now we have a new requirement to update date in AD while enabling and disabling user.
    Kindly suggest, how it can be achieved through synch rule.
    Thanks,
    Mann

    Hi Mann.Cool,
    You can't set a date dynamically thought sync rule. Instead, I suggest you parse useraccountcontrol and set an custom attribute with value enabled/disabled.
    See
    http://idmgnt.wordpress.com/xpath-custom-expression/ (Check if an account is enable or not)
    Once is done:
    Create two new sets "Enabled users" and "Disabled users"
    Create a WF with T4F Function Evaluator, to set your date attribute (http://oxfordcomputergroup.com/technology/software-tools-components )
    Create the mpr
    Let me know if you want more details
    Regards,
    Sylvain

  • If Date Pick is future Date then Select List should get disabled

    Hi,
    I use Application Express 3.1.1.00.09 version.
    Item P320_LATEST_DLR_DATE_PROJECT which is Date Picker(DD-MON-RR), if the date selected is greater than system date then P320_LATEST_DLR_RATING_PROJECT which is Select List should get disabled.
    I tried in this manner:
    1. Javascript in the Page Header:
    <script>
    function dis_selectlist(pThis, pThat)
    if (pThis.value > 'SysDate')
    {$x(pThat).disabled = true;}
    else{$x(pThat).disabled = false;}
    </script>
    2. Date Picker(P320_LATEST_DLR_DATE_PROJECT) HTML Form Element Attribute:
    onchange="dis_selectlist(this,'P320_LATEST_DLR_RATING_PROJECT')"
    But it is not resulting in disabling of Select List Item.
    Can any one tell me if this is proper or any other method to get the result?
    Thanks,
    Priyanka.

    except for making a calendar (http://active.tutsplus.com/tutorials/actionscript/understanding-date-making-a-calendar-in- as3/) there is only logic needed to create that app.

  • Enable/disable fields in Workspace form

    Okay here is my scenario. I need to disable some fields on a form depending on which user logs onto workspace to open the same form.
    1. User1 logs onto workspace and opens leave request form, fields at the top of the form are enabled for the user to fill out, bottom fields which are for leave request administrator to fill out are disabled but visible.
    2. User1 fills out top portion of leave request form and completes form. Workflow sends form to leave request administrators "To do" list in Workspace.
    3. Administrator opens up submitted form in Workspace and sees User1's filled out data on the form and the bottom fields are now enabled for administrator to approve or dissaprove. Bottom fields only include two check boxes, two text fields and one date field.
    Now how is this done? I am sure their maybe scripting involved? if so what is it and at what events in the form? Is this whole process done in the form or through Admin UI or Workebench as well? Please help!!!!!!!!!

    Hi Rahat,
    You can use the same form and enable/disable some fields according to the user's role with only little scripting. Review the steps the below:
    1-First place a hidden field ("user_role") in your form
    2-Insert a script object into your form onder "Variables" in object hierarchy and write a script for enabling/disabling the fields (regarding the value of "user_role")
    3-On the initialize and change events of the "user_role" call your script object
    4-On your process design, put a SetValue service before User tasks. In the asssignment you should set the desired user_role to the form, so that the script is triggered in your form and the fields are enabled/desiabled
    Fro further needs on your form or process design you can contact us from: http://www.kgc.com.tr/company_Contact.html
    Oguz
    http://www.kgc.com.tr

  • Enabling / Disabling graphs and opening a new Front Panel Window

    Hi,
      I have a simple application of showing 12 analog signals on 12 different graphs placed vertically in aligned position. I have to develop a user interface so that if user wants to display signal no. 1, 4 and 6 out of total 12 signals, he should make selection using check boxes and click a re-draw button. It should result in opening a separate window with these three signals displayed as separate graphs aligned vertically and adjusted to fit window size. Similarly later user can change his selection of displaying signals (from same acquired data) say 1, 3, 5, 6, 8, 9, 11 & 12 and click Redraw button. It should result in opening a new Window showing all these signals as separate graphs which are aligned vertically and resized to fit the window. Now I have two major issues in this context.
    1) I have been searching LabView help to locate a way to open a new window for this purpose but I failed to locate any way for it. As per my limited knowledge, it seems that we cannot have multiple "Front Panel" windows in Labview.
    2) For the graph I could not locate a control to enable/disable a graph so that it appears or vanishes. Is there any way to achieve it?
    I shall appreciate your valuable advice. I shifted from "Lab View Signal Express"  to "Lab View" in order to achieve this user interface design but I am still not successful in finding a good solution for this application.
    Regards
    Mnuet

    Hi Mnuet,
    You can do what was said above. Here is a KB on dynamically loading VIs. It looks something like this.
    Dynamically loaded VIs are loaded at the point in code while running, as opposed to being loaded when the parent VI is loaded into memory like normal subVIs. You can make a reference to them and then control the front panel appearance, their run status, etc with property nodes and invoke nodes.
    Jeff | LabVIEW Software Engineer

  • Two questions: Event on a Date Picker and Read Only on a full page?

    Hello,
    I make use of this very informative board to develop an application but i have been unable to find info on these two topics. Sorry if it has been already discussed extensively.
    Using HTMLDB 2.2 for now.
    =>First question:
    I have a date picker item with an event
    onChange="resaStatusChange();"
    in the HTML Form Element Attribute field.
    The event is triggerring if i put a new data in the field but does not trigger if i use the picker.
    Is it a standart behaviour? Is there a way to trigger the event when new data is provided through the date picker?
    => Second question:
    One page in my application has to be used either to only display information or as a mixed displaying/entering data sheet.
    When the context is appropriate to use the page as a simple display (testing both global authorization and data to be displayed), is there a way to put a read only attribute on the full page instead of putting the read only conditions through each and every item of the page?
    Sorry if the questions are not clear and apologize for what should be newbie questions.
    Any link or info will be appreciated.
    Regards,
    Daniel Gureghian

    Hi Daniel,
    I'm not sure about your first question, but I can hopefully give you a helpfull answer for your second one.
    I'm handling it this way:
    var elInput = document.getElementsByTagName('input');
    var elTextArea = document.getElementsByTagName('textarea');
    var elSelect = document.getElementsByTagName('select');
    for (i = 0; i < elInput.length; i++)
      setReadOnly(elInput, true);
    for (i = 0; i < elTextArea.length; i++)
    setReadOnly(elTextArea[i], true);
    for (i = 0; i < elSelect.length; i++)
    setReadOnly(elSelect[i], true);
    function setReadOnly(pThis, pRead)
         if (pThis && pRead)
              pThis.disabled = pRead;
              pThis.style.emptyCells = "show";
              pThis.style.color = "black";
              pThis.style.backgroundColor = "#DDDDDD";
         else if (pThis && !pRead)
              pThis.disabled = pRead;
              pThis.style.emptyCells = "show";
              pThis.style.color = "black";
              pThis.style.backgroundColor = "#FFFFFF";
    I never used it on a whole page, only for regions. So maybe you have to make some changes.
    chrissy

  • Need help with OA Framework. Enable/Disable LOV dynamically

    Hello,
    I am new to OA Framework. My requirement is as follows;
    The page should have a field with parameter org code (LOV). When the user selects an org and click GO button, the page should display all the inactive items (which have no Sales order or work order for last 2 years). In the table region, user selects single record or multiple records by a check box. The selected records should be processed after clicking a submit button in the table region. The process is, calling an API to change the status of the item to Inactive or some other status. The status should be determined by the user by selecting a LOV within the table region. I could create LOV based field for org code and could display the data on the page. I have been trying to display the LOV for item status , I have created a LOV under table region under table components > table actions. I could open the LOV and select a value, but the value is not defaulting to the field on the page. Somebody please help me with a suggestion or if you have the code for a similar kind of requirement please share with me.
    Also, need some suggestion on how to enable and disable LOV dynamically. I want to display the 2 LOV's in different regions. I want to enable the LOV for Item Status only after the org code is selected and the page populated after the user clicks GO button.
    Thanks in Advance…..

    Hi,
    I could open the LOV and select a value, but the value is not defaulting to the field on the page.pls check the LOV mapping ,this might be wrong.
    to enable/Disable LOV dynamically ,u need to use PPR,please check the lab solution exercise create employee chapter to learn to implement PPR functionality.
    Thanks
    Pratap

  • Date Picker not allowing to capture time

    Hello Friends,
    I am trying to create a tabular form on a table[create SQL as below].
    CREATE TABLE  "JOB_RUN_DETAILS"
       (     "JOB_NAME" VARCHAR2(100),
         "SCH_RUN_DATE" DATE,
         "START_DATE" DATE,
         "END_DATE" DATE,
         "STATUS" VARCHAR2(100),
         "ID" NUMBER NOT NULL ENABLE
    /My idea of the tabular form is to allow entry of time both hours and minutes from the date picker along with date for <b>"START_DATE", "END_DATE" </b> items.
    But I dont see a possibility to do that for hours and minutes. But I remember having seen this in Apex 3.2, not sure if I missed some thing while page making or this feature of Date Picker is left intentionally in the new release.
    Please share any ideas you have.
    Thanks,
    Chaitu.

    My understanding is you are trying to create a Tabular form using the Table which you specified, you are expecting time part to be displayed in the Date Picker column ?.
    The Time part of hours and Minutes will be displayed based on the format mask used for the Application or the item. if the format mask is DD-MM-YYYY HH24:MI then you will see the hour and minute part with the Date Picker.

  • How to enable / disable SSRS Parameter

    Hi
    I want to enable a parameter called "start date" (type is date) when another (value from dropdown) parameter is selected
    Say for an example, i have below 3 parameters
    1. drop down which 2 values called "vtextbox","vdate"
    2. start (data type is date)
    3. finish (data type is date)
    when i select "vdate"value from the dropdown 2nd and 3rd parameters has to be enable
    similarly when i select "vtextbox" value from the dropdown 2nd and 3rd parameter has to disable
    I have searched many forums every one says this is not possible in report manager interface
    But this is possible in custom code
    please make a note all three parameters are independant
    It would be great if any one provide the custom code for same
    Regards
    Santosh

    Hi itsmesantosh1982,
    According to your description, you want to use a parameter to control enable/disable other two parameters. Right?
    In Reporting Services, when we create a parameter, this parameter has been enabled. The only way you want to disable the parameter is deleting it. In this scenario, disable the two parameter is same as selecting all values in these two parameters. So
    we can just modify the default values in 2nd and 3rd parameter instead of using cascading parameter. We can create a dataset, put in the query below:
    IF @Param='vtextbox'
    select distinct startdate from [table]
    else
    select '[value]'
    The [value] can be any value which is not existing in [table]. So when you select 'vtextbox', the default value will be all values in the table. If you select 'vdate', it will need you to select value automatically because the return value is not existing
    in the table. This can be an effective workaround for your requirement.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • How to deal with "Script stopped responding" in general Part 3

    OK, I have asked about this issue before, and am back because it won't go away. First, I have tried resetting Firefox. Yesterday was the most recent time. I have tried using add-on Script Blockers. The Script Blocker program worked for a while. The p

  • Is there a way to have multiple pass codes on a singe iPad or iPhone?

    I would like to have multiple pass codes on my iPad2s. I need a separate pass code for the 'Reset" functions. I want to use one pass code for when the iPad is "booted' or woken up  then a different passcode for when the "Reset" funtions are accessed.

  • Error loading transaction data from csv file

    Hello all I am getting the following error when loading from a .csv file: Error 'The argument '-65.025,60' cannot be interpreted as a number' on assignment field BALANCE record 1 value -65.025,60 The BALANCE field is defined as : 0D_BALANCE (from the

  • Bit Map Join Index Creation

    Hi, I have a db of version 10.2.0.3 on a Unix box. This is used for DW. I have a dbms job which is basically creates 6 bit map join indexes between two tables parallelly. One of the table (Fact table) has almost 170 million data and the other one (Di

  • Packaging an AIR application in a native installer

    Hi! I'm trying to create a native installer of my AIR Application,  because (I think) it's the only way make the native processes working.  But I have a problem: I used the following command to pack: "adt  -package -storetype pkcs12 -keystore myCert.