Date picker in a popup window

Hi all,
There are 2 pages, page 1 contains a button, when user click on it, a new window will popup showing page 2 which is a entry form has a date picker item.
The javascript behind the button in page 1 is like: (in target URL field.)
javascript:popupURL('f?p=101:2:&SESSION.');
It works fine except the date picker window wouldn't popup again in the second page. If I run the 2nd page individually it works well, it doesn't work only if I run it in a popup window.
Is this a bug or something? How can we fix it.
Many thanks!
Pete

Hello Pete,
>> It works fine except the date picker window wouldn't popup again in the second page. If I run the 2nd page individually it works well, it doesn't work only if I run it in a popup window.
You are using the ‘popupURL’ function, which uses a hard coded value – WinLov – for the ‘name’ parameter. That could be a problem in a recursive call.
Patrick solution is of course valid, but if you want to use a popup window format, try using the ‘popUp2’ function. The function generates a “random” name, so the problem should be solved.
Regards,
Arie.

Similar Messages

  • Displaying data in a temporary popup window

    Hello
    I have defined two vectors in a JDialog window and I have a button "View" on it.
    Once "View" is clicked I want to show a popup window which shows the values of vectors in it.
    I want to keep the data in the previous window i.e.JDialog as it is, when the popup is closed.
    Is it possible ? Please give me a suggestion.
    Thanks

    Welcome to the Sun forums.
    >
    I have defined two vectors in a JDialog window and I have a button "View" on it.
    Once "View" is clicked I want to show a popup window which shows the values of vectors in it.
    I want to keep the data in the previous window i.e.JDialog as it is, when the popup is closed.
    Is it possible ? >Sure. When the View button is activated, show the values in a JOptionPane*.
    But then, I do not know why you would expect the data or state of the JDialog to change in the first place.
    * Besides a JOptionPane, you might investigate tool tips, or a JWindow/JFrame, though none of those will 'block' input to the JDialog in the same way as a JOptionPane (or a second modal JDialog) would.
    Edited by: AndrewThompson64 on Apr 10, 2009 3:39 PM
    Edited by: AndrewThompson64 on Apr 10, 2009 3:40 PM

  • Date picker for 64 bit windows 8 and 32 bit 2010 excel

    I'm looking for step by step instructions on how to add a pop up calender to chose a date in 2010 Excel.  There is none listed in the addition toolbox controls, where and how would I install this? 

    Hi,
    Please go to the following path to find the Microsoft Date and Time Picker:
    Excel 2010 > Developer tabe > Insert > ActiveX bottom right > More > MIcrosoft Date and Time Picker (SP4). 
    For more detail information, please refer to the following link:
    http://social.msdn.microsoft.com/Forums/en-US/26f6adea-c723-4815-92ba-59a0c846a80a/microsoft-date-picker-excel-2010?forum=exceldev
    http://www.logicwurks.com/CodeExamplePages/EDatePickerControl.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to implement a Date Picker (Calendar) as a LOV in Portal Form?

    I have a form, which will input date from user, and I also have javascript calender.
    How to implement a Date Picker (Calendar) as a LOV in Portal Form? Do I need to choose POPUP and LOV for Date?
    Instead of typing the Date within a Portal form, a popup Calender that will allow user to Pick a date.
    Please help anyone!!

    Once you have the JavaScript and have added it to your form, you need to the the following. First off, you need to be able to customize the HTML code for the form (i.e. choose custom for form type when creating the form). Once you do that go into the custom layout to customize your HTML code. Find the field you want to add the date picker to. It will be <#your_field_name.ITEM#>
    Paste this code after it:
    <a href="javascript:show_calendar('forms[0.elements[16');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src="the source of your image file" width=34 height=21 border=0></a></TD>
    You will have to play around with the forms[0].elements[16]. 16 is what date field is set to. However your will differ, so just play with it.
    Hope this helps.
    Martin

  • Uix:dateField and  date Picker problems

    Hello.
    In the Blaf Glossary, I read that is possible to use the date picker on a primary window, without a popup window.
    does anybody has a sample code to see how is this possible?
    thnks !

    What version of JDev are you using? The inlineDatePicker is in 10g preview. There was no way of doing this prior to 10g.

  • Date pick calender error

    Dear Experts,
    We are using SAP B1-2007 PL 42 and occurred following error.
    When I click the date picker in any form (window) [ex:-Sales Quotation, SO, etc....), it shows only 4 days of the week.
    It hides rest of 3 days (Friday, Saturday, Sunday) in every month.
    But I can manually enter or scroll from arrow keys.
    Following is a screenshot of the error
    http://www.4shared.com/photo/_2xzM9Sq/Date_Error.html
    Would you please be able to assist us on this.

    Check [CPRF] table.
    Formid is '10000075' , Check width, VisInForm, ColId, UserSign fields.
    Our sample is ,
    select * from cprf  where formid = '10000075'  and usersign = 12
    So, results will be seen below.
    FormId                  ItemId                ColID               Width               VisInForm        VisualIndx ....
    10000075     10000013     10000000     0     N     0     
    10000075     10000013     10000001     0     N     7     
    10000075     10000013     10000003     51     Y     3     
    10000075     10000013     10000005     51     Y     2     
    10000075     10000013     10000007     51     Y     1     
    10000075     10000013     10000009     0     N     6
    10000075     10000013     10000011     0     N     5     
    10000075     10000013     10000013     16     Y     4     
    Next, We executed following query.
    UPDATE CPRF SET WIDTH = 22 , visinform = 'Y'
          where formid = '10000075'  and
                      colid in ( '10000007', '10000005', '10000003', '10000013', '10000011', '10000009','10000001' ) and
                       usersign = 12
    And, SAP Client exit, re log-on.
    Edited by: smm8ic on Jan 12, 2012 3:05 AM

  • Opening Date Picker in popup window

    Hi All,
    I'd like to be able to use a Date Picker in a custom popup window that I've developed. When I open the date picker however, because I'm already in a popup window the date picker fills the whole of the custom popup, rather than opening in its own window.
    Is there a way to force the date picker into using a new window?
    Thanks,
    Mike

    Hi Mike;
    Thanks for the responce. My Tabular (Popup) form is wizard generated. This is the code I use to call the Popup:
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>
    <script language="JavaScript" type="text/javascript">
    function callACNEPopup (formItem1) {
    var formVal1 = document.getElementById(formItem1).value;
    var url;
    url = 'f?p=&APP_ID.:60:&FLOW_SESSION.::::P60_ACAC_UID:' + formVal1;
    wACNE = open(url,"winLov","Scrollbars=1,resizable=1,width=675,height=300");
    if (wACNE.opener == null)
    wACNE.opener = self;
    wACNE.focus();
    </script>
    The Calendar is simply a date picker.

  • Data Picker popup position

    How can I control the position where the date picker popup window appears? It would be nice if it could appear close to the calendar icon on the item which launches it.
    Thanks

    Vikas,
    The date picker popup has no attributes that would allow you to position the popup window on your screen.
    Regards,
    Marc

  • Refresh only page item while submitting data from the popup window

    Hi All,
    I'm pretty new to Apex .....
    I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item in the calling page. The purpose of having the popup window is that the text item following the radio button takes the input with certain character delimiters along with the data. Instead of using delimiters while entering the data I want a meaningful data to be keyed in the popup window and all the string operation to be done as a background process. I have been successful this far. I'm using the below javascript on click of the submit button.
    javascript:doSubmit();
    window.opener.doSubmit('REFRESH');
    window.close();
    On doing this I'm losing the values submitted for the items prior to the radio button(including radio button). Please note, I have a dynamic action set on page load to reset the values. Is it possible to refresh just the page item from the popup window.
    Also, I tried excluding the window.opener.doSubmit('REFRESH'); from the above javascript. It sets the item with the expected value (viewed it in the session items, however I would like to view the concatenated string on my calling page) but following this there is an insert operation which uses all the necessary items in the form. All values except the value returned from the popup window is populated into the table. Am I missing something.
    Any help in this regard is appreciated.
    Thank you!!!
    Regards,
    Ganesh

    Value set using Javascript is only in your browser page but is not yet available in the session. This is why the report doesn't return the expected output.
    Before refreshing the report you would need to set the session state of this item.
    You can set it after you assign the item a new value or before the report is refreshed
    For Interactive Reports, this is available built in
    you can go to Report Attributes >Advanced Attributes -> Page Items to Submit and specify P2_X1 for the field(and any other page item that the report is dependent on)
    For standard reports, you can create a Dynamic Action that is triggered "before refresh" of the report's region, and choose PLSQL as the action types, give a dummy BEGIN NULL END; for the code and specify this item name in the page item to submit field so that it sets the items's value in session.

  • Safari on Lion will not allow popup windows to return data to the website

    I have a web-based application that uses pop-up windows to capture certain user changes. One example is the user changing the default number of hours to a new specific number. The problem is that with Safari on Lion, the data does not get returned to the website.
    I have tested this function with Windows and IE, Firefox, Chrome, and Safari with no problem. I have tested it with my Macbook system running Snow Leopard and Safari, with no problem. I have tested it with my Macbook and Firefox with no problem. I've used the Firefox Firebug debugging tool with no errors found.
    Debugging has proven that the data is being captured by the popup, and it is assigned to the returnValue. However, the website never receives that data - the object is empty. This error is happening with every popup I've tried in the system covering a wide range of uses.
    The only thing I have found that fixes/masks the problem is turning on the Developer menu in Safari, and then starting Javascript debugging. In that mode the problem does not occur, but I can't find any errors to fix.
    It seems as if there is some change in Lion that affects the security of popup windows and returned data, but an internet search turns up no similar complaints. I have been able to reproduce the error on 3 different Macs running Lion.
    I have verified that pop-up windows are not blocked, and java and javascript are enabled. I've also compared the settings on my system with the failing systems and find no Safari settings that make any difference. I've tried all the simple things like system reboots, safari resets, and cookie cleaning.
    I would appreciate any ideas or information that might help. I am an experienced developer but relatively new to Mac's.
    Here is the code that calls the popup and waits for the returned data :
    if (window.showModalDialog)
    retVal = window.showModalDialog(templink, "name", "dialogWidth:275px;dialogHeight:350px");
    else
    retVal = window.open(templink, "name", "height=350, width=275,toolbar=no, directories=no, status=no, menubar=no, scrollbars=no,resizable=no, modal=yes");
    if (retVal == 'cancel')
    return;
    else {
    frmnewhrs.lid.value = tempid;
    frmnewhrs.newhrs.value = retVal;
    frmnewhrs.submit(); }
    This is the code in the popup that captures and sends the new data :
    function preSaveCheck() {
    var tempstr = document.getElementById("newhrs").value;
    if (tempstr.length > 0) {
    window.returnValue = tempstr;
    window.close();}
    Thanks, Dave

    Anti virus software installed on the Macs?
    Using a router with a Firewall?

  • Passing data from calling page to popup window

    Hi All,
    We are developing a BSP application for business card.I need to provide a preview button .
    when the user clicks this button a
    poopup window should open with the preview of business card.
    My problem is how to pass the values like name , designation etc from the main page to popup window.
    The code for previre image:
    <h t m l b : i m a g e   s r c = " s _ b _ d e  tl . g i f  " a l t = " P r e v i e w   C a r d "  o n C l i c k="addr" on C l i e n t C l i c k = " c a l l W i n d o w ( ) ; "/>
    <s c r i p  t t y p e = " t e x t / j a v a s c r i p t ">
    f u n c t i o n  c a l l W i n d o w ()
    w i n d o w .o p e n ( " p r e v i e w . h t m " ) ;
    </s c r i p t >
    preview.htm is a simple HTML page . i need to pass values from main page to this page.
    OR
    Is it possibel to restrict the size of a VIEW to use it as a popup window?
    OR
    is there any other way to achieve this like.. the <bsp:call comp_id=" " />
    tag , but i have no idea how to use it.
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Sep 12, 2008 3:38 PM

    Hi Raja,
    I did as suggested by you...but it is behaving strangely.
    It works fine in debuging mode but when executed directly ....it is not working.
    the scenario is:
    Thers an image for preview as follows:
    <htmlb:gridLayoutCell columnIndex="3" rowIndex="13">
    <htmlb:i m a g e   s r c = " s _ b _ d e t l . g i f "   a l t = " P r e v i e w   C a r d "   o n C l i c k = " a d d r "   o n C l i e n t C l i c k = " c a l l W i n d o w ( ) ; " /  >
    </htmlb:gridLayoutCell>
    The JS code is:
    f u n c t i o n   c a l l W i n d o w ( )
    <%
    data: title(5),
             fname(20),
             lname(20),
             comp(20),
             addr(20),
             city(20),
             state(20),
             pcode(20),
             country(20),
             phone(20),
             fax(20),
             email(241).
             alt_addr-title = request->get_form_field( 'title' ) .
             alt_addr-firstname = request->get_form_field( 'fname' ) .
             alt_addr-lastname = request->get_form_field( 'lname' ) .
             company = request->get_form_field( 'comp' ) .
             alt_addr-street = request->get_form_field( 'addr' ) .
             alt_addr-city = request->get_form_field( 'city' ) .
             alt_addr-region = request->get_form_field( 'state' ) .
             alt_addr-inhouse_ml = request->get_form_field( 'pcode' ) .
             alt_addr-country = request->get_form_field( 'country' ) .
             alt_addr-tel1_numbr = request->get_form_field( 'phone' ) .
             alt_addr-fax_number = request->get_form_field( 'fax' ) .
             alt_addr-e_mail = request->get_form_field( 'email' ) .
    CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
              EXPORTING
                name                  = 'FORMFIELDS'
                application_name      = runtime->application_name
                application_namespace = runtime->application_namespace
                username              = sy-uname
                session_id            = runtime->session_id
                data_value            = alt_addr
                data_name             = 'alt_addr'
                expiry_date_rel       = 1.
    %>
    w i n d o w . o p e n ( " . . / z _ b i z c a r d / p r e v i e w . h t m " ,   " W i n E " ,   " w i d t h = 2 4 0 , h e i g h t = 3 0 0 , t o o l b a r = n o , r e s i z a b l e = no ")
    I was doing something similar...created a controller and a view , was calling the controller from window.open method with all other parameters for sizing etc.
    How to pass a structure conatining data,from controller to the view...
    Now in the onCreate event of the page PREVIEW.HTM in using;
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
      EXPORTING
        name                  = 'FORMFIELDS'
        application_name      = runtime->application_name
        application_namespace = runtime->application_namespace
        username              = sy-uname
        session_id            = runtime->session_id
        data_name             = 'alt_addr'
      CHANGING
        data_value            = alt_addr.
    and in the layout of PREVIEW.HTM in am using this alt-addr:
    But if put a break point at the onCreate event of preview.htm and the execute i get the values in alt_addr but if i execute directly...it is empty in the layout?
    What is the problem?
    Thanks,
    Anubhav.

  • When closing Popup Window it does not ask "discard data?" dialog

    We have a popup window to create/update a record. When we click on 'Close Window' on this popup window with unsaved changes it does NOT show the dialog popup - "The changes you have made to this page have not been saved. If you continue, the changes will be discarded. Do you wish to continue?"
    What do I need to do to ensure the dialog popup is shown so that the underlying VO/EO are left in a consistent state before closing the popup window?
    At the moment, if the user navigates to the popup window a second time in the same session the EO cache is retained and causes create to fail.
    Regards
    Firoz

    The message you are talking about is a Warn About Changes message and it shows only if the user tries to navigate away from the page page without committing/rollbacking the data.
    As far as Window close is concerned check whether the windows.close() could be handled using Javascripts. As far as OA framework is concerned I would recommend you do not retain the AM while the pop up window is opened. This way no data from previous popup would be available. Just make sure that you pass sufficient parameters to initialize the popup everytime.
    Regards

  • ADF BC - Date Picker closes Popup

    Hi all,
    I have a inputDate field inside of a form which is in a popup. When i choose a date from the date picker that comes up, (the one built in to the inputDate field) my popup closes. Is there a way to keep the popup open until a user clicks back on the main page, or clicks the commit button (commit button is inside the form, inside the popup)
    Thanks,
    Dan

    Try to place a panelDialog or panelWindow inside your pop up and have the Form inside it.
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/panelWindow.jspx

  • Popup window for data selection in maintenance view

    Hi,
    How to create popup window for data selection in maintenance view. For example when you go to view v_t510 in se16, there you will see a popup window to enter values. after you enter the values in that window, then data related to those values that you entered in the popup window will displayed.
    How can we do that for the custom maintenance view?
    Thanks in advance for your help guys.
    Regards,
    Srinivas.

    In your custom maintainace view, if you select the Data browser / Table view maintainace under the tab "Maint Status" as "Dispaly maintanence allowed with restriction" than system will give you popup to restrict by selection.
    Regards,
    Naimesh Patel

  • I have uninstalled Lightroom and need to re-install it on the same computer. I cannot find where to re-install it. The CC popup window says that it is installed and Up to date.

    I have uninstalled Lightroom and need to re-install it on the same computer. I cannot find where to re-install it. The CC popup window says that it is installed and Up to date.

    CC desktop lists applications as "Up to Date" when not installed
    http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

Maybe you are looking for

  • Is there a way to control kdc retry behavior?

    When a particular KDC is down, JGSS continues to try it until the max number of retries (in the logs below - thrice) Is there any way to control the number of times the same kdc is retried? Thanks, Realm parseHierarchy A: retList[0]=go.domain.com Cre

  • Get Current Period.

    Hi All, I want current period based on system date .Please tell me name of Function module so that i can pass system date n get period for that. Thanks, Ulhas

  • Lost sync on iphone how do i reset aand start over

    lost sync with iphone how do i start over

  • Where are the data files stored?

    I regularly back up using Time Machine, but when I reformatted my hard drive and then restored it, I could not find the data files for iWeb websites I have created.  Looking for help, I saw a reference to a subdirectory named "Domain", I found that b

  • Dmstool failing in bpel 10.1.2

    Hi, When trying to gathering stats from my domains in bpel, su - oracle -c "/path/to/bin/dmstool /host/OC4J:port:portopmn/orabpel/domain1/threading/alloc/numActiveThreads.value" I get this , ajp13://host:port/dmsoc4j/Spy;oc4jfake.qR8MmB1Ga34Uah8Pa38U