Error after close popup with swfloader

Hi all, hope some one could help me with this i get this
error ( Error: Unable to load '' ) each time after i close a popup
with a swfloader the error popsup when i click on the datagrid
*****************************main mxml
private function ShowPano():void
var SWFLoaderInstance:Panoramica2 =
Panoramica2(PopUpManager.createPopUp(this,Panoramica2,true));//
instantiate and show the title window
PopUpManager.centerPopUp(SWFLoaderInstance);
SWFLoaderInstance.mainAppPano = this //Reference to the main
app
scope
*******************************this is the mxml Panoramica2
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="doInt()"
cornerRadius="10" width="600" height="450">
<mx:Script><![CDATA[
import mx.controls.PopUpMenuButton;
import mx.managers.PopUpManager;
import mx.collections.ArrayCollection;
import mx.controls.Button;
[Bindable]public var mainAppPano:Object = null;
//called by the close event raised byclicking the close
button
private function closeWindow():void
PopUpManager.removePopUp(this);
}//closeWindow
private function doInt():void
PopUpManager.centerPopUp(this);
]]>
</mx:Script>
<mx:TitleWindow layout="absolute" right="10" left="10"
showCloseButton="true"
close="closeWindow()" top="10" bottom="10">
<mx:SWFLoader
source="{mainAppPano.datagrid.selectedItem.pano..src}"
scaleContent="false"
horizontalCenter="0" verticalCenter="0"/>
</mx:TitleWindow>
</mx:Canvas>
********************************xml structure
<catalog>
<libro>
<name><![CDATA[<b>Biblioteca Central
</b> ]]></name>
<desc><![CDATA[Se inauguró el 20 de noviembre
de 1978 ]]></desc>
<imagen>FOTOS/est/Biblioteca Central Manuel Bartlett
Bautista.jpeg</
imagen>
<pano nombrePano="Biblioteca Central Bautista">
<src>FOTOS/Panoramicas/PanoZoom642007.swf</src>
</pano>
<ico>BOTONES/gifs/video.gif</ico>
<video nombreVid="Biblioteca Manuel Bartlet">
<src>VIDEOS/Biblioteca Manuel Bartlet.flv</src>
</video>
<audio/>
<pie>Biblioteca Central Manuel Bartlett
Bautista</pie>
</libro>
</catalog>

<script type="text/javascript">
function saveChanges(){
doSubmit('SUBMIT');
var test = $x('P7_FLAG').value;
if(test == '1')
window.close();
window.opener.doSubmit('REFRESH');
</script>javascript does not wait for the current action to complete and then perform the next line.
means in your function call
doSubmit('SUBMIT');is triggered and it carry on's to next line that is
$x('P7_FLAG').value;this will not be set because you are setting the value of P7_FLAG to 1 in plsql and trying to check in javascript, which will not work.
what you need to do is amend your js function like below
<script type="text/javascript">
function saveChanges(){
doSubmit('SUBMIT');
</script>create a page branch to procedure and make it conditional to when P7_FLAG = 1
and set the branch source to below
htp.p('window.close();');
htp.p('window.opener.doSubmit(''REFRESH'');');

Similar Messages

  • How to close popup with af:commandButton without submitting values?

    Hi all,
    I'm using JDeveloper 11.1.2.1
    My popup has few af:inputText components with value attribute binded to view scope variables.
    I set those view scope variables in backing bean before showing popup.
    When I change values of input fields and click cancel (af:commandButton, partialSubmit=true, immediate=true), popup is closed.
    Then, when I show popup again, values that I changed are visible although I set new values to view scope variables in backing bean before showing popup again.
    I noticed that when I close popup using close icon in upper right corner of popup everything works fine.
    Also, I tried using dialog cancel button and it also works fine.
    Is there a way for closing popup using af:commandButton but without submitting values?
    In previous releases of JDeveloper (<= 11.1.1.5) I didn't noticed this problem.
    Thanks in advance,
    Aleksandar

    Alexandar wrote:
    Is there a way for closing popup using af:commandButton but without submitting values?If you really want to use your own button without submitting, then some three lines of Javascript will do the trick. See the documentation of af:popup for that. Canceling a popup is a pure client-side operation. No event is sent to the server. No submit. No need to reset anything. That's basically what the built-in cancel button does as well.
    Sascha

  • Inkove method after close window with unload

    Hi guys,
    I'm trying create a way the invoke a method in a BackingBean after close the window of browser for this I'm using the event unload of 'af:document'.
    I used the Frank's sample ( http://blogs.oracle.com/jdevotnharvest/entry/responding_to_the_page_unload_in_a_managed_bean ) but it doesn't work.
    Can anybody help me?
    I'm using JDeveloper 11.1.2.0.0
    This a part of my code :
    Page
    <f:view afterPhase="#{backingBeanScope.backing_mainPage.afterPhase}"
              beforePhase="#{backingBeanScope.backing_mainPage.beforePhase}">
        <af:document id="d1"
                binding="#{backingBeanScope.backing_mainPage.d1}"
                title="CTBC - Algar Telecom"
                smallIconSource="imgs/favicon.png imgs/favicon.ico"
                onunload="performUnloadEvent"
                clientComponent="true">
        <af:resource type="javascript">
                window.addEventListener('beforeunload', function (){performUnloadEvent()},false);
                function performUnloadEvent(){
                  var eventSource = AdfPage.PAGE.findComponentByAbsoluteId('d1');
                  var x = AdfCustomEvent.queue(eventSource,
                                               "handleOnUnload", {}, true);
                  var y = 0;
        </af:resource>
        <af:serverListener type="handleOnUnload" method="#{sessaoLogoff.onUnloadHandler}"/>
          <af:form id="f1" binding="#{backingBeanScope.backing_mainPage.f1}">
    .ManageBean
    public class ControlaLogoff {
        public void onUnloadHandler(ClientEvent clientEvent) {
            System.out.println("good bye");
    }Regards,
    Renan

    I just tested the code Frank provided (as is) and it worked for me. the only thing to mention is when I closed browser completely the bean isn't called. If I close the tab running the page all works as expected.
    I strong feeling is that you simply can't catch the event if someone closes the browser (or use task kill). So if that is what you need you are out of luck.
    Again, the other case works for me. So if it's not working for you I guess there is some kind of coding error in your app.
    Timo

  • Open and Close Popup With Javascript

    Using Apex 3.2
    I have probably done this loads of times in my old job, but do not have access to the code and today I just can't get it to work properly.
    I have opened a pop up window with javascript
    Now I need to close it and refresh the calling page, but only if it passes the validation on the popup.
    I have a hidden item on my pop up called P7_FLAG.
    I have a page process after validation that sets P7_FLAG to (only set to 1, if passes validation).
    I also have a SUBMIT button.
    So once I click my SUBMIT button the page should look at the validations, if ok, set P7_FLAG to 1, then close the popup and refresh the calling page.
    My current javascript look like this
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>On my button
    javascript:saveChanges();The problem is that I need to click the SUBMIT button twice.
    First time it sets P7_FLAG
    Second time it closes page and refreshes.
    I have probably made some basic error, but today I cannot see it.
    Cheers
    Gus
    Edited by: Gus C on May 10, 2012 12:48 AM

    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>javascript does not wait for the current action to complete and then perform the next line.
    means in your function call
    doSubmit('SUBMIT');is triggered and it carry on's to next line that is
    $x('P7_FLAG').value;this will not be set because you are setting the value of P7_FLAG to 1 in plsql and trying to check in javascript, which will not work.
    what you need to do is amend your js function like below
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    </script>create a page branch to procedure and make it conditional to when P7_FLAG = 1
    and set the branch source to below
    htp.p('window.close();');
    htp.p('window.opener.doSubmit(''REFRESH'');');

  • Flex mobile - close popUp with back hardware key - bug?

    Hi everyone,
    i am having a problem with a popUp in my firstView aka HomeView. I used a similar logic as provided by the DashBoardMobile reference example: (http://www.adobe.com/products/flex/examples/)
    when i open the PopUP i add a EventListener with the HandlerFunction to close the popUp if the device back-key is pressed:
    systemManager.stage.addEventListener(KeyboardEvent.KEY_UP, deviceKeyUpHandler, false, 1000, true);
    protected function deviceKeyUpHandler(event:KeyboardEvent):void
                    var key:uint = event.keyCode;
                    if (key == Keyboard.BACK)
                        event.stopImmediatePropagation();
                        event.stopPropagation();
                        closePopUp();
    So far this had worked fine (if a popUp is open its get closed, if no popUp is open the previous View is poped)
    Now i made a popUp for the firstView of my app, and there this doesnt works, if i press the back-kay the application is closed wether the popUp is open or not...

    You might want to try listening for the backKeyPressed event on the View instead: http://polygeek.com/4225_air-mobile_go-your-own-way-overriding-the-back-key-press-in-air-m obile-apps
    In that handler if your popup is open you'll want to preventDefault() on the event and call your close logic.

  • Close popup with branch

    I have created a page with a "New party" button that opens a popup. It clears that cache for the popup and works fine.
    The new party can be entered and "create"d. The page branches to itself and the create button is not displayed. The new party data is saved in the table.
    The popup page has a computatoin to put the party_id into the calling page item. The Cancel button is a URL target: javascript:window.close();. This closes the window.
    Two questions;
    I want the branch to be a URL target that closes the page but I can't get it to work. The URL calls this in the Page HTML Header:
    <script language="JavaScript1.1" type="text/javascript">
    function passBack(){
    window.close();
    window.opener.location.reload(true);
    I made the only branch a URL and entered this as the url: -- javascript:passback() -- It never executed the function.
    I then tried -- javascript: window.close(); -- and the window did not close. This is the same code the Cancel button uses.
    What am I missing?
    Second question; I clicked the Cancel butoong, the window closed and on the calling page I looked at the session variables and the party_id was flagged as R but I did not see the value? Did it not write the session variable? Is there any way for me to check?
    Tia,
    Sam

    Sam,
    Why are you trying to take the user away from the current page? This can over complicate things. Have you considered a wizard approach where they could select "Create New" which would allow them to create the new entity?
    What I've found to work best is to provide a link to another action and bring the user back. For example, lets say I have a two step process: Create User and Assign User to Projects. In the wizard to Assign User to Projects I'll provide a link that says Create User. The link takes the user to the Create User wizard while setting the value of an item that the Create User wizard will later reference to bring the user back to the same spot in the Assign Users wizard.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • CRM Pricing error after 5000 seconds with CRM_ORDER_MAINTAIN in background

    Hi,
    This is Rajender. I am using function module CRM_ORDER_MAINTAIN to create sales order. I am facing a error while creating sales order from text file. while uploading 15000 records it is taking more than 5000 seconds. But after 5000 seconds the background job gets cancelled raising the error "Error occurred when processing Java programs".
    Can anybody please tell me why the error is coming.
    I am using the following sequence to create sales order.
    CRM_ORDER_MAINTAIN - To create sales order header
    CRM_ORDER_MAINTAIN - To create Item - Product, quantity, partner, manual price.
    CRM_ORDER_SAVE
    CRM_ORDER_INITIALIZE
    Thanks & Regards,
    Rajender Naik.

    Hi Rajender,
    Try using the FM CRMXIF_ORDER_SAVE which is more of like an interface FM and its better to use this FM for interfaces/data loading. We had issues with using crm_order_maintain FM and had to replace with this one.
    Refer to this below link on how to use this FM for a specific scenario-
    http://www.divulgesap.com/blog.php?p=MTEy
    Hope it helps.
    Cheers,
    Ravikiran

  • Trigger Compilation Errors after Full Import with Datapump

    Hello All,
    We did a full import with Oracle Datapump, and encountered some errors related to triggers:
    ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT_RESET" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT_RESET" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT_RESET" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT_RESET" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT" created with compilation warnings
    ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT" created with compilation warningsWe are wondering if there is some bug with the datapump on oracle 10.2.0.2. What caused such errors and how to resolve this trigger issue?
    Thanks!

    Hello,
    Show errors / at the end of the trigger and see if any of the dependent objects is missing resulting in error at compilation.
    Also you can try manually fixing the issue
    CREATE OR REPLACE TRIGGER table1_trg
       AFTER INSERT
       ON TABLE1    REFERENCING NEW AS new OLD AS old
       FOR EACH ROW
    DECLARE
       tmpvar   NUMBER;
    BEGIN
    Trigger code
    EXCEPTION
       WHEN OTHERS
       THEN
          -- Consider logging the error and then re-raise
          RAISE;
    END table1_trg;
    SHOW ERRORS;Regards

  • Limit S Cart Page cannot be displayed error after line item with attament

    Dear great supporters.........
    I have an issue with Value Limit shopping cart sir....
    I have seen post on forum.But my issue is little different.Adding multiple limit items fails with error.
    creating Value limit SC with one item with  attachment,after that again iam trying to add one more item,immediately
    Upon this, your are kicked out with error message: 500 SAP Internal Server Error
    ERROR: Buffer table not up to date (termination: RABAX_STATE)
    1) Create first limit item
    2) Add attachment
    3) Create 2nd limit item
    4)Immediately kicked of system.
    Edited by: informationtechnology on Nov 20, 2010 8:46 PM

    Shive...good one..!!
    One thing that you can do if you don't wanna have PPR, is to validate date column in fire action event in CO in process form request, and raise an error if you don't find appropriate format or null , as per your requirement.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • [solved] AGP Error after last update with fglrx driver

    Hello. I updated today (current: the new beyond kernel and the new fglrx driver) and have errors.
    This i found in my Xorg.0.log:
    (EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"
    (EE) fglrx(0): cannot init AGP
    Any ideas?

    Ok:
    Full Xorg.0.log.
    This is from the Stock Kernel, I normaly used the Beyond Kernel, but rebooted with this for testing. Its the same error.
    http://rafb.net/paste/results/RGL1oX39.html
    My Xorg.Conf:
    http://rafb.net/paste/results/od8gRY60.html
    I experimented with the line
    Option    "UseInternalAGPGART" "yes"/"no"
    but no effect.
    Update was done while in runlevel 3, so without X.
    Also tried to rmmod and then removed the fglrx packages, reinstalled the packages and load the module -> no effect, same error
    Module is loaded correctly:
    [sorcerer@sorcdesk ~]$ lsmod | grep fglrx
    fglrx 382828 0
    agpgart 27108 2 fglrx,intel_agp
    // edit :
    Found the old Packages for 8.24.8 in my pacman cache and installed them. With this version all is fine.
    Any ideas, why the new driver version is not working?

  • Acrobat XI Pro automatically closes itself with no messages etc. after few seconds

    Greetings all,
    I don't know why but my Acrobat XI Pro (11.0.0) automatically closes itself (with no warning, no messages etc.) after few seconds. I installed the AXI as a part of the CS6 Master Collection on my Windows 8 (x64) laptop. Just as suggested at some other posts in the forum:
    I checked the "security settings (enhanced)" tab but the protected view option is already off.
    I searched for the eula.exe under the "Program Files (x86)\Adobe\Acrobat 11.0" folder but there is no eula.exe. May it be not present because I installed it as a part of CS6 Master Coll. package?
    I am using Eset Endpoint Antivirus as a third party Anti Virus Software.
    The problem occurs when:
    I open up a pdf file from outlook etc.
    I manually open a pdf file from windows explorer
    I open adobe acrobat with no file to view
    As I mentioned above, I see no error messages or warnings during the closing down. It acts as if I clicked the close button on the top right corner. I know that there are a lot of posts in the forum about this issue, but none of them helped me to solve my problem. I would be glad if you can help me with this problem.
    Thanks,

    Hey i was having this issue also with Adobe Acrobat pro... it only seemed to be affecting one program that produced PDF output automatically. When the processes finished the PDF is supposed to be displayed and instead it would rapidly flash across the screen and close. THen i would have to hunt for the PDF to review its content. I tried a couple of things like deleting my preferences for acrobat C:\Users\[your user name]\AppData\Local\Adobe\Acrobat\10.0. You might have to show hidden files. In the explorer window select Organize-> Folder and search options-> once that opens view -> check show hidden files, folders and drives. then navigate that path above. Make sure adobe is closed then delete everything in there or move it off to another folder if your worried it will break it further.
    That did not fix the problem though. I opened the application and ran my process again same results (adobe closes pdf auttmagically). so i opened adobe acrobat and navigated to Edit -> Preferences -> look under the General tab and click the select default PDF handler and that seemed to fix my problem. I also disabled the enhanced security look further down in that list under security enhanced. then a reboot so it is possible that the enhance security setting was the cause i think i will play with that for a minute to see if it was but i think my issue was the default handling. good luck

  • How : Close PopUp after 10 seconds

    Hello I have a popup with a info text .  The popup should close after 10 seconds.
    I have create I View in the PopUp with a TimeTrigger and this TimeTrigger fire the Exit Plug of the PopUp window.
    but it doesn't work
    PopUp Cal :
      data: context_node type ref to if_wd_context_node.
      data: lr_popup type ref to if_wd_window,
            lr_view_controller type ref to if_wd_view_controller.
      data: lr_api_comp_controller type ref to if_wd_component,
            lr_window_manager type ref to if_wd_window_manager.
      lr_api_comp_controller ?= wd_this->wd_get_api( ).
      lr_window_manager = lr_api_comp_controller->get_window_manager( ).
      lr_popup = lr_window_manager->create_window(
      modal               = abap_true
      window_name         = 'W_POPCOUNTER'  "Name of the window created in step 2
      title               = 'Please enter all information'
      close_button        = abap_true
      button_kind         = if_wd_window=>CO_BUTTON_OK
      message_type        = if_wd_window=>co_msg_type_warning
      close_in_any_case   = abap_false
    *MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
      lr_popup->open( ).

    Thanks for your soultion.  Now I have the problem that my abap code not wait until the popup is closed.
    Have you a solution for this ?
      lr_popup = lr_window_manager->create_window(
      modal               = abap_true
      window_name         = 'W_POPCOUNTER'  "Name of the window created in step 2
      title               = 'Please enter all information'
      close_button        = abap_true
      button_kind         = if_wd_window=>co_button_ok
      message_type        = if_wd_window=>co_msg_type_warning
      close_in_any_case   = abap_false
    *MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
      lr_popup->open( ).
    '/// Not Waitung
    concatenate lv_numbersessions_str ' Active User Session from  ' iv_sid ' on system are killed' into g_text.

  • Why does my itunes crash after start up with an "APPCRASH" error every time i open it?! I have been trying to fix this for weeks but all i can do it re-install it every other day which does nothing!

    Why does my itunes crash after start up with an "APPCRASH" error every time i open it?! I have been trying to fix this for weeks but all i can do it re-install it every other day which does nothing! I am desperate to get access to my itunes to get music on my phone and all of this just makes me want me to sell my iphone since there is no other way to add music to my phone. If things go get sorted soon you can say goodbye to my support.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • My ipod touch is stuck up at Apple Logo, I have tried to update and restore through ITunes but no use, It stuck up again at Apple Logo with no Error, after restoring it showes your ipod is restore but still apple logo won't go

    My ipod touch is stuck up at Apple Logo, I have tried to update and restore through ITunes but no use, It stuck up again at Apple Logo with no Error, after restoring ITunes  showes your ipod is restore but still apple logo won't go, Due to new Laptop, I do not have any backup, therefore i have tried to select new Ipod touch and goes through step by step procedure but no use, Please help what to do?

    i tried reseting my ipod today and had a similar problem... it wont be recognized by itunes, the only thing i havent tried is putting it into DFU mode, or the state that it is in when u recieve it telling u to connect it to itunes.i recommend putting it into DFU mode. http://www.youtube.com/watch?v=34v8HMC9B98 this should better explain it. if i find another way, ill keep u updated

  • Trying to access https site with a cert, got "The connection was interrupted" error after 30 seconds of waiting time before clicking on OK. But I can get in by clicking on Try Again button.

    I have a web site running on https. Every users need certificates to get in.
    I found out that if I didn't submit my cert within 30 seconds, Firefox displayed "The connection was interrupted". This problem is repeatable. But if I click on "Try Again" button on the error page, I can get in all the time.
    This problem doesn't happen on IE.
    Can you provide any tips to avoid seeing the error page?

    It is a miracle - After about 9 months without itunes, the new release installed on my machine today and appears to be working.
    7.0.0.70 is the verion I just installed.
    Another note to add to this now resolved issue. I bought an AirPort Express and I was not able to install the Admin software on the CD. I received the same error as I received with iTunes and Quicktime. This leads me to believe that this problem is in the registry or some other installer issue that is specific to Apple installations. I will have to go home and try to re-install that software. Maybe the new iTunes version cleared up the problem.

Maybe you are looking for

  • Are all these players the same thing n

    I just recently bought a Zen Sleek photo and realized it's the exact same thing as my girlfriend's Zen Micro except better looking, more GB, pictures, and color... Whoopie... They have all the exact same features. There is NOTHING different about the

  • Delimited output problem

    Hi , When i am generating reports in delimited format using with matrix stayle design .at the time of writing data into text file i am getting following error. RWRUN60.exe -Application Error The instruction at "0x78002b42"referenced memory at "0x0000

  • Significance of Message header in SAP Enterprise Service

    Hi All, What is the significance of the MessageHeader in an SAP Enterprise Service? regards, Piyush

  • Exchange 2013: Correcting mailbox delegation - Full Access

    Not sure how to correct this issue.  I have an Admin that setup the Exchange 2013.  The admins account is now added to every new account (Resources, shared mailboxes etc.)  I know how to remove the auto mapping so it does not show in the admin OWA an

  • "Windows cannot access specified device . . . " error message

    In Chrome, IE, Mozilla AND desktop mode I keep getting that same error message whenever clicking in the editable fields. It allows me to edit after I acknowledge the error message. I'm running Windows 8.1. Also, in Chrome the PDF shows as a blank scr