Date Picker visbile by default in Apex.

Hi All,
I have created two date pickers by default i will be dsiplaying only one, but when they click on that link i wil diplsay the other date picker report.
I have created demo in my application but that is showing fine in 4.0 version but when i had tried in lower version 3.0 the date picker calendar is showing by deafult. But no erros are dsiplayed in script.
Can you please let us know how we can hide the samll part of calendar icon.
Here is an examplei had created whcih is replaicted what i had done im original application.
workspace-apex_demo_bosu
[email protected]
password-bosuseshu
URL is http://apex.oracle.com/pls/apex/f?p=19104:1:246873615402401:::::
Thanks,
Anoo..

I realized you were talking about a form with an "Automatic Row Fetcher" after I had clicked submit;
Let me see if I can understand this:
you have a date column in your table (I hope it is a date)
you have created a "form on a table" page that has an Automatic Row Fetcher process in it.
If the row you are displaying has a value for the date column, you want that value to show up in the Date Picker item type (this should already happen)
If the row you are displaying does not have a value, you want the Date Picker to have a default value of sysdate. (eg a NEW row of data)
If #3 is not happening, let us know.
#4 just requires a process that runs after the Automatic Row Fetcher.
eg
begin
  if :P11_DATE is null
  then
    :P11_DATE := to_char(sysdate, 'DD-MM-YYYY');
  end if;
end;
I'm sure there is  better way to do it.  I just don't know it right off.
Mk

Similar Messages

  • Date Picker - Default Date

    Is there a way to set a default date in the date picker, but not show this default date in the date item? I want the date item to be blank, but when the user clicks on the date picker it will default to a date that is entered in another part of the application.
    Example, users are entering people that are on call. They are entering date for March. I can set the default date, but it shows up in the date item. I just want the date picker to have the default.
    Thanks in advance.

    The APEX Date Picker's default is directly tied to the field. You can't set one without the other unless you wanted to create your own date picker item. There are a few custom date pickers you can do a quick search for. You might be able to find one you can modify to meet your needs.

  • Date Picker BUG on APEX 4.2.1

    Hi all could you please open a ticket for the following bug.
    Reproducing the bug very simple.
    Apex specification :
    version 4.2.1.00.08
    I'm not using HTML 5 template but the classic "Blue and Tan" one.
    1) Create a page with date picker with mask (DD-MON-YYY HH24.MI).
    2) set as default value the SYSDATE using the PLSQL expression (not specifying the mask to_char()).
    3) Try to use it and you will see that the year shown is not the correct one but is something like 1911.
    I fixed using to_char(SYSDATE,'DD-MON-YYY HH24.MI') in the PLSQL expression.

    Hi Zere,
    one very important thing to remember when dealing with session state (the value of a page item) is that everything is stored as string.
    If you specify SYSDATE as your default expression, then the Oracle database will evaluate that as date data type, but as soon as it's stored in session state, the database will do an implicit data type conversion using the default format mask specified for your database session.
    That's why it works when you do the TO_CHAR with the explicit format mask.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf
    Edited by: Patrick Wolf on Apr 10, 2013 3:37 PM

  • Apex 3.1 Upgrade Issue - dba_lock and date picker display

    A couple of minor issues I've seen with my upgrade from 3.0.1 to 3.1. Just wondered if anyone else has seen them and if anyone has a simple fix for the date picker problem :
    1. DBA_LOCK - the upgrade process itself complains about the SYS.DBA_LOCK view not existing - easily remedied by running catblock.sql before you start the upgrade (but not listed as a pre-req)
    2. DATE PICKER display - I have a date picker item in a navigation region - before the upgrade the calendar icon happily appeared directly to the right of the date cell, since the upgrade the icon has moved to underneath the cell, messing up the look and feel. (Also the size of the pop up calendar doesn't quite fit its contents now and you have to resize to see the close and ok buttons )
    Any confirmation that others can replicate the second issue or a quick fix would be very helpful.
    Many thanks,
    Rich.

    Rich,
    >> Unfortunate that something has changed between 3.0 and 3.1 then that will require us to change the formatting. Hopefully not too much work to sort out a form region that looks the same though.
    I know the templates were revised for APEX 3.1, but that should not have affected existing applications. So you're saying that application used a Navigation Template before just fine without issues? I'll ask Carl to investigate.
    >> The issue of the default size of the pop up window cutting off the buttons at the bottom still remains in your example however. (obviously users can resize it but not ideal)
    Well, that really sucks. The worst thing we can do is break the behavior of existing applications, and it appears we've done it here. I filed Bug 6864371 on this issue. We'll get it fixed in the very first patch set for APEX 3.1.
    Joel

  • In the Date Picker, How can I default to select * dates if the user does ..

    In the Date Picker, How can I default to select * dates if the user does not select a date.
    Thanks,
    Doug

    Doug,
    Now lets say l want everythingCould you post some sample data and the output that you want to get..? It would be much easy to understand the requirements...
    When you mean everything, I am assuming you need all possible dates possible between date1 and date2.
    you can use... (from asktom.oracle.com).
      1  select to_date('12-jan-2009','DD-MON-YYYY') + rownum -1
      2    from ALL_OBJECTS
      3    where rownum <= (to_date('20-jan-2009','dd-mon-yyyy') -
      4*                     to_date('12-jan-2009','DD-MON-YYYY') +1 )
    sql> /
    TO_DATE('
    12-JAN-09
    13-JAN-09
    14-JAN-09
    15-JAN-09
    16-JAN-09
    17-JAN-09
    18-JAN-09
    19-JAN-09
    20-JAN-09
    9 rows selected.
    For your case, since you have date1 and date2...
    select to_date(:p12_date1,'DD-MON-YYYY') + rownum -1
      from ALL_OBJECTS
      where rownum <= (to_date(:p12_date2,'dd-mon-yyyy') -
                        to_date(:p12_date1,'DD-MON-YYYY') +1 )Should work.. in my opinion...Haven't tested the second one in Apex .
    Is this what you were looking for ..?? If not, please elaborate...
    Thanks,
    Rajesh.

  • Preselecting a default date on date picker

    Hi
    oracle 10g xe apex 2.1.x on windows xp
    By default date picker always defaults to current date. I want it to default to a date value that has already been selected by the user in the current page. For eg. it will be a variable of the type :P1_report_date.
    Is this possible?
    Thanx
    SR

    I do something like:
    Default Value: to_char(add_months(sysdate,-3),'DD-MON-RR')
    Default Value Type: PL/SQL Expression
    This gives me a date three months back from today in the date picker format. Of course you can modify to use the date picker format you are using.

  • Date Picker shows displays wrong timezone after Apex 2.2 upgrade

    After upgrading from 2.0 to 2.2, all date pickers in all applications now display the time in GMT instead of GMT - 7.
    For example: before upgrade 08/03/2006 9:00 -- after upgrade 08/03/2006 16:00.
    The date and time on the server is set to GMT - 7. The database displays GMT - 7 in all other non-Apex apps.
    I suspect there's a global preference that needs resetting, but I can't find it.
    Cheers,
    Jaime

    Hi Jaime,
    What you are witnessing is a feature and not a bug. Shame on us for not making this change in behavior more prominent. But this feature ultimately emanated from the posting at:
    Re: Date Picker and timzone
    In Application Express 2.2, if you are using a DatePicker, the current date and time will be computed based upon LOCALTIMESTAMP. LOCALTIMESTAMP is time zone aware. By default, it will use the database's time zone.
    To control the user's time zone setting in your application, you could add a before-header application-level process (and, ultimately, another one on Submit) to issue a PL/SQL statement like:
    execute immediate 'alter session set time_zone = ''America/New_York'' ';Note:
    1) Those are sets of two single-quotes around America/New_York, not double-quotes
    2) Obviously, you'd replace America/New_York with your favorite time zone. The full list is at:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14225/applocaledata.htm#sthref2012
    As a quick demonstration, run the following block in SQL Commands on apex.oracle.com or your favorite APEX instance:
    begin
        dbms_output.put_line( 'LocalTimestamp Before: ' || localtimestamp );
        execute immediate 'alter session set time_zone = ''America/New_York'' ';
        dbms_output.put_line( 'LocalTimestamp After: ' || localtimestamp );
    end;
    /I hope this helps.
    Joel

  • Default Date Picker Format

    I have several applications in one workspace. I need different default formats for date pickers.
    Where in the application can I set the default format for the date picker.
    Gus

    Hi Gus,
    you can set the default date format at application level. Go to Shared Components > Globalization Attributes and set "Application Date Format".
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Date Picker has to submit the default value after the page load???

    Hello All,
    I have 2 date pickers 'Start' and 'End' on a screen with report that has a where clause using above values. Start defaults to current date, End defaults to current month end date, I have another radio group with default to Monthly......
    Now when the page loads, I see the default values for 'Start' and 'End' date pickers but the report doesn't reflect those values. I added an on change dynamic action, and so when I change the value of 'End' date picker, it submits the page and now the values are reflected in the report........
    I tried creating another dynamic action > with event On Page Load.....and disable fire on page load, and to submit the page, this is causing an infinite loop of submitions........can you please tell me how to achieve this with out putting an exclusive submit button on the Screen.......
    Thanks for your time.
    DK

    user12296343 wrote:
    Hello All,
    I have 2 date pickers 'Start' and 'End' on a screen with report that has a where clause using above values. Start defaults to current date, End defaults to current month end date, I have another radio group with default to Monthly......
    Now when the page loads, I see the default values for 'Start' and 'End' date pickers but the report doesn't reflect those values. I added an on change dynamic action, and so when I change the value of 'End' date picker, it submits the page and now the values are reflected in the report........
    I tried creating another dynamic action > with event On Page Load.....and disable fire on page load, and to submit the page, this is causing an infinite loop of submitions........can you please tell me how to achieve this with out putting an exclusive submit button on the Screen.......
    Thanks for your time.
    You don't have to submit the page here.
    What version of apex?
    What report is it? i.e. Interactive report/Classic report
    Depending on your version of apex you can simply use the Page Items to Submit attribute to set the session state

  • Date Picker problem in Apex 3.1

    Hi,
    I upgraded my apex to 3.1 and found that the date picker icon behaviour become quite strange.
    If I set the label of the date picker Horizontal/Vertical Alignment to Above, the picker icon will show below the text box instead of right side. And the pop-up calendar for Date Picker (DD-MM-YYYY HH24:MI) also not high enought to show the Close and OK button, I have to manually adjust the pop-up calendar height.
    All this problems were not there in 3.01, is these some kind of bug?
    Thanks
    Vincent

    Hello,
    Can you put an example of your particular layout on apex.oracle.com. The solution I had worked in most of the case's I tested , obviously yours is different.
    The next best solution would be to either shim the items with images, or to specifically set the widths of the containing table cells.
    The reason all this is happening is sometimes , depending on the region templates and CSS the regions will collapse down on the content, and the the browsers will do there best to fit the content in the smallest place possible, Unfortunately, in some cases the browsers ignore both nowrap="nowrap" and/or style="white-space:nowrap", why would I want to put nowrap on something and still have it wrap, I don't know it's not me it's the browsers.
    The solution in the patch I'm leaning towards is wrap item into a table. As it will work perfectly everywhere , and greatly annoy people that want tableless layouts, but that won't be available till the patch.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Unable to set default date for Date Picker item using Auto Row Processing

    Okay, I have searched through the forum for an answer, and have not found a thing to account for my problem.
    First, does anyone know if using Auto Row Processing has problems updating an item/field in a record where the Source is defined as Database Column if the 'Display As' is defined as 'Date Picker (MM/DD/YYYY)'?
    I ask this only because I found out the hard way that Auto Row Processing does NOT fetch the value for an item where the field is defined as TIMESTAMP in the database.
    My problem is as follows: I have a form that will CREATE a new record, allowing the user to select dates from Date Pickers, text from Select Lists, and entering in text into a Textarea item. The information is saved using a standard (created through the Auto Row Processing wizared) CREATE page level button. After the record is created the user is able to go into it and update the information. At that time, or later, they will click on one of two buttons, 'ACCEPT' or 'DECLINE'. These are Item level buttons, which set the REQUEST value to 'APPLY' (Accept) and 'UPDATE' (Decline). The Accept button executes a Process that changes the Status Code from 'Initiated' to 'Accepted', and sets the Declined_Accepted_Date to SYSDATE, then another Process SAVEs the record. The Declined button runs a Process that changes the Status Code from 'Initiated' to 'Declined', and sets the Declined_Accepted_Date to SYSDATE, then another Process SAVEs the record.
    However, even though the Status Code field is updated in the database record in both Accepted and Declined processing, the Declined_Accepted_Date field remains NULL in the database record (by looking at the records via SQL Developer). WHY??? I looked at the Session State values for both the Status Code and the Declined_Accepted_Date fields and saw that the fields (items) had the expected values after the process that SAVEs the record.
    The following is the code from the Accept button Page Process Source/Process:
    BEGIN
    :P205_STATUS_CD := 'A';
    :P205_REF_DECLINE_ACCEPT_DT := SYSDATE;
    END;
    As can be seen, the Status Code and Declined_Accepted_Date items are set one right after the other.
    As an aside, just what is the difference between Temporary Session State vs Permanent Session State? And what is the sequence of events to differentiate the two?

    Here's yet another thing that I just looked into, further information...
    One other difference between the date field I am having problems with (Accepted_Declined_Date), and other dates (with Date Pickers) in the record is that the Accepted_Declined_Date never gets displayed until after it is set with a default date when the Accept and Decline buttons are pressed.
    One of the other dates that works, the Received Date, is able to write a default date to the record that is never typed into the box or selected from the calendar. That date is placed into the box via a Post Calculation Computation in the Source, which I set up as: NVL(:P205_REF_RECEIVED_DT,TO_CHAR(SYSDATE,'MM/DD/YYYY'))
    However, I do remember actually trying this also with the Accepted_Declined_Date, and setting the Post Calculation Computation did not work for the Accept_Decline_Date. Could this be because the Accept_Decline_Date is never rendered until the Status Code is set to Declined (in other words, there is no need to display the date and allow the user to change it until the record is actually declined)???
    The control of the displaying (rendering) of the date is set via the Conditions / Condition Type: Value of Item in Expression 1 = Expression 2
    Expression 1 = P205_STATUS_CD and Expression 2 = L
    Does this shed any light???

  • Default value of date picker not showing in sql query

    Hi,
    I have a tabular form page with a query similar to the following:
    select emp_name, salary from emp_table where trunc(hire_date)=trunc(to_date(:P42_START_DATE))
    where P42_START_DATE is the name of a date picker item.
    I set the source type of the date picker to be "Only when current value in session state is null" and the value to be "select trunc(next_day(sysdate,'MON')-7) from dual;" - basically the monday of the current week. I set the sequence of the date picker to be 5, and the sequence of the region to be 10. Now, when I open this page, no data gets pulled. I checked the page source, and the value of the date picker input is being set to "17-NOV-2008", but it somehow isn't reflected in the sql query.
    Data does get retrieved if I manually set the date in the date picker, but I'd like it to default to the monday of the current week. What am I doing wrong?
    Thanks

    nope, still same problem.
    I used javascript alerts to help debug, and here might be some useful information.
    The computation to set the value of :P42_START_DATE is set to run "before header", but when I put this following javascript in the header:
    <script language="javascript">
    var c = $v('P42_START_DATE');
    alert(c);
    </script>
    the alert box is blank (ie :P42_START_DATE is empty). Putting the same exact script in the footer gives 24-Nov-2008 in the alert box. Now, the SQL query is run sometime after the first alert and before the second alert, I believe. Why would the value of :P42_START_DATE not be getting set at the correct time?
    P42_START_DATE is a date picker item that belongs to the region SCHEDULE (which is where the sql query is). I set the sequence of the region to 10, and the sequence of the date picker and computation to be 5 and 6. Even so, does this mean that the sql query is executing before the call to the computation, because the region needs to be created before any items can be created that belong to the region?

  • Date Picker problem in APEX 4.1

    Hi,
    I have developed one application in ApEx 4.0 and imported it in ApEx 4.1. In ApEx 4.1, while clicking the Date picker field (on calendar icon) the application is started giving below error :
    Message: Unable to get value of the property '_curInst': object is null or undefined
    Line: 17
    Char: 1448
    Code: 0
    URI: http://*********/i/javascript/apex_4_1.min.js
    I have gone through the below OTN link,But I do not have such scenario which has been discussed over there.
    Apex 4.1 IR: $.datepicker._curInst' is null or not an object
    Other scenario which I have tried:
    In ApEx 4.1, Created a new application with one page having date picker, it is working fine. If I copy/import this page in my old application(which was imported from ApEx 4.0) then the date picker is showing the above error.
    NOte: We are using IE 8 & 9.
    Regards
    Mohan

    Hi,
    We found the problem. The problem is due the file 'jquery.min.js' file we have uploaded in shared components --> images. Once we deleted then it is working fine.
    Regards
    Mohan

  • Default Value Date Picker Field

    Hello:
    In a detail tabular form I am referencing a date picker field from the master form as default value.
    This is the situation in the detail form:
    TABULAR FORM
    Column Name:                   FECHAREGISTRO -- the field's name in the detail tabular form
    Default Type: Item (application or page item name)
    Default: P68_FECHAREGISTRO -- It's a field in the master form and also is Date Picker format
    Reference Table Owner: SAMPEDRORIVEROS
    Reference Table Name: BITACORAABOGADO
    Reference Column Name: FECHAREGISTRO -- It's a date field in the database
    At execution time I have the error:
    report error:
    ORA-01790: expression must have same datatype as corresponding expression
    I think it is because i must use to_date and to_char in order to change the datatype and i have tried using:
    Default: to_date(to_char(:P68_FECHAREGISTRO,'DD-MON-YYYY'),'DD-MON-YYYY')
    and in Default Type: PL/SQL Expression or Function
    but I get a different message at execution time:
    report error:
    ORA-01722: invalid number
    Could you explain me what is the problem??
    Thanks in advance.
    Jairohernan

    I don't think you need to do a to_char here
    try
    to_date(:P68_FECHAREGISTRO,'DD-MON-YYYY')

  • Date picker default value

    No matter what I put in the default value for date picker none will show up.
    I used these:
    TO_DATE(CURRENT_TIMESTAMP,'DD-MON-YYYY HH:MIPM')
    TO_CHAR(CURRENT_TIMESTAMP,'DD-MON-YYYY HH:MIPM')
    CURRENT_TIMESTAMP
    :CURRENT_TIMESTAMP
    Any Help?
    Thanks,

    Hi,
    Have you specified what type of default value it is? Static Text, PL/SQL Expression or PL/SQL Function Body?
    I have that the best way to set a default value is by creating a computation, set to run Before Header and conditional on the item being NULL.
    Andy

Maybe you are looking for

  • Cisco Webex Connect Jabber 7.2.2 History Missing

    Running Cisco Webex Connect 7.2.2 on W7 x64. Anyone run into chat history missing or only showing 1 day of chat when you know that you shoud have weeks and weeks with certain persons?  Default is 9999 days.  Had someone ask me to start CWC as adminis

  • Time machine won't do full back up

    Ok, so having installed mavericks it's taken about 2 months to address all the other teasing problems associated with them. However, there is one that i just cannot get my head around is my time machine. It will not do a full back up. I have looked t

  • How to create tab pages in EP

    Hi Experts, Can you please let me know how to create tab pages in EP. I have created one page. In this page, I have to place 2 iViews as tab pages. Can you please let me know how I can acheive this? Regards,

  • Memory access door won't come off!

    I just got a lovely 4GB SDRAM combo and was raring to get it into my iMac when, d'oh, the access door won't unscrew! The screw turns, but hit a kink then keeps on turning without coming out. Has anyone else had this problem? And hopefully had it reso

  • Others can't open documents created in Acrobat X

    I'm wondering if anyone else has this problem and what I need to do to fix it.  I have both Acrobat 9 and Acrobat X on this computer, but I've had to roll back to using Acrobat 9, because only about half the people I send .pdfs to can open the ones c