Date Picker null after page submit

Hi,
I have created an application with two regions. On one region a select statement displays the list of employees with their employee id's. On other region there is a select statement which shows the leave detail of every employee using range of date on where clause of select statement. Two date picker items are created on region one. when a name of employee is clicked on region one the employee id of that employee uses select statement in second region and its information should display. It is working well without date range. when I use dates in where clause it shows no data because date pickers goes null after page submit. Page is branchig to same page.
I am not able to resolve why date pickers goes null.
Oracle Database 11G
Apex Version 3.0
Sajjad

In region one select statement retreives employee id's and there is also search item on region one searching employee names and it retain the value. but date pickers having same setup that you mentioned dos'nt retain values. If they retain values my problem will solve.
When cliked on employee id select statement should execute using employee id and date picker values on another region on same page.

Similar Messages

  • Page item value set in app process not maintained after page submit

    Hi -- I have a sequence of events that goes like this:
    1) Page 0 region REG_1 is rendered before footer
    - Region REG_1 uses javascript / AJAX to call App process PROC_1
    - PROC_1 sets Page1 item PAGE1_MESSAGE to X
    - After PROC_1 executes successfully, REG_1 does doSubmit()
    2) Page 0 region REG_2 is rendered before footer; this happens
    after the page submit done by REG_1. (Conditions ensure that
    REG_1 is not rendered again)
    - Region REG_2 displays PAGE1_MESSAGE (=X) in an alert.
    - Region REG_2 uses javascript / AJAX to call App process PROC_2
    - PROC_2 sets Page1 item PAGE1_MESSAGE to Y
    - PROC_2 sets Application item DEBUG to PAGE1_MESSAGE (this is for debugging)
    - PROC_2 sets Application item APP_MESSAGE to Y (this is also for debugging)
    - After PROC_2 executes successfully, REG_2 does doSubmit()
    3) After REG_2 submits the page, here's what I have:
    - Application item APP_MESSAGE = Y. Good. This is what it was set to in PROC_2.
    - Page 1 item PAGE1_MESSAGE = X. Bad. This is what it was set to in PROC_1.
    - Application item DEBUG = Y. Good. This at least shows that PAGE1_MESSAGE was
    set to Y within PROC_2... but for some reason that value is not being preserved
    after the app process is done executing.
    - There are several other application items set in PROC_2, and they're all correct.
    Any ideas as to why this is happening? It seems like this should be
    pretty straightforward: set the value, submit the page, the value should be what
    I set it to.
    Thanks,
    Carol

    Hi -- Thanks for the suggestions. First and 3rd (default value, or being overwritten by process or computation) aren't happening. The source for PAGE1_MESSAGE having is Always, Using app item PAGE1_MESSAGE... but I don't see what else could work here. Not sure if that's the problem.
    I've put an example on apex.oracle.com. Workspace is dew_mir_tor. Username is [email protected]. Password is Mir97Dew77!Tor. Application is 22679, RefreshAllTest.
    To reiterate the description in my original posting, but using the real application item/region/process names:
    0) Press Button REFRESH_ALL on Page 1. This branches back to Page 1.
    1) Page 0 region Refresh_All is rendered before footer
    - Region sends up an alert to show you it's working
    - Region Refresh_All uses javascript / AJAX to call App process REFRESH_CZAR (You'll see a "wait" window flash up briefly while the app process is running)
    - REFRESH_CZAR sets Page1 item P1_MESSAGE_1 to X (The text here indicates where
    the value is being set and when it should be displayed)
    - After REFRESH_CZAR executes successfully, region Refresh_All does doSubmit()
    2) Page 0 region Refresh_Non_Czar is rendered before footer; this happens
    after the page submit done by Refresh_Czar. (Conditions ensure that
    Refresh_Czar is not rendered again)
    - Region sends up an alert to show you it's working
    - Region Refresh_Non_Czar displays P1_MESSAGE_1 in an alert.
    - Region Refresh_Non_Czar uses javascript / AJAX to call App process REFRESH_NON_CZAR (You'll see a "wait" window flash up briefly while the app process is running)
    - REFRESH_NON_CZAR sets Page1 item P1_MESSAGE_1 to Y (The text here indicates where
    the value is being set and when it should be displayed
    - REFRESH_NON_CZAR sets Application item TEST_VALUE2 to P1_MESSAGE_1 (this just shows that P1_MESSAGE_1 was indeed set to Y in this process...)
    - After process REFRESH_NON_CZAR executes successfully, region Refresh_Non_Czar does doSubmit()
    3) After Refresh_Non_Czar submits the page, Page 0 region Display_Messages is rendered.
    It sends up an alert so you can see it's working, and then it displays the value in P1_MESSAGE_1.
    The value is still the one that was set in REFRESH_CZAR, not the one set in REFRESH_NON_CZAR.
    Note that Display_Messages sets P1_MESSAGE_1 back to null, so you won't see it in session state after it's displayed in the alert. But you can see that TEST_VALUE2 is set to the message from REFRESH_NON_CZAR.
    Hope this helps solve the problem!
    Thanks,
    Carol

  • Error-Message "Item not defined on current page" after Page submit - AJAX

    Hello,
    a lot of subpages (regions) are loaded over htmldb_get and displayed on a master page.
    The parts loaded over AJAX are reports. The report regions of these reports contain a hidden and protected field, which hold the page number (&APP_PAGE_ID.)
    This was necessary because I had to overwrite the standard pagination function $a_report on the master page. Otherwise the standard pagination function uses always the page number of the master page and not the page number of the loaded subpages. The overwritten function $a_report is placed in the master page header and searchs for the hidden + proteced field, containing the page number of the loaded subpage.
    This works already fine.
    But after submitting the master page with before loaded subpages over htmldb_get, I get following error message:
    Error Item ID (15348310159873659) is not an item defined on the current page .
    Setting the hidden + protected field on the subpage to never display, the error message disappear, but the pagination function doesn´t work any more.
    Where is the mistake I made?
    Greetings
    Michael

    Hello Ben,
    yesterday evening I read in short your answer, but today I can´t see your answer. Have you edited it again?
    My pagination function works fine and I would maintain it if possible.
    But now a new feature is requiered, which require a submit on the master page. The submit on the master page is not possible due to the hidden field on the loaded subpage, containing the page number for the pagination function.
    Using a normal text field (not saving state) works as long as the text field is visible (condiational view != never). But this information shouldn´t be visible to the user.
    I thought, perhaps a cleanworkaround exists.
    As dirty workaround I could place the information about the actual page number in the report themself (static invisible column). But as soon as the column is invisible (not shown), I have no access on this value
    With a normal hidden html-input-element (not a APEX-Item) in the report regions header of the subpage, holding the page number, I get a http 400 error on page submit.
    An I-Frame is not really a solution, because the master page contains several subpages, which should only be loaded and displayed on demand and not immediatly on page load.
    Greetings
    Michael
    Edited by: user6044915 on 31.03.2009 00:27

  • Date Picker Fails after MHF

    When using a date input parrameter the calendar (Date Picker) does not show up when I click on its icon.
    It worked (Crystal XI R1) before installation of SP4 and latest monthly hot fix.
    Does anyone know how to fix this issue or remove the MHF and SP?
    Regards,
    Todd

    Hi Todd,
    Try CR XI R2, it's a free upgrade.
    https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
    Run License Manager first to get the keycode if you don't have it on paper somewhere.
    Thank you
    Don

  • How to keep up the session state values uncleared after page submit

    hi,
    i am using Application Express 4.0.2.00.07
    and 11g
    i have created a tabular form manually useing apex_items.
    select apex_item.checkbox(1,null) as "check",
           APEX_ITEM.DISPLAY_AND_SAVE(4,line_item_no) as "Line Item No",
           APEX_ITEM.DISPLAY_AND_SAVE(5,line_item) as "line item",
           APEX_ITEM.text(6,module) as "Modulle",
           rstag as "RS tag",
           *apex_item.text(2,null) as "FS Name"*,      --"fsname" and "fstag" are not columns of this table(pli)
           *apex_item.text(3,null) as "FS Tag"*
    from pli where pid = :P17_PID
    order by line_item_no deschere on submit, data gets inserted into the another table(fli),(whixh contains all these columns)
    after the page is submitted it returns to same page,
    i want the apex_items's text fields to retain the submitted values after returning to the same page
    can you tell me how to achieve this.
    thanks,
    Little Foot

    hi,
    can you help me to use this collections,
    i have created a collection processdeclare 
      la_cks wwv_flow_global.vc_arr2;
    begin
      htmldb_collection.create_or_truncate_collection('UPDATEE');
      htmldb_collection.create_or_truncate_collection('INSERTT');
      for i in 1..htmldb_application.g_f01.count
      loop
        if htmldb_application.g_f01(i) is not null then
          htmldb_collection.add_member(
              p_collection_name => 'UPDATEE',
              p_c001            => htmldb_application.g_f01(i),
              p_c002            => htmldb_application.g_f02(i),
              p_c003            => htmldb_application.g_f03(i),
              p_c004            => htmldb_application.g_f04(i),
              p_c005            => htmldb_application.g_f06(i),
              p_c006            => htmldb_application.g_f07(i),
              p_c007            => htmldb_application.g_f08(i),
              p_c008            => htmldb_application.g_f09(i));
        else
          htmldb_collection.add_member(
              p_collection_name => 'INSERTT',
              p_c001            => htmldb_application.g_f01(i),
              p_c002            => htmldb_application.g_f02(i),
              p_c003            => htmldb_application.g_f03(i),
              p_c004            => htmldb_application.g_f04(i),
              p_c005            => htmldb_application.g_f06(i),
              p_c006            => htmldb_application.g_f07(i),
              p_c007            => htmldb_application.g_f08(i),
              p_c008            => htmldb_application.g_f09(i));
        end if;
      end loop;
    end;            then when creating a report on collections i am unable to proceed,
    in sql report i used select apex_item.checkbox(1,null) as "check",
           APEX_ITEM.DISPLAY_AND_SAVE(4,line_item_no) as "Line Item No",
           APEX_ITEM.DISPLAY_AND_SAVE(5,line_item) as "line item",
           APEX_ITEM.text(6,module) as "Modulle",
           nvl(rstag,APEX_ITEM.text(7,null)) as "RS tag",
           apex_item.text(2,'klklk',null,null,' readonly="readonly" ') as "FS Name",
           apex_item.text(3,null) as "FS Tag"
          from htmldb_collections
    where collection_name = 'UPDATEE'says rstag invalid indentifier...,
    can you tell me how to use this collections to achieve my purpose.
    i tried http://www.oracle.com/technetwork/developer-tools/apex/tabular-form-090805.html
    so i need to use collections in this way only...!
    can i make collections to just collect values from two columns and then put those values to the respective rows in their columns...!!!
    guide me to achieve my requirement.
    Thanks,
    Little Foot
    Edited by: Little Foot on May 10, 2011 5:00 AM

  • Conditional branching after page submit

    Hi all
    I have a page where I need to submit and process the page and items(insert and update database) then branch to a certain page depending on which button was pressed. I have 4 buttons and each button should go to a different page, each button also needs to submit the page and process data(using an Apex DML process and passing 'SAVE' request in each button). the problem I'm having is that no matter which button I press the 'app branches to the first branch. I have 4 branches set to run after the process. Each branch should go to a different page depending on the button pressed. In each branch I have made the branch conditional based on the button pressed.
    APEX seems to ignore the button condition(in Debug) it says unconditional even though the button is definitely conditional.
    I'm running Apex 4.2.2
    It seems as though when I pass a Request of 'SAVE' Apex treats all buttons with this request in the same manner?Regardless of which button was pressed?
    Any ideas or alternatives?
    Thankyou
    Andrew

    Your problem is with setting the request of all the buttons to "SAVE", it will always fire the first branch for all those buttons.
    If you edit the DML process you will see the following:
    Valid Update Request Values:
    SAVE, APPLY CHANGES, UPDATE, UPDATE ROW, CHANGE, APPLY, APPLY%CHANGES%, GET_NEXT%, GET_PREV%
    This tells you the request values that will perform an Update DML.
    You could have one button be "SAVE", another, "APPLY CHANGES", another "UPDATE", and another "CHANGE".  They will all do the update DML for you and then the branches will have different request values to trigger off of.
    Another option is to set the request of each button like this:
    Button 1 - APPLY_CHANGES_INV
    Button 2 - APPLY_CHANGES_SALE
    Button 3 - APPLY_CHANGES_DELIV
    Button 4 - APPLY_CHANGES_INSTALL
    These would satisfy the valid update request value of APPLY%CHANGES%

  • Invoice data repeating Address after page break

    Hello forum mebers,
    i have a problem to create a rtf template which prints invoice data with more than one address.
    The original data has more than one invoice to print all papers within one output.
    It is for repeat printing. I want to mark several invoices to print.
    The source data is splitting into header information (Address,Invoice number,summaries), invoice positions and company information (client).
    How to create the xml source ?
    How to create the word rtf template to repeat the invoice address on each page also if the first invoice has more than one page.
    I have tried the <?template feature, but this only repeats the first address of the data.
    I have tried the <?start:body feature, but this creates all addresses on the first page.
    I have tried the <?split-by-page-break feature, but this creates no repeating address header.
    I am clueless.
    Do you have any help or example for this problem ?
    Regards
    Frank

    Hallo Jorge,
    danke für die Antwort und das RTF, aber soweit war ich auch schon.
    Wenn mann jetzt noch sortiert nach ID und einen Header (template) und Footer hinzufügt, funktioniert es nicht mehr.
    Gruß
    Frank

  • Remember values in form after page submit

    Hi there,
    im absolutely new to APEX (as u can see it`s my first post ;)), i read the documentations i found on the oracle website and know at least the basics...
    So i started to create my first application and got already my first problem :D Maybe you can tell me if what i want to do is possible and how to do it.
    I have several pages with a form on the left side and a sql report on the right side.
    The form contains some fields which are list of values (fields which contain foreign keys so the user can just select a valid value). next to every list of value field i have a button. when the user clicks on the button i have a branch to the same page and the sql report gets updated. depending on which button next to the list of values with the foreign keys was pressed it shows the complete table the list of values references to (so the user can see what the foreign key he is selecting actually contains). after some work i finally made this work.
    But the problem is: When the user enters some values into the form and then clicks on a button to see what the foreign keys contain the values he already entered are gone. But i want the values he entered to stay in the form after he pressed the button. is there a easy way to do that? the only thing i could imagine is to create a variable for every form field, save the current values into the variable before the page gets submitted and write the values of the variables back into the form when the page reloads. but that sounds kind of stupid... i would have to do that for every page of this kind (which are a lot). so is there a better way?
    thx a lot :)

    Hi Fennek,
    If you created the Form using a wizard, it is possible that your page has a "reset page" process on it. If it has, either set a condition of Never for it or delete it. This process will clear the values for all items on the page.
    If you don't have this process, check the branches on the page. It could be that one of them has a Clear Cache setting that clears the values for the page - just remove the setting to stop that happening.
    Andy

  • After page submit, cursor is displaced :(

    Hi there developers!
    Probleb:
    I have a textfiled that always submits when "Enter" is pressed.(Redirects to the same page)
    But the problem is that when i press "Enter"(or "SUBMIT" button) and the page is submitted and redirected to the same page, my cursor(focus) goes to next textfield. I want it to stay on the first textfield. In any other languages and programming environments there are "TAB sequences". "Sequence" in APEX
    is only for display or process order.
    Is it possible to control that in APEX.
    Best Regards,
    Ruslan.

    Yes and No. there is no such parameter as tab-sequence (like in app developer ide's), but if you play around with item parameter "Sequence" - its not only the position in the window, it also works as tab operator. tab also tabs to other page objects like images, buttons and labels but if you put the form correctly - it works like a charm.
    take a large form page, tab through it: 1) it tabs items (text fields) 2) tabs buttons 3) tabs browser fields (addess bar) 4) tabs item labels. so its kinda working..
    try putting cursor on the first item that has to be filled with the script i pasted.

  • Shuttle Control: Keep selection after page submit

    Hi @all,
    I tried out Carl's shuttle control.. GREAT work!
    Now I have a question: Is it possible to recall the page (after hitting a button) and keep the control with the selections/moves made without writing them into the database?
    Thank you!
    Best regards
    Steven

    Hello All,
    After a long think, I've decided to separate this into a 2 applications.
    But still would have liked to hear from the community how I could have over come this.
    Maybe have 2 application, with one redirecting to the other after login?
    Thanks Jan

  • Close windows after page submit

    Hi,
    is it possible to close the windows after the page had been submited (thru a button)?
    Vincent

    Hi,
    I found that I can do it by branch to another popup page and include a on load procedure whcih close the pop up windows.
    vincent

  • 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

  • UIX Javascript Error with Date Picker

    Hi all,
    I am using JDeveloper 10.1.2.1.0 with JHeadstart 10.1.2.2.32 to create UIX pages. I have a page with a filter by search field. If I select the date picker on this page in IE version 6 or 7, I get the following javascript error:
    Error: 'length' is null or not an object
    I have found this in the Common2_2_20.js, which is part of the jslibs
    function _accumulateNumber(
    a0,
    a1
    var a2=a0.currIndex;
    var a3=a2;
    var a4=a0.parseString;
    ***var a5=a4.length;***
    if(a5>a3+a1)
    a5=a3+a1;
    var a6=0;
    while(a3<a5)
    var a7=parseDigit(a4.charAt(a3));
    if(!isNaN(a7))
    a6*=10;
    a6+=a7;
    a3++;
    else
    break;
    if(a2!=a3)
    a0.currIndex=a3;
    return a6;
    else
    return(void 0);
    }With Firefox 1.5.0.4, I can get the date selector window to open, but when I select a date value, I get this javascript error:
    a0.select() is not a function
    I have found this in the Common2_2_20.js also. Here is the code where the error is occuring.
    function _dfsv(
    a0,
    a1
    if((a0==(void 0))||(a1==(void 0)))
    return;
    a1+=_getTimePortion(a0);
    var a2=new Date(a1);
    var a3=_getDateFieldFormat(a0);
    var a4=a0.value;
    var a1=a3.format(a2);
    if(a0.value!=a1)
    if(a0.onchange!=(void 0))
    if(_agent.isIE)
    a0.onpropertychange=function()
    var a5=window.event;
    if(a5.propertyName=='value')
    a0.onpropertychange=function(){};
    a0.onchange(a5);
    a0.value=a1;
    else
    a0.value=a1;
    var a5=new Object();
    a5.type='change';
    a5.target=a0;
    a0.onchange(a5);
    else
    a0.value=a1;
    ***a0.select();****
    a0.focus();
    }I am able to use the date picker on other pages and even different parts of this page. The date search field is of type dateField.and is part of a switcher. Does anyone have any ideas as to why this is occuring or how I can work around it? Thanks in advance. I really appreciate all of your help.
    Susan

    Thanks for the reply. As a matter of fact, in my case the error happens in a UIX page generated by JHeadstart. I did some JavaScript debugging using the FireBug Firefox entension and I found that it is some JHeadstart JavaScript that causes this problem.
    The JHeadstart JavaScript passes on an array of input elements to the AFD JavaScript function and the problem arises when the select() method is called on the array, rather than an input element in the array.
    I will try to solve my issue by modifying the JHeadstart JavaScript code. Please see the JHeadstart forum somewhere in the near future for my post(s) about this :-)
    Thanks, Wouter

  • Date picker's session state

    Hi,
    I have problems with date picker. There is a tabular form with several columns and one of them is Date. I have chosen a date picker instead of textfield so that user can choose a date easier. When user clicks Submit button, validation runs. My validation gives error message on Error Page. When user clicks 'OK' link on Error Page browser should go back to previous page without refreshing it so that there are still invalid values in form's fields entered by user before validation. But when I use Date picker the tabular form is being refreshed and all the input is lost. When I use textfield for Date column everything works fine - user clicks an 'OK' link on Error Page and he/she is taken to previous page where invalid data is still there in form.
    Is it possible to save a session state of a Date picker using Error Page? If not, is it possible to implement a mask for textfield in Date column so that when user writes the date he/she can see the format he/she should use?
    Regards,
    Tom

    Hi Phil,
    The problem is that it does not matter what the date format is set. The problem seems to be that date picker just exists in form! It seems that if there is a date picker in tabular form then the page always refreshes, it cannot be restored with javascript (history go -1).
    So is it possible to save date pickers session state or to solve this problem in any other way?
    Regards,
    Tom

  • Alternative use of date picker in Forms Builder

    Hi
    I am looking for a way to create event based actions by use of standard functionality.
    I have created a calendar module by use of the Forms Builder. I would like to add a date picker to a “show form” and add some events based on user actions to this page.
    When a date is selected (by a click on a date from the “small” date picker) a new page with events for the selected day should be displayed instead
    Have anyone any alternative experience with the date picker in the end user environment?
    Regards
    John

    Hi there,
    I presume that you want to run a report with date parameters. The parameter form of Oracle Reports has limited capabilities. It certainly does not have a date picker (Calendar). However, you can use SQL to give you a list of dates for the LOV but it will not be elegant.
    If you have Oracle Forms, it can call the calendar for the user to pick the date. The values are then passed to the report as parameters.
    Hope the above helps.
    Best Regards,
    John

Maybe you are looking for

  • KERN_PROTECTION_FAILURE when trying to open Portal 2 in Steam

    Here is the error message I get when trying to open Portal 2 in Steam.  It never actually gets to the game.  I just bought it for my sons bday that I was going to show him tonight, so it has never worked yet. Any suggestions? -Joe Process:         po

  • Get collation of SQL Server database in C# application.

    Hi all, Is there any way to get collation of SQL Server database in C# application. Basically I have to read collation of two SQL Sever databases and compare them in C# application. If possible change the collation of two SQL Server databases to same

  • FM for checking Windows Authentication

    Hi All, Is there any function module / class / method  etc available for checking windows based authentication? My purpose is to call such FM (If available) from a web based interface as RFC, Kindly advise. Thanks in advance. Regards Vipin

  • No materials items transported from SC to local PO after SAPKA70022

    hi, after support package uppgrade to SAPKA70022, there is aproblem with transport material items from shopping cart (SC) to local purchase order (local PO). With services items there is no problem. regards andrzej zwolinski

  • No more EXPORT (Share) into File

    Hi, without wanting to critizise iPhoto 6, actually, almost everything worked out without issues in my case, I am missing out on one function which I used on iPhoto 5 a lot. The SHARE to FILE function. I really used it a lot to convert a certain amou