Alert or Popup in Modules

Hi,
i'm developing an applicatin who uses Modules. The modules load and unload well and after unload a module, i can see in the profiler, the garbage collection remove the instance. so far so good.
now, i'm using a popup or alert in my modul (for data modification).
I load and unload my module again, without starting the alert or popup and all works fine. but after clicking a button, which triggers an alert, and unload my module again, the module won't remove by garbage collection. my instances in profiler is 1. Doing the same procedure, i generate in profiler two instances but after unload the module, the instance fell down to 1.
So i assume, that flex hold a reference to the alert-window i the first case. the second use the reference from the first. accordingly, the second will be garbage collected.
i'm trying to register the PopupManager in my ApplicationDomain with the follwowing two lines: import mx.managers.PopUpManager;  and privat var popuop:PopupManager. But nothing changes.
What is the right way to use Alerts (or Popups) in modules without references.
Here is my code:
To open my popup with an mxml-component:
PopUpManager.addPopUp(inputMask,Application.application as DisplayObject, true);
and my handler for the close-event of my mxml-component:
PopUpManager.removePopUp( CDBInputMask(event.currentTarget));
inputMask = null;
Thanks in advanced.
Frank

Alex,
thank you again.
I'm trying to get the information as you said:
"moduleInfo's loaded property simply reflects whether it has released its reference.  Any other references will still pin it.  The profiler will show that."
can you give me a hint, how can i get this information.
After pinning my module on memory caused by click on dg, the simpleModule will be shown in the loitering objects and i can see (48) behind it. but it's hard for me to find the references created by frameword or creatd by me.
My flex-version is 3.2.0, imho the latest version.
i read your post and work through, so, before i unload my module by button in mainapplication, i set the focus per "focusManager.setFocus(loadBtn);" away from my module. Also, i placed a dg on my mainApp with a dataProvider. Both won't fix my problem. in my example, there is no styles defined at all.
i think, i haver to get the information from profiler, which reference pin my module inmemory, but i'm unable to locate it at this time.
The unloading works fine until i click on the dg or typing in some letters. Imho, there must be a procedure that will pin the module after getting some buttonDownEvents (or something else). But i'm not so deep in the framework to figure out the procedure for my self.....
Can you give me further information, please.
thank you for your helpful answers. unfortunately i found no solution for my problem.
Frank

Similar Messages

  • Can not alert or popup in module

    I am pretty much new to modular applications so here's my problem.
    I wanna show up a popup window in the module, and I need the window to be modular
    I don't know how to work around this. Do I need popup everything from main application?
    main application code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:ModuleLoader url="TestAlert.swf">
    </s:ModuleLoader>
    </s:Application>
    module code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">
    <fx:Script>
    <![CDATA[
    import mx.controls.Alert;
    protected function button1_clickHandler(event:MouseEvent):void
    // TODO Auto-generated method stub
    Alert.show("hmmmm...","something wrong");//error here
    ]]>
    </fx:Script>
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Button x="176" y="119" label="Button" click="button1_clickHandler(event)"/>
    </s:Module>

    the error I got is:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at mx.managers::PopUpManagerImpl/http://www.adobe.com/2006/flex/mx/internal::createModalWindow()[E:\dev\hero_private\framew orks\projects\framework\src\mx\managers\PopUpManagerImpl.as:701]
         at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\hero_private\frameworks\projects\framewor k\src\mx\managers\PopUpManagerImpl.as:400]
         at mx.managers::PopUpManager$/addPopUp()[E:\dev\hero_private\frameworks\projects\framework\s rc\mx\managers\PopUpManager.as:193]
         at mx.controls::Alert$/show()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\Ale rt.as:618]
         at TestAlert/button1_clickHandler()[/Users/dawn/Documents/workspace/work/dev/sandbox/modulet est/src/TestAlert.mxml:12]
         at TestAlert/___TestAlert_Button1_click()[/Users/dawn/Documents/workspace/work/dev/sandbox/m oduletest/src/TestAlert.mxml:20]

  • Alert subscription data source module encountered errors while running

    Hello All,
    After I configured subscriptions with many monitors, error alerts appear at SCOM(scom 2012 r2) console in active alert page.
    I googled it and found some topics at TechNet but I could not figure it out. Alert description is shown below
    Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts that match the subscription because of database errors.
    The following error(s) were encountered:
    Exception Message: The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.
    One or more workflows were affected by this.
    Workflow name: Subscriptioneaa7b044_b3c1_4198_be71_ffaaf66a163f
    Instance name: Alert Notification Subscription Server
    Instance ID: {E07E3FAB-53BC-BC14-1634-5A6E949F9230}
    Management group: STS
     Any idea?
    Thanks

    As I understand, this issue occurs and remains after I configure a subscription with too many rules and/or monitors( i.e al available rule and/or monitor of a management pack).
    After I had deleted those subscription with many rule/monitor, this issue was resolved. 
    Any idea?

  • Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts that match the subscription because of database errors.

    Hi,    We recently started getting these errors a couple times a day.   There are 12 of them in total.     We also have exactly 12 subscriptions.   Does this indicate some db issue causing all of these
    to fail?
    Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts that match the subscription because of database errors.
    The following error(s) were encountered:
    Exception Message: ExecuteScalar requires an open and available Connection. The connection's current state is closed.
    One or more workflows were affected by this.
    Workflow name: Subscription8b108a3e_4e3d_4fd0_b67e_cbfc21cd10b8
    Instance name: Alert Notification Subscription Server
    Instance ID: {E07E3FAB-53BC-BC14-1634-5A6E949F9230}
    Management group: A Company Management Group
    Thanks Lance

    Hi,
    Do you have hotfixes applied?
    http://blogs.technet.com/kevinholman/archive/2009/01/27/which-hotfixes-should-i-apply.aspx
    Also, I found a relevant thread for your reference.
    Alert subscription data source module encountered errors while running</u1:p>
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/50557249-7f97-4b67-9729-f7088202385b/alert-subscription-data-source-module-encountered-errors-while-running?forum=operationsmanagergeneral</u1:p>
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Alert subscription data source module was unable to find alerts that match the subscription because of database errors.

    We have been seeing this error in the Operations Manager Event Log for quite a while.
    Alert subscription data source module was unable to find alerts that match the subscription because of database errors.
     The following error(s) were encountered:
     Exception Message: ExecuteScalar requires an open and available Connection. The connection's current state is closed.
    One or more workflows were affected by this.  
    Workflow name: MMEA_1348391424 
    Instance name: aaa.bbb.com
    Instance ID: {88AED57C-5627-0C0B-E5C1-A9176A7E64CD} 
    Management group: SCOMr2
    I haven't been able to spot any network outage on the management servers, or the database servers to indicate a problem.  It usually happens at night, and when I look at the health explorer, the entity is healthy.
    Please would someone help me in finding the root cause of this issue and what can be done to avoid it.
    There were no backups running when this alert was generated.  As far as I'm aware, everything was idle.
    I would appreciate any help.
    Karan

     Exception Message: ExecuteScalar requires an open and available Connection. The connection's current state is closed.
    Based on the Error it seems the below for me
    1. Either SCOM is unable to connect to the operationsmanager / operationsmanagerDW for its transactions on subscriptions
    2. Or the SMTP server which your SCOM is using to relay emails has closed the connection.
    So my suggestion would be you check the above for issues.
    Gautam.75801
    There were no network hiccups that I can see.  Minimal disk activity.  I've looked for any signs of database load, and haven't seen anything that jumps out.
    Emails were going through just fine.  These alerts get emailed to me, and if the SMTP server is 'closed' SCOM is usually quite sensitive and alerts about that too.  I've seen it.
    KB

  • Can an image button make an alert box popup?

    So, my first question is: Can a SAVE button that has a button style of IMAGE trigger an alert box to popup?
    If yes, then I have a second question: If I am suppose to use the ONCLICK event, where do I put this code for this type of button? The BUTTON ATTRIBUTES field is greyed out.
    Thank you,
    Maggie

    Maggie:
    You could try the following
    On the 'Edit Button' page
    Set the Target of the button to be URL
    Set the URL Target to be
    javascript:alert('My message');doSubmit('<button name>')varad

  • Sending email and alert notifcation using function module

    Hi All,
    I am trying to send email and alert notification messages using function modules in CRM. I am unable to send mail using 'SO_DOCUMENT_SEND_API1'. Getting a short dump message "dictionary mismatch". If anyone knows any FM which can be used for sending mails, please let me know. I also want to send alert messages using some FM. Please let me know any FM in this case as well.
    All help appreciated. This is urgent and please get back to me soon.
    Thanks
    Deno

    Hi Ranjit,
    Thanks a lot for the reply. I already tried these FMs and getting the error message
    Trigger Location of Runtime Error
        Program                                 SAPLBUPA_INTERFACE_TDTRANS
        Include                                 LBUPA_INTERFACE_TDTRANSTOP
        Row                                     4
    I dont know the reason behind the error. The SO_document_send FM is used inside all these FMs. So It wont work.
    Thanks
    Deno

  • Why alert casting error when module url changed?

    Hi, everyone.
    I occurred a stranger error when click the item in DataGrid
    which is redirected by "ModuleLoader" url.
    Error #1034: Cast Error:Cannot cast
    mx.managers::DragManagerImpl@482f971 to
    mx.managers.IDragManager。
    at mx.managers::DragManager$/get
    impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:152]
    at mx.managers::DragManager$/get
    isDragging()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:18 7]
    at
    mx.controls.listClasses::ListBase/dragScroll()[E:\dev\3.0.x\frameworks\projects\framework \src\mx\controls\listClasses\ListBase.as:7148]
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at <anonymous>()
    at SetIntervalTimer/onTimer()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    Actually I never modify about DragManagerImpl...
    In my main.mxml there is a
    <mx:ModuleLoader id="module"
    url="modules/DeviceRegisterSelectWizardModule.swf"/>
    this ModuleLoader control is to load a new swf module when
    change the url.
    Althought the first loaded module which included DataGrid is
    OK, it popup the error when this module is the second time switched
    by the url...
    The error is the above when click the item in it.
    Actually all cast operation is error as I tried:
    And is there any solution for it? ModuleLoader has such a
    bug?
    Thank you very much.

    Hi,
    Another way to "find" the URL for the oamconsole, that I use if I'm not familiar with the configuration I'm working on is to first log into the Adminserver WL Console, then go to "Deployments".
    Then, find "oamconsole" in the Deployments listed (on the right).
    Click on that, then on the next page, look for the "Testing" tab. Click on the "Testing" tab, which which show the /oamconsole app.
    Click on the "+" to expand the tree, and you should see a bunch of different URLs on the right, e.g., if you have OAM console deployed to managed servers, etc., there'll be different URLs for those, etc., and you can just click on the links to open up OAM Console in your browser.
    Jim

  • Popup Function Module

    Hi all,
    Is there a function module to Display a popup (alv grid)  , when double clicked ona filed,  the grid table containing (two fields) that double clicked field and another message field across it. Please advice.
    Thanks.

    Hi,
    You dont have to build any code for this. It is a standard functionality
    provided by SAP.
    Simply right click on the record & click DETAILS. A popup will appear
    with the details of the records.
    Best regards,
    Prashant

  • How to Use the alert in popup

    Hi all,
    I have created a popup with some fields. Doing mandatory fields validation in the button of popup. Popup is called from the button by using the show popup behavior.
    In the button action method, if the mandatory fields are missing am raising the alert by using the below code:
    FacesMessage msger = null;
    msger =
    new FacesMessage("Inside Validate");
    msger.setSeverity(FacesMessage.SEVERITY_ERROR);
    FacesContext.getCurrentInstance().addMessage(null, msger);
    It is showing the alert. But it closes the popup. My requirement is should not close the popup when the alert is showing.pls guide me in this.
    Regards
    C.Karukkuvel
    Edited by: C.Karukkuvel on Dec 27, 2010 3:57 AM

    Hi,
    For ur Case u need to open and close the popup programatically.....
    Open Popup : Open Popup Programmatically
    Close Popup : how to close a popup by backing bean?
    Remove the show poupbehaviour
    Define popup type as none and inside the buttonbar facet of the dialog have ok cancel buttons... In the buttons have the closing logic of the popup after ur validations gets passed
    Regards,
    Suganth.G

  • Alert Control Popup Message is blank

    Hi,
    I am using Alert control to display a popup message. For some reason message is blank and the label for Ok button is also blank. Popup does come up
    with a blank button. If you click on button then it does go away as it should. Any suggestions?
    Thanks in advance!

    Hi JK2075,
    The Alert should be Alert.show and not just Alert....and also import the namespace as well..
    import mx.controls.Alert;
    Alert.show("test","test");
    Thanks,
    Bhasker

  • How do I disable the new alert message popups that darken the whole webpage and are completely intrusive?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/811301]</blockquote><br>
    Whenever a website or javascript pops up an alert message, Firefox4 now completely greys out the site. How do I turn this retarded feature off? Also how do I get my status bar at the bottom of the window back? Another retarded design decision.

    You can look at the pref <b> prompts.tab_modal.enabled</b> to false on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • Forms popup help - module implementation name must equal module short name.

    I don't know if this was blatanly obvious, or if it has been already stated, but just in case it wasn't, I'll state it here.
    Here is something that I noticed while trying to make the help system work. I found that the module's short name is stored in the CG_FORM_HELP (or any alternative name that one may use) table. However, when the form is generated, the key-help trigger sends the module's implementation name (only on property palette) to the procedure which calls the help form. I had modules with short names differing from the implementation name, and was forced to change the implementation name to match the short name in order to make the help system work correctly.
    If anyone has problems with the user/help text from their modules, module components, and items not displaying (and maybe just the user/help text from the base tables showing up), then you may want to look into this.

    I forgot to state that I was using Designer 6.0 Patchset 4 (6.0.3.8).

  • Trying to use Alert.show in module- possible?

    I have some user data that I have to validate before
    submitting it to a db and so I was planning on popping up an
    Alert.show to ask them if they are sure in the usual fashion.
    Button click event points to function that should show the Alert.
    debug shows that function gets entered, but Alert does not show. no
    error, just no Alert. code and controls are in a module that's
    loaded into main application based on user input. Is this the
    problem? Should I be using a popup window instead of Alert? Thanks
    in advance.
    Andy C.(never #)

    First, thanks for the reply:
    I can't browse outside from my windows box( well I can but
    they can see what I'm doing), so I can paraphrase.
    <mx:Button label="Add Button" id="btnAddUser"
    click="doAddUser(event)" />
    <mx:Script>
    <![CDATA[
    import mx.everything and its brother;
    private function doAddUser(event:Event):void
    var alrtmsg:String="Are you sure you want to add this data
    to the database?";
    var alrtttl:String="Confirm User Add";
    Alert.show(alrtmsg,alrtttl, Alert.YES | Alert.NO, this,
    alertClickHandler);
    private function alertClickHandler(event:CloseEvent):void
    if(event.detail==Alert.YES)
    rest of code does validation
    ]]>
    </mx:Script>
    This is pretty much straight out of the help screens. Now
    this is in a module that's loaded into the main application.
    Everything else works as I expect it to, but I can't get the Alert
    to popup. And obviously, since I'm validating user input I have to
    have a way to show them when they forgot to put something in.
    Thanks

  • Popup manager problem

    Hi,
            I am  loading the module in my main application. If i press the button in the loaded module, the current module will be unloaded and the popup browser window will be opened. In which i am using  some other application to load the module which was recently unloaded  in the main application.
    If i use the alert.show("") in the module opened in the popup browser window i am getting following errror
    TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::PopUpManagerImpl@54769861 to mx.managers.IPopUpManager.
    But the same alert.show in the  module is working while loading in the main application .
    Regards,
    Thiru

    Try adding this to the main application:
    <mx:Script>
    <![CDATA[
         import mx.controls.Alert; Alert;
         import mx.managers.PopUpManager; PopUpManager;
    ]]>
    </mx:Script>
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for

  • CONTROL FILE RECOVERY

    HI CAN anyone tell me how can i perform recovery if all my control files get lost,and i have cold backup datafiles and control files of last week. so pls suggest me how recovery will be performed i.e datfile header is showing me scn 102346 and contro

  • Way to listen for change in JTable cell?

    I am having troubles trying to catch a key event while the user is entering text inside a given JTable cell (x/y location). The JTable only seems to manage String objects in it's cells so I can't place a JTextField in there with a KeyListener on it.

  • Not viewing links/coding issue

    I used iweb08 to design a website. It always displayed fine in any web browser (ie safari or explorer etc) and a Mac or a PC could view it. When I upgraded to iweb09 only PCs seem to be able to view the links on top of the home page and Macs cannot v

  • CcBPM problems

    Hello Everybody, I have a problem, at this moment i don't know how to solve it. The problem is the next. there is an interface between SAP ECC and legacy system, this interface had an Integration Process (ccBPM). How does it work?, well, by means JDB

  • Reports 2.5 Printing in sequence

    I have 4 reports that need to run in sequence. They all have common parameter which need to get passed from one report to another. I have a customer who has multiple projects. If I run the report for a customer what has to happen is report one need t