Persistent ScriptUI Dialogs that can be shown several times.

Hi all,
I love ScriptUI and all its possibilities. But every time I try something new I fail for at least some days
Here is my newest conundrum: I try to do something that involves selecting a menu item along the road. Assembling all menu items in a tree view takes up to 20 seconds so I would like to build that dialog only once and call it repeatedly from the main dialog.
The test setup illustrates the problem:
var w = new Window("dialog");
var d = new Window("dialog");
d.closeDlg = d.add("button", undefined, "Close Dialog");
d.closeDlg.onClick = function () {
     d.hide();
w.openDlg = w.add("button", undefined, "Open Dialog");
w.cancelElement = w.add("button", undefined, "Cancel");
w.openDlg.onClick = function () {
     d.show();
w.show();
The first click on "Open Dialog" looks as it should. But when you cancel d and click again, the sub dialog contains nothing and is off the screen.
I can correct the latter (d.center() before d.show() ), but not the former.
Help says "When a window or container is hidden, its children are also hidden, but when it is shown again, the children retain their own visibility states."
I tried to show the children in a d.onShow() function but so far with no success.
So my question is (thank you for reading this far):
Can this be done? Can I build a complicated dialog once and call it several times from a different dialog?
The only other option I can think of is to build an ugly super-dialog that contains all the controls of the main and of the sub dialog. bah.
Thank you
Gerald

Duh...
Peter I feel stupid. Of course. Thank you for pointing that out to me
I updated the zip in the mentioned post, in case anyone's interested.
Harbs, I save a lot of details in the list items themselves instead of maintaining an additional array. So removing all listitems would mean I lose e.g. the info which menu item is applied to which script.
So rebuilding the list would mean quite some changing of my datamodels. I will keep that in mind for future projects, though. Thank you
Gerald

Similar Messages

  • I am new to pages and want to know how to link elements together to create one unified element that I can then duplicate several times on the same page?

    I am new to pages and want to know how to link elements together to create one unified element that I can then duplicate several times on the same page?

    I think you are talking about grouping objects.
    1. They must all be floating objects
    2. Command click on each in turn
    Menu > Arrange > Group
    Peter

  • Iphoto, pictures are shown several times in an event.

    What's happening if the same picture in iphoto is shown twice or more in an event? Are these pictures saved on the hard disk more than one time or are they just in this event shown several times. Is it sufficient if I'm blind out the double? Thanks

    I found one work-around, but I hope there's an easier way:
    1) Right clip on the corrupted clip, and select "reveal in finder",
    2) Duplicate the clip and drag the duplicate to the desktop
    3) Select File->Import->Movies...
    4) Navigate to the clip on the desktop, select "Add to existing event", select event, and click "Import"
    5) The clip will be inserted in the original event, just before the corrupted clip
    Eric

  • I want to delete xmarks, the most obnoxious add-on ever that crashes my computer several times a day

    I want to get rid of xmarks sync. It is the most obnoxious, intrusive add-on ever and crashes my internet connection several times a day. I have followed the instructions on your helpdesk, but nothing works. It never fully loaded and refuses to give up. I want it out of my life forever.

    In order to uninstall a possibly unwanted extension, please do the following:
    #From the Firefox window click the Firefox button at the top left and select ''Add-ons'', or, if the Firefox button is not shown, click the ''Tools'' menu and click ''Add-ons''.
    #Once the Add-on Manager has opened in a new tab, click the ''Extensions'' button on the left side of the window.
    #You should now see a list of your installed extensions on the right side together with buttons on the right side of each extension.
    #To remove an extension from Firefox, simply click the ''Remove'' button. You should see a message that informs you about the successful removal of the add-on.
    #Note that some add-ons require a Firefox restart to be removed completely. To perform a Firefox restart after the add-on removal, click the ''Restart now'' link in the message.
    You can find further information about uninstalling extensions in the following articles:
    [[Disable or remove Add-ons]]
    [[Remove a toolbar that has taken over your Firefox search or home page]]

  • Can I have several Time Machines in Mavericks?

    I have several boot partitions over several disks. Am I allowed to have more than one Time Machine partition - each backing up different drives?
    The same question was ever asked against Snow Leopard here, and the answer was no, "You can't have more than one Time Machine destination disk active at any one time."
    Is it still the same limit today for Mavericks?
    I have 1 x SSD and 3 x HDD, I just want to use one 1TB HD to back up the 500GB SSD, and the 4TB HD to back up the 2TB HD.
    Possible please?
    Thanks heaps in advance.

    Called Apple Care Support and confirmed that only one Time Machine backup can be active, in other words, only one destination drive can used to perform Time Machine backup automatically.
    Therefore I had to hoose the largest internal HD (4 TB) to back up all other drives (total 2.5 TB).
    Barney-15E wrote:
    I don't think this was the question you were asking, but you can have multiple backup drives, now, but they are just redundant backups, not different backups.

  • Can I have several Time Machines?

    I have several boot partitions over several disks. Am I allowed to have more than one Time Machine partition - each backing up different drives?
    Looks like I can, but I thought I'd check.

    Thank you for your suggestion. It's the second time for me that Carbon Copy Cloner was suggested, will give it a try anyway.
    sanjampet wrote:
    I would also consider having a clone back up drive (drives are cheap, data is not), and set it to back up the entire HDD.
    something like this:
    http://www.bombich.com/
    http://download.cnet.com/SuperDuper/3000-2242_4-46651.html
    I have a redundant backup in addition to Time Machine, (what if my only drive falls off the table and breaks)
    Plus clones are BOOTABLE, which means you can boot from them...big plus and something to consider

  • 0MATERIAL & 0CUSTOMER shown several times

    Hi All,
    This is probably a stupid question, but I can't think of why...
    Under InfoObjects we have, for example, 0MATERIAL & 0CUSTOMER displayed many, many times...but under different InfoAreas. 
    Just some background, we have multiple R/3 systems feeding 1 BW system and have to compound objects like 0MATERIAL & 0CUSTOMER.  But how can you have these objects displayed many, many times under different InfoAreas?
    I'm sure I'm missing something obvisous.
    Cheers,
    Mike

    Hi dear!
    Don't worry: what you see is a simple metadata representation..in other words, the object (DB tables and other physical objects) is always the same and you can do your change where you prefer !!!
    http://help.sap.com/saphelp_nw04/helpdata/en/36/38277d1dbd4a6de10000009b38f982/content.htm
    Hope it helps!
    Bye,
    Roberto

  • Is there a limit to custom views that can be created on a list?

    As the title says, is there a limit to the number of custom views that can be created on a SharePoint list?  I did a few online searches and someone mentioned 50, but one of my list already has more then 50 custom views so I'd like to know what the
    true limit is.
    Anyone know?

    The only hard limit is to the number of views that can be shown in the drop down on the UI which is 50 (first 50 actually). I would agree with the assessment made here that the actual limit might be hypothetical but it all comes down to the performance in
    rendering and retrieving these views.
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/8a0f9d4a-626a-4a54-916a-a1e347835c5e/what-is-the-limit-if-there-is-one-on-the-amount-of-views-that-can-be-on-a-single-sharepoint-list?forum=sharepointgeneralprevious
    I would suggest re looking at your approach to address the requirement by creating these many views and whether something else (dynamic pages, metadata navigation, term navigation, content search web parts etc.) can address the actual requirement
    and in process actually improve page performance.
    Thanks, Ransher Singh, MCP, MCTS | Click Vote As Helpful if you think that post is helpful in responding your question click Mark As Answer, if you think that this is your answer for your question.

  • Running several times an application

    hi, I am beginner in JAVA programming.
    I have done a main class with methods using variables. On the other hand I have an interface vers the application's user can change those variables. How can I run several times my main class, each time the user changes a variable?
    Thanks for your help and hello to everybody from the bourbon Island !(Reunion Island)

    Hmm , you usually don't call your main-method multiple times...
    Could you post your code, that should make thing more clear...

  • My iPod shows the artist names several times.

    Now you probably think that this is one of the same old questions which have been asked a lot of times. But it isn't.
    When selecting artist on my new Fifth Generation iPod, many artists are shown severeal times, from 3-10 times infact!
    And yes, I have checked the spelling, in iTunes, I've selected all the songs of one artist, and written the name.
    And in iTunes, the artist is shown only once. But on my iPod there are several of them. And the songs are not divided equally in each part, each copy of the artist contains the excat amount of albums and songs as all the other, but still, these extra songs are not marked as more songs "on" my iPod.
    Does anyone know what the problem is?
    iPod Fifth Generation (Video)   Windows XP  

    I have noticed this on two occasions with just 2 entries listed twice on the Ipod. I am not sure what the problem is. Both times the spelling looked the same.
    I managed to get rid of the problem by copying the name from one of the albums then pasting it in artist and album artist for the other album. When I updated the ipod it was now under one heading.
    I hope this helps.

  • Linux VM KVP IP can't be shown on Hyper-V Manager after querying its KVP/IP information on Hyper-V host several times

    Hello
    [Sorry for asking the same question in the wrong place/forum of "Hyper-V"]
    I am using a CentOS 6.5 VM (Linux kernel 2.6.32-431) and (generation 2) CentOS 7 VM (Linux
    kernel 3.10.0-123) with Hyper-V KVP daemon installed,
    and I periodically query its IP (via using WMI or Powershell to query its KVP information) to manage it.
    However, after querying its IP (KVP) for several times, its IP can’t
    be queried or shown on Hyper-V Manager anymore (Windows VM is ok without this problem).
    And here is the vmIntegrationService status of my CentOS 7 VM for the references.
    PS C:\Users\Administrator> (Get-VM -name G2_CentOS7).vmIntegrationService
    VMName     Name                    Enabled PrimaryStatusDescription SecondaryStatusDescription
    G2_CentOS7 Time Synchronization    True    OK
    G2_CentOS7 Heartbeat               True    OK
    G2_CentOS7 Key-Value Pair Exchange True    OK                       The protocol version of the component installed ...
    G2_CentOS7 Shutdown                True    OK
    G2_CentOS7 VSS                     True    No Contact
    G2_CentOS7 Guest Service Interface False   OK
    I attached a simple KVP query Powershell script as
    the follows, and this problem can be reproduced in couple minutes if you run two instances with this script at the same time.
    $VMName = $args[0]
    write-host "$VMName"
    filter Import-CimXml
    $CimXml = [Xml]$_
    $CimObj = New-Object -TypeName System.Object
    foreach ($CimProperty in $CimXml.SelectNodes("/INSTANCE/PROPERTY"))
    if ($CimProperty.Name -eq "Name" -or $CimProperty.Name -eq "Data")
    $CimObj | Add-Member -MemberType NoteProperty -Name $CimProperty.NAME -Value $CimProperty.VALUE
    $CimObj
    $CimObj = $null
    for ($i=1 ; $i -le 10000 ; $i++) {
    $a = Get-Date
    write-host "$i - Time: " $a.ToLocalTime()
    $vm = Get-WmiObject -Namespace root\virtualization\v2 -Query "Select * From Msvm_ComputerSystem Where ElementName='$VMName'"
    $vm.ElementName
    $vmkvp = Get-WmiObject -Namespace root\virtualization\v2 -Query "Associators of {$vm} Where AssocClass=Msvm_SystemDevice ResultClass=Msvm_KvpExchangeComponent"
    $vmkvp.GuestIntrinsicExchangeItems | Import-CimXml
    Actually, if your CentOS VM (has LIS) installed with KVP daemon running well,
    my test script will show more than 4 keys (include NetworkAddressIPv4 or NetworkAddressIPv6 keys).
    However, while the KVP daemon becomes problematic, it will only show a few keys
    (ex. 4~6 keys) and at this moment, Hyper-V Manager also can't show IP address of it anymore and you may need to reboot the CentOS VM to recover it.
    For example (KVP in 252 time is good, but KVP in 253 and 254 times become problematic)
    252 - Time:  8/26/2014 7:19:42 PM
    G2_CentOS7
    localhost                                                   FullyQualifiedDomainName
    3.1                                                         IntegrationServicesVersion
    10.1.145.190;192.168.122.1                                  NetworkAddressIPv4
    fe80::215:5dff:fe91:b902                                    NetworkAddressIPv6
    3.10.0-123.el7.x86_64                                       OSBuildNumber
    0                                                           OSDistributionData
    0                                                           OSDistributionName
    199168                                                      OSKernelVersion
    7                                                           OSMajorVersion
                                                                OSMinorVersion
    CentOS Linux                                                OSName
    129                                                         OSPlatformId
    3.10.0                                                      OSVersion
    x86_64                                                      ProcessorArchitecture
    253 - Time:  8/26/2014 7:19:42 PM
    G2_CentOS7
    localhost                                                   FullyQualifiedDomainName
    3.1                                                         IntegrationServicesVersion
    10.1.145.190;192.168.122.1                                  NetworkAddressIPv4
    0                                                           OSDistributionData
    0                                                           OSDistributionName
    199168                                                      OSKernelVersion
    129                                                         OSPlatformId
    254 - Time:  8/26/2014 7:19:44 PM
    G2_CentOS7
    0                                                           OSDistributionData
    0                                                           OSDistributionName
    199168                                                      OSKernelVersion
    129                                                         OSPlatformId
    I
    found the following patches and gave them a try, but the
    problem still remains after applying these patches and the (generation 2) Ubuntu 14.04 with Linux kernel 3.13 also has this problem.
     - Patch "Drivers:
    hv: util: Fix a bug in the KVP code" has been added to the 3.14-stable tree
     - Drivers: hv: vmbus: Fix a bug in the channel callback dispatch code
    But (generation 1) Ubuntu 14.04 VM with Linux kernel 3.17 doesn't encounter this problem after querying its KVP/IP information on Hyper-V host several times.
    Does anyone know what changes between Linux kernel 3.13 and 3.17 fix this issue?
    Thanks,
    Paul

    Hi Dexuan and Mike,
    Thanks for your help!
    I did the patch with rpmbuild on CentOS 6.5 (with kernel 2.6.32-431).
    However, the second patch cannot patch on CentOS6.5 since there is no target_cpu in such version.
    So we are patching that with the following similar patch but this issue still occurs. (also replace ko in initrd)
    https://lists.ubuntu.com/archives/kernel-team/2014-August/047725.html
    Can you tell me if any patch I could miss or any suggestion?
    Thanks for your time.

  • I've tried downloading iOS5 several times and after an hour each time I get a message that says my network connection has timed out.  But I can't find any information about "timing out" or how to correct the situation.  Any help?

    I've tried downloading iOS5 several times and after an hour each time I get a message that says my network connection has timed out.  But I can't find any information about "timing out" or how to correct the situation.  Any help?

    Disable your antivirus and firewall, and try again.

  • I want to share Microsoft word from my desktop mac to my laptop but every timeIi try and do it, it says that it can't open because it is not supported by the software. I have tried several times and updated it on the mac but its still not working.

    I want to share Microsoft word from my desktop mac to my laptop but every timeIi try and do it, it says that it can't open because it is not supported by the software. I have tried several times and updated it on the mac but its still not working. Any ideas?

    You need to install Office on the computer from the installer DVD or disc image you purchased.

  • I only show one iCloud on my IPhone that can do a restore. I synced it with my MacBook Pro and I think that may have messed things up. Prior to that I have several backups. Will a "genius" be able to access the info I need?

    I only show one iCloud on my IPhone that can do a restore. I synced it with my MacBook Pro and I think that may have messed things up. Prior to that I have several backups. Will a "genius" be able to access the info I need?

    If things seem to be going haywire with your phone, it seems that it MAY be a software issue.
    Now, that being said, that does not necessarily mean that it is a virus. Software issues do happen sometimes. It is probably just coincidence.
    What you need to do is restore the device using iTunes. This will fix any software issues. After you have done this, you can restore from an iCloud backup.
    iCloud does not back up the actual software, so no, the "virus" would not have gotten into the backups.
    The link below provides steps on restoring your device using iTunes as well as how to restore from an iCloud backup.
    http://support.apple.com/kb/ht1766
    Don't worry! Everything should be back to normal if you follow these steps.

  • Whenever i try to buy a new song or download an app my ipod says that "your apple id has been disabled" i have changed my password several times and it still says the same thing what can i do???

    Whenever i try to buy a new song or download an app my ipod says that "your apple id has been disabled" i have changed my password several times and it still says the same thing. What can i do???

    This may provide the answer:
    Apple ID: "This Apple ID has been disabled for security reasons" alert appears

Maybe you are looking for

  • HP Expert Day – Got Questions? We have answers! Sept 20-21, '12.

    Check out the Expert Day event on the HP Support Forums! On September 20-21, HP Experts will be on the forums to help real time with any questions you have about your HP product. Do you have questions about Mac OS X, iOS and AirPrint™ for HP products

  • SAINT Error in Phase CHECK_REQUIREMENTS

    Hi.Experts, In a new SAP component installation with "t-cd:SAINT", an error occurred. ERROR MESSAGE ============================================= Phase CHECK_REQUIREMENTS: Explanation of Errors Open conversion requests still exist in the ABAP Diction

  • Search request issue in GRC AC10.0

    Hello Experts, When we want to check the status of the request logged by others by using the below option we are not getting any results GRC 10.0 with SP14. My Home ->My Profile -> Request Status then click on the Change Query. In the Change query sc

  • Odd problem when opening a file and displaying it in a gui

    When I load up my program, it displays the contents of the array as JLabels in a frame. Just say the file contained the following characters ###$$### When executing the program for the first time, the output is correct and will obviously look like th

  • Every time i click on an outlook message it opens multiple broswer windows

    file:///C:/Users/Richard%20Boucher/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/%7B7258705C-48A1-4F2E-99E1-D9950DCB2CC8%7D/%7B9899855F-4CF2-4BB0-A7E1-AC5BE98856BE%7D.html please help