Unloading Module Closing Multiple Custom Panels

I have a requirement where in  same screen can be openned N times, i have written a custom panel (module loader inside it) with a close buttonn, to load the same module multiple times. The problem is when i close one panel all the panels are closed. The reason it is closing all the panels is i have included the removeChild inside unload tag of the module loader.
I tried changing the "ml.unloadModule();" to "parent.removeChild(this);" then i acheive what is needed close only the panel that is closed, but the module it not unloaded. Is there any way i can acheive closing only a single panel (this is closed) and unload the module. 
Below is the custom panel code:
<?xml version="1.0" encoding="utf-8"?>
<s:Panel 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="436" height="340">
          <fx:Script>
                    <![CDATA[
                              [Bindable]public var url:String;
                              protected function button1_clickHandler(event:MouseEvent):void
                                        // TODO Auto-generated method stub
                                        ml.unloadModule();
                    ]]>
          </fx:Script>
          <fx:Declarations>
                    <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:ModuleLoader x="10" y="9" id="ml" url="{url}" width="404" height="277">
                    <s:unload>
                              if(parent != null)
                              parent.removeChild(this);
                    </s:unload>
          </s:ModuleLoader>
          <s:Button x="411" y="-23" width="17" height="16" label="Button"
                                click="button1_clickHandler(event)" icon="assets/icon_close_down.png"/>
</s:Panel>

Instead of using an unload handler, just call both unloadModule and removeChild in the click handler.

Similar Messages

  • If FF is set to "Never Remember History" and I try to close it with multiple tabs open, it doesn't warn me first. If it remembers history, it warns me about closing multiple tabs. I want that warning AND Don't Remember History back again!

    At work I set my PC to not remember history for privacy reasons.
    I always have many tabs open, and the warning about closing multiple tabs was a good thing - but now it only works if it remembers history!
    I have the "Warn me when closing...." box checked AND all of the lines in about:config regarding these warnings are set to true. I have tried turning it off and back on, restarted the PC.
    I discovered this yesterday with FF 3.something, tried updating to FF4.

    The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
    Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
    "Never Remember History" means that Private Browsing is active and "Always use private browsing mode" gets a checkmark.
    You need to remove the checkmark on "Always use private browsing mode" to leave Private Browsing mode or chose the "Remember History" setting.
    *https://support.mozilla.org/kb/Private+Browsing

  • How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    It would seem if your choose "Show my windows and tabs from last time" '''''and''''',
    *when you last closed Firefox, you had no web site open (just a blank tab), that it would open just that blank tab
    *when you last closed Firefox, you had one or more tabs/web site open, that would allow you to "Restore Previous Session"
    #Have you tried that?
    #If so, what is happening in each circumstance when you reopen Firefox?
    '''Restore Previous Session'''<br />
    Open tabs are automatically saved when closing Firefox beginning in Firefox 4. To open your last session, after Firefox starts, click History > Restore Previous Session. For this to work
    #You must be remembering history (Options > Privacy > Remember my browsing history).
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    #You must not be using Private Browsing or permanent Private Browsing
    #*See [https://support.mozilla.com/en-US/kb/Private%20Browsing Private Browsing]
    #You must not use Clear Recent History or Clear history when Firefox closes
    #*See [https://support.mozilla.com/en-US/kb/Clear%20Recent%20History Clear Recent History]
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • Nested Menus Not Appearing in a Custom Panel Fly-out Menu

    I tried to create a menu for a custom panel, using the example which David Clark graciously pointed out to me:
    http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/programmers_guide/cus tomizing_the_ui.htm
    However, the nested menu items do not appear. I only see Item 1 and Item 2 (and the separator and Item 3), but not Item 2-1. I was expecting to see Item 2-1 nested under Item 2.
    I used the menu structure provided in the example (note that there is an error in the example - one of the closing tags is incorrectly specified as "<MenuItem/>" instead of "</MenuItem>"). Below is the corrected XML and my code:
    protected function createMenu():void
       var xmlMenu:XML =
        <Menu>
          <MenuItem Id="item_1" Label="Item 1"/>
          <MenuItem Label="Item 2">
            <MenuItem Label="Item 2-1"/>
          </MenuItem>
          <MenuItem Label="---"/>
          <MenuItem Label="Item 3"/>
         </Menu>;
        CSXSInterface.instance.addEventListener(MenuClickEvent.FLYOUT_MENU_CLICK, menuClickHandler);
        var menuAdded:SyncRequestResult = CSXSInterface.getInstance().setPanelMenu(xmlMenu);
        if (SyncRequestResult.COMPLETE != menuAdded.status)
         trace("Unable to add menu");
       public function menuClickHandler(event:MenuClickEvent):void
           switch (event.menuName) //you can also use the menuId
        case "Item 1":
        trace("Item 1 has been clicked");
        break;
        default:
        trace("clicked " + event.menuName);
    I'd appreciate it if somebody could tell me what I'm doing wrong.
    TIA,
    mlavie

    Hi Bob,
    Any news? BTW - the example should be corrected - there is a tag incorrectly closed.
    Regards,
    mlavie

  • Multiple Order Panels as JInternalFrames in one Form as a JDesktopPane

    I have a JClient application which consists of a form(JFrame) which opens a JDesktopPane. Within this desktop pane the user may open different panels(as JInternalFrames), one of them being a panel to create a new order. I want to have the ability for a user to create multiple order panels for different orders within the same desktop pane/form. The order panel consists of mainly 2 lookup views for customer and item information and 2 editable views for the order header and order details. While I can open multiple order panels, each with a unique binding container (ie. a uniquely named UIModel), within the desktop pane all of the open panels edit the same order. How can I modify my code to allow a user to create/edit multiple order instances using this order panel?

    Hi,
    did you have a look at
    http://www.oracle.com/technology/products/jdev/howtos/10g/jcmultiform/index.html
    the section "Data Binding in a Concurrent-Forms Use Case" describes what you are trying to achieve
    Frank

  • How to open multiple collapsible panels?

    http://labs.adobe.com/technologies/spry/samples/collapsiblepanel/collapsible_panel_sample. htm
    This "Open Panel with Link" sample opens only one panel, but
    I'd like to open multiple collapsible panels at the same time with
    one button/link click.
    I'm trying to use a class name "Collapsible Panel" instead of
    the id name "cp1, cp2,cp3,cp4, ....", but I'm stuck on how to
    open/close by class name.
    If anyone knows how to do it, I'm appreciated to hear it.
    Thanks,
    (^_^)/

    I'm not sure if this is what you're going for, but here is an
    example of using a text link to open multiple collapsible panels:
    <a href="javascript:;"
    onclick="CollapsiblePanel1.open();CollapsiblePanel8.open();">Click
    to open</a>
    <a href="javascript:;"
    onclick="CollapsiblePanel1.close();CollapsiblePanel8.close();">Click
    to close</a>
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab">Standard Collapsible
    Panel</div>
    <div class="CollapsiblePanelContent">
    <p>Default CSS class .CollapsiblePanel width set to
    300px. Since all Panels on this page use the same CSS, it
    affects all Panels on the page.</p>
    <p>Custom classes can be used to customize individual
    Panels. </p>
    </div>
    </div>
    <div id="CollapsiblePanel8" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab">Standard Collapsible
    Panel</div>
    <div class="CollapsiblePanelContent">
    <p>Default CSS class .CollapsiblePanel width set to
    300px. Since all Panels on this page use the same CSS,
    it affects all Panels on the page.</p>
    <p>Custom classes can be used to customize individual
    Panels. </p>
    </div>
    </div>
    <script type="text/javascript">
    <!--
    var CollapsiblePanel1 = new
    Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    var CollapsiblePanel8 = new
    Spry.Widget.CollapsiblePanel("CollapsiblePanel8");
    </script>

  • Firefox 21.0 doesn't warn when closing multiple tabs

    I have a Mac OS X, version 10.6.8. I'm using Firefox 21.0. I have the box checked to warn me when closing multiple tabs. It does not. Why? Is there anything I can do to make it work correctly? Any information I've been able to find on the internet is for other versions of Firefox and is of no help to me.

    PROBLEM: Windows FF 21.0 warns when closing multiple tabs when ONE occurance of FF is open, but NOT when mutlipe windows are open (then it only warns once I'm down to 1 window open).
    I would like a warning for ALL windows' multiple tabs. I know this is possible because that has always been the case until approx. the latest update.
    Oddly enough, the only thing close I found is a post from 2011 with the exact opposite problem: warning only when multiple windows are open, but not when 1 window is open.)
    SUMMARY attempts gleaned and compiled from the various posts (with no effect):
    - at General tab, "Show my home page" is selected ("Show my windows and tabs from last time" is NOT selected)
    -at Tabs tab, "Warn me when closing multiple tabs" is selected
    - at Privacy tab, "Use custom settings for history" is selected along with "Always use private browsing mode" (is selected); however, this has always been my setting, and I've always received warnings in multiple windows until recently
    - staring in Safe mode had no effect
    - my about:config boolean settings are appropriately set to true/false
    - I've tried restarting Firefox multiple times and restarting the computer; I have not re-installed FF nor restarted from fresh, wiping out all settings because I have so many customizations.
    Any other thoughts of what I might try?

  • XML Custom Panels: Samples With Doc are Not Well Formed XML

    The custom panel samples in the XMP Custom Panels document (and the accompanying sample file) is not well formed XML (which means that CS3 can't be parsing the file as XML, which would explain how this error made it publication). In particular, the XML declaration is missing the closing "?".
    <br />
    <br />As published it is:
    <br />
    <br /><?xml version="1.0"?>
    <br />
    <br />It should be:
    <br />
    <br /><?xml version="1.0"?>
    <br />
    <br />Note the "?&gt;" rather than "&gt;".
    <br />
    <br />This is in addition to the DOCTYPE SYSTEM URL not resolving to an actual DTD declaration set (which would be:
    <br />
    <br />
    <br /> title CDATA #REQUIRED
    <br /> type NMTOKEN #REQUIRED
    <br />&gt;
    <br />
    <br />Cheers,
    <br />
    <br />Eliot

    You'll have to do something to prevent your logger from appending to old logs that have been closed. Sorry if that is not very helpful, but I'm not familiar with the logging features in SDK 1.4. For your interest, though, Log4J (which you can get from Apache) also features XML logging, and it solved that rather obvious problem thus:
    "The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file."
    In other words, you would have to wrap the output in an XML header and a root node to be able to use it, which is not difficult to do.

  • Unloading modules in ubuntu

    Hi,
    How can I unload modules in ubunt (e.g., graphics module, keyboard, USB etc)?

    umairalipathan, please post questions about Ubuntu on their forums: http://ubuntuforums.org
    Also see: https://wiki.archlinux.org/index.php/Fo … ow_to_Post
    Closing.

  • How can I find my custom panel in CS5 using java script

    -I made an empty panel using Adobe Configurator 2 and then exported it to /Panels folder.
    -My custom panel is now in photoshop and works.
    -I added a simple code to onPanelInit():
    function onPanelInit()
        var myWindow = new Window ("dialog");
        var myMessage = myWindow.add ("statictext");
        myMessage.text = "Hello, world!";
        myWindow.show ( );
    so far so good.
    Now instead of creating a new window like I did above, I want to use the new custom panel and add a text to it.
    The problem is, how do I do that in java? Where can I find the panel that I should assign the text to?
    I know that you can add the text in Configurator, or you can edit the .xml file and add the button there, but my
    plan is to create a panel where i can add and remove buttons dynamically and that's why I have to do that in java.
    Any help would be appreciated!
    Cheers,
    Petri J

    Use Runtime.exec() to run a OS specific command which retrieves OS specific info.
    Or use JNI to access a OS specific API which returns the info you want.

  • Can you assign multiple customer masters to one Business Partner in R/3?

    We are trying to configure SAP Business Partners in ECC5.0 but it seems the relationship between a business partner and a customer master is one-to-one so a business partenr cannot have multiple customers (table BD001 only allows for a single entry).  Does anyone know if it's possible to assign multiple customer masters to one business partner?  If so, is there any documentation available?
    Many thanks.

    We are trying to configure SAP Business Partners in ECC5.0 but it seems the relationship between a business partner and a customer master is one-to-one so a business partenr cannot have multiple customers (table BD001 only allows for a single entry).  Does anyone know if it's possible to assign multiple customer masters to one business partner?  If so, is there any documentation available?
    Many thanks.

  • How to create a custom panel in the right way (without having an empty panel in the file info) ?

    Hi Everyone
    My name is Daté.
    I'm working in the fashion industry as a designer and Design consultant to help fashion brands improving the design workflow by using Adobe softwares and especially Illustrator.
    I'm not a developper, but i'm very interested about the possibility to introduce xmp technology to provide more DAM workflows in the fashion industry.
    Fashion designers produce a lot of graphical objects in illustrator or Photoshop. Unfortunately they are faced to a big challenge which is about how to manage, search, classify and get this files faster. Of course PDM system or PLM system are used in the Fashion industry to manage data, but for many companies, implemanting this kind of database is very complex.
    When i look at what you can do with xmp, it seems to be an interesting way of managing design files, then i started to follow Adobe instruction to try to build a custom panel.
    The main idea is to (Theory) :
    create custom panels used by fashion designers to classify their design files.
    Use Adobe Bridge to search files, create smart collection to make basic reports in pdf and slideshows
    Find someone to make a script able to export metadata in xml files
    Use indesign and the xml file to generate automatically catalogues or technical sheets based on xmp values
    I have created a custom panel by using the generic panel provided by Adobe and i have modified the fields to feet with the terms used in the fashion industry and it works well.
    But unfortunately, when i try to create my own custom panel from scratch with Flashbuilder (4.6) and the Adobe CSExtensionBuilder_2 (Trial version), it doesn't work!
    Here is the process :
    I have installed flashbuilder 4.6
    I have download the XMP Fileinfo SDK 5.1 and placed the com.adobe.xmp.sdk.fileinfo_fb4_1.1.0.jar in C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\eclipse\plugins
    In Flashbuilder, i have created a new project and select xmp Custom panel
    The new project is created in flashbuilder with a field with A BASIC Description Field
    To generate the panel, right click the project folder and select xmp / Publish Custom Panel
    The panel is automatically generated in the following folder : C:\Users\AppData\Roaming\Adobe\XMP\custom file info panels\3.0\panels
      Go to illustrator, Open the file Info
    The panel appears empty
    The others panel are also empty
    The panel is created and automatically placed in the right folder, but when you open it in Illustrator by selecting the File Info option in the File Menu, this custom panel appears empty!!! (only the title of the tab is displayed). This panel also prevent the other panels to be displayed.
    When you delete this custom panels from the folder C:\Users\AppData\Roaming\Adobe\XMP\custom file info panels\3.0\panels and go back to the File Info, the other panels display their content properly.
    I also try to use the plugin XMP Namespace designer to create my own namespace. this plugin is also able to generate a custom panel, but this one also appears empty in AI or Photoshop.
    I try to follow the process described in Adobe xmp documentation many times, but it didn't works.
    It seems that many peaople have this issue, but i dodn't find a solution in the forum.
    I try to create a trust file (cfg), but it didn't work.
    It would be so kind if you can help me to understand why i can't create a custom panel normally and how to do it in the right way.
    Thanks a lot for your help,
    Best regards,
    Daté 

    Hi Sunil,
    After many trial, i realize the problem was not coming from the trust file, but from the way i have created the custom panel.
    There is 2 different ways, the first described below is not working whereas the second is fine :
    METHOD 1 :
    I have downloaded the XMP-Fileinfo-SDK-CS6
    In the XMP-Fileinfo-SDK-CS6 folder, i copied the com.adobe.xmp.sdk.fileinfo_fb4x_1.2.0.jar plugin from the Tools folder and i pasted it in the plugind folder of Flashbuilder 4.6
    The plugin install an XMP project
    In Flashbuilder 4.6 i have created a new project (File / New /Project /XMP/XMP Custom Panel)
    A new xmp project is created in flashbuilder.
    You can publish this project by right clicking the root folder and selecting XMP / Publish Custom Panel
    The custom file info panel is automatically published in the right location which is on Mac : /Users/UserName/Library/Application Support/Adobe/XMP/Custom File Info Panels/3.0 or /Users/UserName/Library/Application Support/Adobe/XMP/Custom File Info Panels/4.0
    Despite the publication of the custom file info panel and the creation of a trust file in the following location : "/Library/Application Support/Macromedia/FlashPlayerTrust", the panel is blank in Illustrator.
    I try this way several times, with no good results.
    METHOD 2 :
    I have installed Adobe CSExtensionBuilder 2.1 in Flash Builder
    In FlashBuilder i have created a new project (File / New /Project /Adobe Creative Suite Extension Builder/XMP Fileinfo Panel Project)
    As the system display a warning about the version of the sdk to use to create correctly a custom file info, I changed the sdk to sdk3.5A
    The warning message is : "XMP FileInfo Panel Projects must be built with Flex 3.3, 3.4 or 3.5 SDK. Building with Flex 4.6.0 SDK may result in runtime errors"
    When i publish this File info panel project (right click the root folder and select Run as / Adobe illustrator), the panel is published correctly.
    The last step is to create the trust file to display the fields in the panel and everything is working fine in Illustrator.
    The second method seems to be the right way.
    For sure something is missing in the first method, and i don't understand the difference between the XMP Custom Panel Project and the XMP Fileinfo Panel Project. Maybe you can explain it to me.
    So what is the best solution ? the right sdk to use acording to the creative suite (the system asks to use 3.3 or 3.5 sdk for custom panels, so why ?)
    I'm agree with Pedro, a step by step tutorial about this will help a lot of peaople, because it's not so easy to understand!!!
    Sunil, as you belong to the staff team, can you tell me if there is  :
    A plugin or a software capable to extract the XMP from llustrator files to generate XML workflows in Indesign to create catalogues
    A plugin to allow indesign to get custom XMP in live caption
    A plugin to allow Bridge to get custom XMP in the Outputmode to make pdf or web galeries from a smart collection
    How can you print the XMP data with the thumbnail of the file ?
    Thanks a lot for your reply.
    Best Regards
    Daté

  • Even after enabling "Warn me when closing multiple tabs", firefox closes without any warning even if multiple tabs are open.

    I recently installed Firefox 4.0 and in the options, under the section "Tabs", I have enabled "Warn me when closing multiple tabs". But if I have multiple tabs opened with websites loaded in them, and then try to close the browser, it simply closes. No warnings are shown (which was there in previous versions). Couple of times I clicked on the close button of browser and then realized that I had some important sites opened in different tabs, which I lost as it didn't warn me. Can you please let me know whether this is a bug or a mistake from my side?

    I'm sure you are using Private Browsing mode in Firefox 4. I have also the same problem and I tried to uncheck this option after many times accessing about:config\browser.warnOnquit. And it's wonderful, the warning cameback. I think it's a bug about Private Browsing mode. Hope Mozilla's Developers will fix it.

  • When closing firefox 4.0 with multiple tabs open, i wish to save this setup when i reopen firefox. the option to save my setup is now not in the prompt. only that i'm closing multiple tabs. how do i do this?

    in the older version of firefox, you were prompted when you were closing multiple tabs. but you were also given the option of saving the current setup so that when you reopened firefox, this current setup would reopen also. how do i make this happen with firefox 4.0?since i updated to firefox 4.0, there is no obtion given to save my current setup.

    You can change Firefox preferences so that you also get the option to save the current tabs when quiting:<BR><BR>
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message about being careful and you will see a list of settings.
    # Type '''browser.showQuitWarning''' into the ''Filter'' box at the top.
    # If its value is ''false'', double-click on it to change it to ''true''.

  • How Can I Create a Custom Panel With the InDesign ToolBar's Look and Feel

    I am trying to create a custom panel that looks as close as possible to InDesign's native floating menu bar (with the Frame, Text, etc, icons on it). ToggleBarButtons doesn't look like, although it does contain the functinoality of the button which is pressed stayting pressed.
    Any ideas?
    TIA,
    mlavie

    Hi mlavie,
    I found a nice post on this topic at:
    http://blog.flexexamples.com/2007/08/20/creating-toggle-and-emphasized-button-controls-in- flex/
    Hope this helps!
    Thanks,
    Ole

Maybe you are looking for

  • Advanced Dock Problems

    Received an Advanced Dock 250310U (IBM logo)    http://www.thinkwiki.org/wiki/ThinkPad_Advanced_Dock I apologize if this isn't posted in the right place. Don't believe I've ever posted here before. Since this Dock is specific to these models, I thoug

  • Nokia Asha 303 - Video camera

    the video camera does not works and the phone restarts , please give an idea to bring my mobile to normal. Moderator's note: post is edited as it mentioned about an illegal tool to update/modify software.

  • Material cost estimation in COPA

    Hello  Everyone I have question regarding how details of cost Estimate will flow to COPA Report. Variance of Product cost will flow in COPA through PA Transfer Structure and its flowing on my report.  However, I want to flow COGM (break up of the cos

  • Safari will not load

    I was using 3.0.? never saw the update when I ran software up dates so I DL safari from apple.com when I ran the DMG image, everything went well,said "installation succesful" computer needs to restart, after restarting the old version was there, the

  • Can't find a self created group during add group in reporting

    The Operations manager that i am using si 2012. First let me describe what I have done. In "Authoring", I have created a new group and added two object which is a Windows server 2012 into the group. Then, I tried to use the Windows Server 2012 report