Date Picker - Page Refresh?

When using a date picker object (AND a LOV list w/submit in our case), is there a way to make the date picker force a page refresh? Otherwise, charts and/or sql report regions do NOT auto refresh their data when a new date is picked unless the users forces a refresh/submit (or in our case the LOV will do it IF the LOV value is changed too)...

Hi,
Have you tried to put into Date Picker HTML Form Element Attributes function onChange="doSubmit();"?
Val

Similar Messages

  • How to avoid multiple copies of data in page refresh

    How to avoid multiple copies of data in page refresh

    If you are talking about a page with an insert query, ignore the fact that it's a page refresh.  It's just another way that someone can insert duplicate records.  I like to handle this in my insert query.
    insert into thetable
    (f1, f2, etc)
    select distinct
    value1, value2, etc
    from some_small_table
    where you don't already have that record

  • Help with retaining drop down data after page refresh

    Hello:
    Dev environment: JSP/Struts - Using DynaValidatorActionForm for ActionForm
    I have a JSP which, in a simplified version, uses two text boxes and one drop down viz. Name(text box), Country(drop down) and Country Name(text box).
    When the page is first brought up, obviously, the text boxes are empty and the drop down is at it's initial setting of "Select One" which has a value of 0.
    I enter a name, select "Other" from the drop down and click on Submit leaving the "Country Name" text box blank.
    Now, because of the validation I'm performing, if "Other" is selected, the name of the country should also be provided. In this case, obviously the validation fails and the same page is returned via "mapping.getInput()".
    Now the problem is, whatever I put in for "Name" is still retained but the drop down is reset to "Select One". This is causing confusion to the user because the error msg is misleading when it says, "Enter a country name", but in reality the user has to redo the drop down selection also.
    Anyway, is there a way I can make the drop down also retain the data it had prior to the page refresh just like the "Name" text box?
    Any help is greatly appreciated.
    Thanks.
    Here's the code from the "Action" where I do my validation check...
    -------- "Action" Code -----------------------------------------------
    if (tbi.getCountryid() == 10)
    if (tbi.getCountryName().equalsIgnoreCase(""))
    ActionErrors countryErrors = new ActionErrors();
    String errKey = "tbi.countrydata.invalid" + "." + (i+1);
    afflnErrors.add("Invalid Data", new ActionError(errKey));
    saveErrors(request, countryErrors);
    return new ActionForward (mapping.getInput());
    ------------------------------------------------------------------------------

    Are you populating that select box( from database) everytime page refreshes ?
    otherwise it should work as others.
    as a work around, here is a javascript code you can use to prepopulate a option in a select box, but you need to know what value was selected. ( may be set that value in request or session)
    call this function on load of the form.
    // list - is the name of the dropdown
    // selVal - is the value selected.
    function selectListItem(list, selVal) {
    for (i = 0; i < list.length; i++) {
            if (list.options.value == selVal) {
         list.options[i].selected = true;

  • Reset data picker page item by selection page item in Apex

    Hi,
    Need to create a report based on date ranges and for this created a interactive report and two page item datepicker fields P15_fromdate and p15_todate. Report works fine with this criteria.But user wants one more field quarter(P15_quarter), When they select the quarter the range values has to get reset and as to get applied to report.
    Issue here is unable to find a way to set the page range item values based on the quarter field selection
    Need help how to reset the page item fields.
    Thanks in advance.
    Thanks,
    Sandeep

    Ligon,
    You're right to think this is pretty laborious stuff. A co-worker wanted to do the same, to make sure users didn't lose a change when clicking Cancel. I suggested he look at calculating the query checksum before and after, which he tried. But it got very cumbersome very fast and he ended up dropping the idea. He's fairly new with Apex, but he's also a quick study, so it's not like he's a novice coder.
    I don't have his implementation details anymore to even share with you.
    Sorry I couldn't be more help.
    Good luck,
    Stew

  • How we Can Highlight The dates in date picker item dependin on the database

    Hello All,
    I just want to know how to fetch the data from the database in to a date-picker item..
    I am having a apex-date picker page item in which i need to get dates highlighter depending on database in the tables.To which date i entered the date.. That date need to get highlighted depending on the data in the database tables.
    Thanks
    S.Manoj

    Hi,
    >
    I just want to know how to fetch the data from the database in to a date-picker item..
    I am having a apex-date picker page item in which i need to get dates highlighter depending on database in the tables.To which date i entered the date.. That date need to get highlighted depending on the data in the database tables.
    >
    Write a Before/After Header Computation for the DatePicker item where you select the date from the database table into the item, with appropriate WHERE clause.
    If you want today's date then use SELECT SYSDATE FROM DUAL.
    Use the same Format Mask as specified in the Page Item definition.
    Cheers,

  • Date picker  - removing calendar icon

    Helo,
    is there any way I can remove calendar icon from date picker?
    thanks for help!
    regards,
    drama9346

    Hey,
    - Edit the date picker page item
    - Locate the 'Settings' section
    - Select 'on focus' for the 'Show' select list
    That will hide the date picker calendar icon.

  • Writing the value from an unbound Date picker field to a timestamp field.

    Hi,
    I am having a frustrating time trying to write the results of a date field to a Timestamp field in an oracle10 table in APEX 3.1. The Date Picker correctly returns 01-JUN-2008 23:59 into the date picker page item :P60_EXTENTION_DATE (As a varchar I believe).
    Using a plsql function similar to the following I am trying to write the date to a timestamp field eg.
    begin
    update customers set extention_date = :P60_EXTENTION_DATE where ROW_ID = 34;
    end;
    This without fail this gives me stupid errors it wants 2 digit years, it wants AM/PM.
    I have tried this:
    update customers set extention_date = to_date(:P60_EXTENTION_DATE) where ROW_ID = 34;
    and:
    update customers set extention_date = to_date(:P60_EXTENTION_DATE,'DD-MON-YYYY HH24:MI') where ROW_ID = 34;
    How can the date picker return a date that oracle "ORA-01821: date format not recognized" ? It just seems un-intuitive (fricken retarded) to me.
    I have tried about 30 combinations date picker, to_date formats etc. and it is driving me nuts, can someone please tell me which combination of date picker and to_date function I need to make this work.
    1 free internets to anyone who can help.
    Cheers
    Message was edited by:
    cl3ft typos

    Hello,
    >> …trying to write the results of a date field to a Timestamp field …
    can someone please tell me which combination of date picker and to_date function I need to make this work.
    If the target is a timestamp column, did you try to use the to_timestamp function? http://www.techonthenet.com/oracle/functions/to_timestamp.php .
    Regards,
    Arie.

  • Store data in R/3 without page refresh

    Dear BSP-Masterminds,
    we need to store data in R/3 without a recurrent page refresh. The problem is that our engineers are using PDA's and the page refresh is taking too much time. The engineers are changing equipment data on the PDA's. Every time they click on  save button, the data get send to the R/3 system and the checking, if the data are correct, takes up to 30 sec. Additional the new page refresh on PDA takes another 20 sec. It would be great to find a solution which stores the data somewhere and by hitting the 'final save-button' the data get checked and saved.
    The worst case scenario would be a table of around 600 equipment data, so it might be a huge table that has to be stored somewhere. I thought of a client side cookie but I have no experience if it is possible to store such a big internal table and by the way I don't know if this would be possible on a PDA.
    Every little hint is welcome!
    Regards
    Nicola
    P.S.: Please excuse any spelling mistakes )

    Hi,
    Javascript as such can't do it without refreshing the page. You need to use the AJAX function. But you don't need to be scared about it. Just look at the web logs I've mentioned and you'll understand it quickly.
    Here's an additional AJAX tutorial
    http://www.w3schools.com/ajax/default.asp
    Eddy
    PS. Reward the useful answers and you will get <a href="http:///people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself">one point</a> yourself!

  • 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

  • How to insert a date picker input text field in a JSF Jsp page

    Hi,
    I have to develop an application using generic facets, unfortunately I am not supposed to use ADF Faces components given by Oracle.
    Now my requirement is, on JSP page an input text field which holds a DATE value is required, it should also have a Date Picker Calendar adjacent to it.
    Could you pls shed some light on this issue and help me out.
    Thanks
    ~Siva(ji)

    <HTML>
    <script language="JavaScript" type="text/javascript">
    <!--
    var pUpWidthc = 300; //Change the pUpWidthc to your requirements.
    var scrAvailc = 400;     //Change to your available screen width. You see in
    //this eBooks' middle frame, the frame width is
                                                                //equal to 410 . So whether your using frames or
                                                                //or a full 800 pixel screen, you must calculate
                                                                //your available screen width.
    var PopUpC = document.getElementById("pUpc");
    document.write('<div id="pUpc" style="visibility:hidden;z-index:4;width:'+pUpWidthc+';position:absolute;"></div>');
    function cstmPup(objC,c){
    popUpC = document.getElementById("pUpc");
    popUpC.innerHTML = c.innerHTML
    popUpC.style.left = getPos(objC,"Left");
    var scrNeedc = getPos(objC,"Left") + pUpWidthc;
    if (scrNeedc > scrAvailc){
    //The number 10 below is an extra offset x value applied when the
    //definitional popup box positions beyond your screen width. You
    //can change this number to fine tune your "beyond screenwidth" positioning.
    var scrOffsetC = getPos(objC,"Left") + pUpWidthc - (scrAvailc);
    popUpC.style.left = getPos(objC,"Left") - (scrOffsetC - 0);
    popUpC.style.top = getPos(objC,"Top") + objC.offsetHeight;
    popUpC.style.visibility = 'visible';
    fill();
    function fill()
         var noOfRows=7,noOfCols=7,i=0,j=0,day=1,x;
    var d1=FirstDayOfWeek(7,2008);
    //40     
         for(i=1;i<noOfRows;i++)
              x=document.getElementById('myTable').insertRow(i);
              for(j=0;j<noOfCols;j++)
                   var y=x.insertCell(j);
                   if( ( i==1 && j<d1))
                   y.innerHTML="";
                   else if(day<=DaysInMonth(7,2008)){
                   y.innerHTML=day;
                   day++;
    //document.write(FirstDayOfWeek(7,2008));
    function FirstDayOfWeek(m,y)
    var i;
    var dow = 6;
    //document.write("Hello");
    for (i=1583; i<y; i++)
    dow += (LeapYear(i)) ? 2 : 1;
    for (i=1; i<m; i++)
    dow += DaysInMonth(i,y);
    return dow % 7;
    function DaysInMonth(m,y)
    // m is the month number (1,2,3,...12), y is the year number (four digits)
    switch (m)
    case 1:
    case 3:
    case 5:
    case 7:
    case 8:
    case 10:
    case 12: return 31;
    case 2: if (LeapYear(y))
    return 29;
    else
    return 28;
    default: return 30;
    function LeapYear(y)
    return (y % 4==0) && ((y % 100!=0) || (y % 400==0));
    function getPos(objC,sPos){
    var iPos = 0;
    while (objC != null) {
    iPos += objC["offset" + sPos];
    objC = objC.offsetParent;}
    return iPos;
    function hPopUpc(){
    popUpC = document.getElementById("pUpc");
    popUpC.style.visibility = 'hidden';
    //-->
    </script>
    <BODY
    <button id="c1" onclick="cstmPup(c1,pUpCstm)">Custom PopUp</button>
    <'div' id="pUpCstm" style="display:none;">
    <'div' id="myid" align="left" style=" width:100%; height:100%; background:#cccccb; border:1px solid black; border-top:1px solid white; border-left:1px solid white; padding:10px; font:normal 10pt tahoma; padding-left:18px "> <b>Rich Message Boxes</b>
    <hr size="1" style="border:1px solid black;">
         <div style="width:220px; font-family:tahoma; font-size:80%; line-height:1.5em"><br>
              <table border ="1" id="myTable">
                   <TR>
                        <TD> SUN </TD>
                        <TD> MON </TD>
                        <TD> TUE </TD>
                        <TD> WED </TD>
                        <TD> THU </TD>
                        <TD> FRI </TD>
                        <TD> SAT </TD>
                   </TR>
              </table>
         <br><br>
         </div>
         <br>
         <div>
    <button tabindex="-1" onclick="hPopUpc()" style="border:1px solid black; border-left:1px solid white; border-top:1px solid white; background:#cccccc ">Close Message</button>
    </div>
    <?BODY
    </HTML>
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri

  • Date picker not showing for datetime type in advanced search page

    Hi,
    I have an advanced search page in my SharePoint 2013 site. There is a property which is of type datetime. For that I'm not getting a date picker. I don't know why this is not working. It is showing the date picker in SharePoint 2010 but not in 2013. Can
    anyone help me on this? Thanks in advance.
    Thanks,
    Jawahar
    Im searching more abt me...........

    A date picker was never supported in Advanced Search.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Page item (date picker)

    I have added a date picker to my report . and in the report source I've added a where clause to filter the report as per the selected date(which is one of the columns in the table) but there is nothing shown.
    where DATE =:P23_DATE
    when I remove the where clause all the records appear and when I return it ..nothing there.
    can someone help me?
    Edited by: Beena-IT on May 4, 2013 7:19 AM

    You have data, that's good. You've isolated the problem to what seems to be the WHERE clause, good. The WHERE clause is simple, good. So, it would seem DATE NOT = :P23_DATE for your query.
    Remember -- or note, if you didn't know this -- page items are (always?, mostly) character strings. As Jeff intimates, if DATE is a date, you will get implicit date conversion in your WHERE clause. (BTW, isn't DATE a Reserved Word?) May I suggest trying "DATE = TO_DATE(:P23_DATE,'your date format here')" to make it an explicit conversion?
    Also, I recommend running any query you are having a problem with in the APEX SQL Commands window. Then you can immediately see what APEX is returning for your query. It helps my debugging a lot.
    Regards,
    Howard

  • Date picker is not working in IE9 for sharepoint 2010 appliation pages

    Hi,
    Date picker not working  in IE9 for sharepoint 2010 appliation pages. We have enabled custom master page.
    Thanks in advance.
    Shameej

    Hi,
    For this issue, you can add the following line of code into the pickerdialog.master which lays in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
    <meta http-equiv=”x-ua-compatible” content=”IE=8”>
    Or we can use the JavaScript code provided in this blog which would also do the trick:
    http://williamwmy.wordpress.com/2013/06/03/problem-with-sharepoint-peoplepicker/
    A thread with the same issue for your reference:
    http://sharepoint.stackexchange.com/questions/27251/hotfix-for-problem-with-sharepoint-peopleeditor-in-ie-9
    Best regards
    Patrick Liang
    TechNet Community Support

  • Date Picker Widget does not work on template spawned (copied) pages

    Hi,
    I am trying to set up a PDF document form for a client using Adobe Acrobat Pro XI.  I have several date fields where I am wanting to use the Form Router Date Picker Widget (which has been downloaded and installed).  This works perfectly fine when it is just one page.  However, I am using a template with a script that creates a copy of the first page activated from a button -- ideally to allow users to create however many pages they want before submitting everything.  The code from the button is as follows:
    var myTemplateArray = this.templates;
    var myTemplate = myTemplateArray[0];
    myTemplate.spawn(this.numPages, true, false);
    // Get the field name prefix that Acrobat automatically adds to the new fields
    var f_prefix = "P" + (this.numPages - 1) + ".cvcIntake";
    // Reset the newly created fields
    this.resetForm([f_prefix]);
    // Go to the new page
    this.pageNum = this.numPages-1;
    The problem begins when a new page is added.  If I try to click on the date picker on the second page, it shows up on the first page next to the same field that was copied.  And if a date is selected it is entered into the field on the first page.
    In looking into what is going wrong I found several things.  First, the naming aspect on the copied page is creating all of the calendar objects with the prefix "P1.cvcIntake.fld" ("fld" is the prefix of the form fields on the first page).  Second, going to the properties of the date picker object, its name has been changed to "P1.cvcIntake.FR_00000_CALENDARBUTTON_fld.Start_Date" and that action code is:
    FormRouter_PlaceCalendar(getField("fld.Start_Date"), 3, "yyyy-mm-dd", 18.61102294921875);
    Obviously both the name and the action code are going to cause it to do what it is doing now.  Unfortunately I am not sure what to try to do to fix things, as my skills at writing code for Acrobat is probably just a little better than beginner.  It seems to me that I need to be using a completely different approach for this part.  Does anyone have any advice on how I might be able to manage this problem?
    Thanks ahead for your time and consideration,
    Mike

    It took quite a while for me to solve this problem, but even longer to post it here (my apologies to anyone looking for a solution to it prior to now).  Anyway, the real trick for me was to discover that I didn't have to explicitly put any numbering notations after adding the new fields (such as + "#" + this.pageNum) -- it turns out that the proper notational numbering is handled automatically.
    While I am sure the real pros out there might be able to find a lot of ways to handle certain aspects better, below is the result of a great many hours of research, trial and error, and persistence.  Considering the help I have received from this forum,  I would be thrilled if I could make a contribution that helps anyone solve this problem.  If so, I would be glad to hear from you!  In any case, if anyone has any comments or questions please let me know. 
    // Get templates in array.
    var aTemplates = this.templates;
    var myTemplate = aTemplates[0];
    // Spawn new form page to end using page renaming.
    myTemplate.spawn(this.numPages, true, false);
    // Get the field name prefix that Acrobat automatically adds to the new page fields.
    var fldNamePrefix = "P" + (this.numPages - 1) + ".cvcIntake";
    // Reset the newly created fields to be cleared of any data.
    this.resetForm([fldNamePrefix]);
    // Init array counter for found calendar fields.
    var calFldsCnt = 0;
    // Array for found unusable copied calendar fields.
    var aCvcIntakeCalFlds = [];
    var pageCnt = this.numPages-1;
    // Loop through all fields.
    for (var i=0; i<this.numFields; i++) {
       var f = this.getField(this.getNthFieldName(i));
       var aNameSlice = f.name.split(".");
       // Find all copied template-renamed calendar fields and save names in array.
       if ((aNameSlice[1] == "cvcIntake" && aNameSlice[2] == "FR_00000_CALENDARBUTTON_fld") || ((aNameSlice[1] == "cvcIntake" && aNameSlice[2] == "FR_00000_Calendar"))) {
          aCvcIntakeCalFlds[calFldsCnt] = f.name;
          calFldsCnt++;
          continue;
       // Skip template-renamed fields.
       } else if (aNameSlice[1] == "cvcIntake") {
          continue;
       // Find non-button calaendar fields to create copy for new page.
       if (aNameSlice[0] == "FR_00000_Calendar") {
          var calFieldsName = aNameSlice[0] + "." + aNameSlice[1];
          var calField = this.addField(calFieldsName, f.type, pageCnt, f.rect);
          var t = this.getField(calFieldsName);        
          // Copy non-function proprties of page 0 calendar fields.
          for ( var p in f ) {
             try {
                if ( typeof f[p] != "function" ) {
                   if (p != "name" || p != "page" || p != "rect" || p != "type") {
                      t[p] = f[p];
             } catch(e) {}
          // Default all to hidden.
          t.display = display.hidden;
          // Set "CalendarMonth" items as they are on page 0.
          if (aNameSlice[1] == "CalendarMonth") {
             var aMonths = new Array(["January", "1"],
                ["February", "2"],
                ["March", "3"],
                ["April", "4"],
                ["May", "5"],
                ["June", "6"],
                ["July", "7"],
                ["August", "8"],
                ["September", "9"],
                ["October", "10"],
                ["November", "11"],
                ["December", "12"]);
             t.setItems(aMonths);
          // Copy button captions.
          if (f.type == "button") {
             t.buttonSetCaption(f.buttonGetCaption());
          // Set action for all calendar "Day_X" fields. 
          if (calFieldsName.indexOf("Day_") > 0) {
             t.setAction("MouseUp","FormRouter_SetCurrentDate(event.target.buttonGetCaption());");
       // Find page 0 calendar buttons and make new page copies.
       if (aNameSlice[0] == "FR_00000_CALENDARBUTTON_fld") {
          var calButtonName = "FR_00000_CALENDARBUTTON_P" + pageCnt + ".cvcIntake.fld." + aNameSlice[1];
          var calButton = this.addField(calButtonName, f.type, pageCnt, f.rect);
          var t = this.getField(calButtonName);        
          // Copy non-function proprties of page 0 calendar buttons.
          for ( var p in f ) {
             try {
                if ( typeof f[p] != "function" ) {
                   if (p != "name" || p != "page" || p != "rect" || p != "type") {
                   t[p] = f[p];
             } catch(e) {}
          // Get button icon copy.
          t.buttonSetIcon(f.buttonGetIcon());
          // Set up variable name for button action that call calendar activation.
          var dateFieldName = "P" + pageCnt + ".cvcIntake.fld." + aNameSlice[1];
          t.setAction("MouseUp","FormRouter_PlaceCalendar(getField(" + "\"" + dateFieldName + "\"" + "), 1, \"mm\/dd\/yyyy\", 0);");
    // Go through array of captured non-usable template-copied calendar fields and buttons, removing each from page.
    for (i=0; i<=aCvcIntakeCalFlds.length; i++){
       this.removeField(aCvcIntakeCalFlds[i]);
    // Go to the new page
    this.pageNum = pageCnt;

  • Error on Page - when clicking the date picker

    Hi Gurus and Experts,
    I'm scheduling a report, when i click the date picker in the Report Parameter section, I got an Error on page (the date picker did not pop-out). What is the problem with this? My date parameter is working when not use for scheduling.
    Regards,
    JP
    Edited by: user10955574 on Nov 18, 2010 12:48 AM

    Hi
    I also encounter that error. The error says 'document.forms[...]' is null or not an object. It only occurs in the report parameters sections when scheduling a report. It works fine on viewing the reports and other that has date picker except from scheduling page.
    Please help.
    Thanks.

Maybe you are looking for