POP + javascript :doesn't save to the session

hello,
I have a select list and a popup. I'm trying to assign the value to the POP item using javascript but it's not working.
Here is the Link: [link |http://apex.oracle.com/pls/otn/f?p=11910:1:1730577978881661::::: ] .
Select any value in LOV ID. observe "mnually set" appears in the POP.
click "submit". Validation " not null" will fail...
Here is debug and javasript:
Session State: Save form items and p_arg_values
0.04: ...Session State: Saved Item "P1_LOV_ID" New Value="2"
0.04: ...Session State: Saved Item "P1_AJAX" New Value="21"
0.04: ...Session State: Save "P1_TEMP" - saving same value: "2"
0.04: ...Session State: Save "P1_LOV_SUBMIT" - saving same value: "%null%"
*0.04: ...Session State: Save "P1_POP" - saving same value: "undefined"*
0.04: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
<skip>
javascript:
function set_Value_LOV(pThis,pSelect){
var l_Return = null;
var l_Select = $x(pSelect);
var l_Value = " Manually set" ;
l_Select.value = l_Value ;
The LOV defined in POP is static and has one line.
the interesting caveat:
in IE 7 the validation fails. in FF3 the field has "undefined" string and apparently this doesn't' fire up the validation. At the same time it should be "manually set"....
Maybe i should use some other property of the POP DOM object to actually set the value ?
Please help
Edited by: andrey on Dec 10, 2008 10:10 AM

Hello Andrey,
>> i love Oracle, but, man, this is sick
First, I’m sorry I didn’t have time to check your example sooner. It happens sometimes, you know your day job … :)
Secondly, your popup problem, not saving session state, has nothing to do with Oracle or APEX. It’s actually HTML.
The type of popup item you chose to use sets the item to a disabled state – you can see that the content of the field is gray. Disabled items don’t get to be submitted to the server – this is the HTML part - hence session state can’t be saved – directly – using this item. That is the reason for the other item, the hidden one. This is a regular item, which gets to be submitted, and the APEX engine takes its value and set it as the session state of the original popup item. In your case, your JavaScript code only updated the disabled item, so the session state source remained empty.
Regards,
Arie.

Similar Messages

  • Picture doesn't save in the gallery

    hi! my name is Fraaz. and i am from Lahore Pakistan. Often my Phone starts malfunctioning while i tap the camera button, it takes photo but doesn't save it on albums but shows preview after a couple of seconds, meanwhile my phone got hanged while showing preview of the picture and once i switched off my device and after some time switch on it, the device camera starts working accurately and starts saving pictures. kindly let me know what is the issue and what to do with this?

    It's a common problem with the Z1 as the camera gets too hot to operate especially if you are taking pictures in low light. Also, the freezing problem with the Z1 and Android Kitkat is well known. It's possible that your phones memory is often too busy to save the picture taken because of running apps. I suggest you disable or uninstall apps that you don't use and regularly close background apps by tapping on the Recents button (to the right of Home) and swiping them to the right. You can disable default apps from Settings - Apps - All - Scroll to the app - Disable.

  • Adobe javascript include "this.saveas" into the pdf document level

    Hello,
    in some posts i read that if i certify a pdf, i would be able to include doc.saveas into the pdf document level. 
    Can anybody tell me what kind of cerify i'd need and how to have it done to make the saveas work from client side?
    thanks alot

    When you use the saveAs method with code inside the PDF, do not place it in a trusted function or use app.beginPriv/app.EndPriv. You have to confirm that the certificate is in your list of trusted certificates and that it is trusted to allow execution of high privilege JavaScript. Be sure to test the document with Reader and validate the signature before attempting to execute the code. There is a preference that controls whether signatures are validated when a document is opened. I would recommend setting this preference.
    I would suggest testing it with Reader.

  • How do I save a Tab Session as a Bookmark?

    I am using Firefox 4.0. I have several windows open, each with multiple tabs. Each time I restart Firefox, I am gratified to see all of the previous windows and tabs pop open and are restored, however, the reload time is agonizing at my bandwidth.
    Each of the windows has multiple tabs that are related: hobby sites, medical info sites, technical lookups, etc. In an older version of Firefox, I was able close a window and save a complete set of tabs as a bookmark folder labelled "session 1 (2,3,etc.)" in only a few simple clicks. That feature appears to be missing in Firefox 4.0
    Short of manually creating a bookmark folder, bookmarking each tabbed page separately, and then editing the bookmark list to move all of the bookmarked tabs to that new folder, is there a convenient way to perform a bookmark save of the session in a specific window, so I can close that whole window but still be able to get it back at a future time/date?

    Yes! :-)
    Thanks. That creates a bookmark folder I've moved to my bookmarks toolbar. I'll get used to the "Open All Tabs" process very quickly.
    Nice solution. Thanks.

  • E-recruiting BSP Tab Note Save & Back button  doesn't save data

    Hi all,
    We have implemented, EHP3, and we had a problem with the cancel button in the screen of the tab note of TRM category, the problem with  Cancel button was that it save data when it shouldn't do, so we implemented the note < 1439737   " Note text is getting saved when you press 'Cancel' button " > and <1379694  "  Changes in the letter section are lost after tab switch " >, so the problem with Cancel button was solved, but now the Save & Back button doesn't save anything the data is getting lost, we sent am OSS Note to SAP, but still no answer, so I wanna know if somebody has a similar problem, and if it is, how did u solve?? Please let me know please.
    Many Thanks.

    Hi all,
    We have implemented, EHP3, and we had a problem with the cancel button in the screen of the tab note of TRM category, the problem with  Cancel button was that it save data when it shouldn't do, so we implemented the note < 1439737   " Note text is getting saved when you press 'Cancel' button " > and <1379694  "  Changes in the letter section are lost after tab switch " >, so the problem with Cancel button was solved, but now the Save & Back button doesn't save anything the data is getting lost, we sent am OSS Note to SAP, but still no answer, so I wanna know if somebody has a similar problem, and if it is, how did u solve?? Please let me know please.
    Many Thanks.

  • How to stop a pop up window if the session expires

    Hi
    I have a situation wherein i have my jsp page. in that i have a button on clicking it a pop up window will open to take a input parameter.
    Now what we want is that if the session is not valid than the pop up shud not open.
    Currrently what is happening wen the session is not valid the popup gets open and in that popup a login page is coming.
    The logic for pop has been put in a javascript code which gets executed when the page was first loaded . So even if i put a logic for checking the session before the popup opens it wont work. So what can be a possible way i can do it?
    I am writing a scriptlet to check the logic for valid session.
    function changeLimitFunc(count)
         <% if ((request.getSession(false)== null)) {%>      
              return false;
         <%}
         else {%>
    popUp('');
              openedForm.target = 'change_download_limit';
              openedForm.submit();
    <%}%>
    and in the page which geot loaded the same code appears like
    function changeLimitFunc(count)
         popUp('');
                   openedForm.target = 'change_download_limit';
                   openedForm.submit();
    this popUp is amethod where we are createing our popup.
    please help me out to resolve it

    I have written this javascript code to block the popup
    function changeLimitFuncUnopened()
    if (checkIfValidSession()) {
              popUp('');
              unopenedForm.target = 'change_download_limit';
              unopenedForm.submit();
              else {
              return false;
    function checkIfValidSession() {
    <% HttpSession httpSession = request.getSession(); %>
    var lastAccessTime = <%= httpSession.getLastAccessedTime() %> ;
    var maxInactiveTime = <%= httpSession.getMaxInactiveInterval() %> ;
    var date = new Date();
    var time = date.getTime();
    if( (maxInactiveTime > 0) && ((time - lastAccessTime) > (maxInactiveTime * 1000))) {
         alert("Session TimedOut. Please Re-login!!!");
         return false;
    else {
         alert("inside else true shud go");
         return true;
    The code is working fine and blocking the popup. But I am not sure if this will be a correct fix.

  • Firefox doesn't save the settings

    As the question might say this version of Firefox (5.0.1) doesn't save the settings u do to it...For example my problem is with the toolbar and the buttons i add to it...i have tried to customize it as i previously had it in the earlier versions of firefox but it doesn't save them...i need to customize them from the beginning whenever i close and open firefox...even when it updates the add-on's and restarts it still needs to be customized...i have also checked many forums and apparently i am not the one having the same problem...some also can't save the bookmarks but that is not my case...i have recently downloaded a Premuimplay Codec-c add on and also a Facemoods and maybe ththose interfere with firefox even though i doubt it
    The addon's that i definitely wanna keep on the toolbar are IMTranslator,WOT,Read It Later,Save-To-Read,ADBlock Plus and also the Home button never stays in the place i move him when i customize the toolbar
    Regards
    Albi
    PS:(some add-ons don't work with firefox 5.0.1 but i guess thats the developers problems right?

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • My firefox doesn't memorize the option of always saving in desktop. it always asks me where i want to save even if i chose the option to always save in the desktop.

    in the firefox settings i chose the option of saving downloads in desktop instead of always asking me where to save. but, no matter what i do, i always get the save window when i want to download something, the default is always "open with" instead of "save file" and it doesn't allow me to chose the option to repeat the save for the same kind of file from now on. so, every time i download something i have to click in "save file" and "ok", but in the settings i have "save files in desktop", so i don't get it! why can't it be memorized?

    You can try "Reset Download Actions": http://kb.mozillazine.org/File_types_and_download_actions
    You can also try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.

  • HT4059 When I have a PDF that I want to open and save into iBooks - it will attempt to open it and the shelf flips around to make room for it. But it doesn't save it. I have to end up opening it in Adobe or Kindle app to view & save it.

    When I have a PDF that I want to open and save into iBooks - it will attempt to open it and the shelf flips around to make room for it. But it doesn't save it. I have to end up opening it in Adobe or Kindle app to view &amp; save it. This has been doing this awhile, what's wrong. Should
    I take it and have it looked at?

    is there any important stuff saved to your emails? if so you could log on to your emails from a seperate device and back them up. im not sure what else you could do :/

  • I recently upgraded from 4S to 5S. There are 2 games that I wish to transfer to the new device. 1st game isn't available in the Store anymore, so can't download. 2nd game doesn't save when you change devices. How do I get those 2 apps to my new phone? Tnx

    I recently upgraded from 4S to 5S. There are 2 games that I wish to transfer to the new device. 1st game isn't available in the Store anymore, so can't download. 2nd game doesn't save when you change devices. How do I get those 2 apps to my new phone? Can I do that manually through iTunes?
    Thanks!

    Hello jon713,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iTunes: About iOS backups
    http://support.apple.com/kb/ht4946
    App Store Application data (except the Application itself, its tmp, and Caches folder)
    Application settings, preferences, and data, including documents
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/ht1848
    To transfer iTunes Store purchases from your device to a computer, follow these steps:
    Connect your device to the computer. If it is synced with another iTunes library, the following dialog may appear:
    Click the Transfer Purchases button.
    Have a nice day,
    Mario

  • When trying to PDF a webpage into a PDF, it does not work, I go through all the steps as normal, and It does nothing. I can repeat my action, where instead of "printing" to adobe, it saves the file, which it doesn't save it at all. I can't even find the o

    When trying to PDF a webpage into a PDF, it does not work, I go through all the steps as normal, and It does nothing. I can repeat my action, where instead of "printing" to adobe, it saves the file, which it doesn't save it at all. I can't even find the original in my work folder. I need to know how to stop this from happeing and get it back to the way it has been working he last 6 months since i purchased this program.

    Hi pissedadobeuser,
    Does this issue occur with any particular web page?
    Are you able to print the webpage to 'Adobe PDF' to convert it to pdf.
    Which Browser version, OS version and Acrobat version are you using?
    Regards,
    Rave

  • I have a new computer with Windows 7 professional, Office 2007, Adobe XI. I have just created a word document and tried save it as a PDF but the PDF option doesn't appear in the drop down menu. Any ideas please? Thank you.

    I have a new computer with Windows 7 professional, Office 2007, Adobe XI. I have just created a word document and tried save it as a PDF but the PDF option doesn't appear in the drop down menu. Any ideas please? Thank you.

    What is "Adobe XI" - Reader, or Acrobat?
    But either way, 'Save as Adobe PDF' is a Word function, independent of what Adobe software you have installed.

  • Safari 5.0.2 doesn't save any more google search results in the history.

    Hello together,
    Safari doesn't save any more google search results in the history.
    Steps to reproduce:
    1.) go to google.com
    2.) search for "APPLE"
    3.) open the history
    Result: the search for "APPLE" is not saved - only the Google mainpage.
    This has something to do with the new search string in the Location bar. Safari does not save URL with /#.
    For example:
    the new string is http://www.google.de/#hl=...
    the old one is: http://www.google.de/search?hl=....
    The change must something to do with the new Google-Search-Feature. When I deactivate it, then google works with the old string and I found the searches in the history.
    The second negative effect is, when you type "apple" into the location bar (after a search), the autocomplete shows the search result, but when you hit enter, you are redirected to the Google-Mainpage.
    Very annoying
    Can somebody confirm.
    Thanks
    Message was edited by: memo_78

    Thanks for your reply!
    Could you post the bug here, too, please:
    http://www.apple.com/feedback/safari.html
    I have done it
    Thanks in advance !
    memo

  • Recently, whenever a pop window opens with a prompt the window has a tab, so I have to resize the window in order to click on the action "enter" or "save". How can I get rid of this?

    I'm a blogger and I use a web based text editor and when I input photos I have to click on a button that opens a popup where I put in the URL of the photo and have to hit "ok". In the last few weeks the pop up windows now automatically have a tab and I have to expand the window (resize) in order to click "ok". Considering that it only adds the tab AFTER I press paste/ctrl-v is so annoying and time consuming. It never used to do this before - what happened?
    This started around the time I installed stumbleupon toolbar but I'm not sure if they're related. I took the toolbar off my default browser window and it doesn't show up on the popups. But just thought I'd give that info in case it's causing it somehow?
    I don't know how to fix this :(

    You get an alert about resending POST data if you go back to a page that was previously requested from the server by submitting form data via a POST form.<br />
    Firefox can only make sure to get the same page by resending that POST form.<br />
    Firefox doesn't know what that form data means, so Firefox asks for confirmation before resending that form data as such an action can cause you to repeat an action and buy another item or post a message another time.<br />
    A way to prevent that pop-up is not to use the Back button, but to open links from a page that was requested from a server by sending a POST form in a new tab (window) with a middle-click or a Ctrl + left-click.<br />
    Then you can close that tab or window to go back.<br />

  • I want to create an external video widget with iAd. I followed the steps and copied the Url and paste it in the Video pop-up menu in the Properties section of the inspector. When i select 'preview' the video doesn't play and the Url that i pasted is gone.

    i want to create an external video widget with iAd to use in an iBook. I followed the steps and copied the Url and paste it in the Video pop-up menu in the Properties section of the inspector. When i select 'preview' the video doesn't play and the Url that i pasted is gone.
    hope someone can help!

    May have something to do with whether or not the URL can be reached while building your widget.  I've got a video on the web. When I enter the URL into the field for the video object and click to another field,  the URL is replaced with some text indicating that it is accessing the video then updates itself to displaying just the name of the video file.
    It shows just fine in preview and I can see the full path to the video when I export the widget so it should work for you. 
    Is the video accessible from your Mac while you're laying out your widget?
    -Mark

Maybe you are looking for

  • Lost purchases

    Hello Does anyone know how to get back purchased songs after having to reload itunes due to computer problems, I have imported library from original file location (this was on an unaffected hard disk) but purchases are now not listed.I have checked o

  • Floating social media bars

    How are those floating social media bars removed?

  • Migrate from Oracle Rdb to Oracle 8i

    Has anybody out there done a migration from Oracle Rdb (formerly Digital product) to Oracle 8i on a Alpha/OpenVMS platform? If yes, kindly share your experience. Thank you very much.

  • What happens when i uninstall an application

    Say, i download an application to my N8 via ovi. I dont like it and uninstall it using application manager. Now, 1) Can i reinstall the application without downloading it again? 2) Does the downloaded file still exist hidden somewhere in the device m

  • HT4623 iPhone 5 update problem

    I am having a problem updating my iPhone 5 to ios7. It is stuck with the iTunes icon on the screen with a picture of a power cord plug-in underneath it. I have tried following directions for a hard reset but it just bounces back to the same screen. W