Changing enabled properties of children in a Menu of a Menubar

Hey everyone,
I have this issue where I'm trying to set the enabled property of an item in one of the menus of a Menubar WITHOUT changing the data provider.  If you change the actual data provider (XMLList) this fires off bindings and actually redraws the Menubar component giving it a flickering effect which I really don't want.  You can enable/disable the top level menuBarItems by menuBarItems[X].enabled (which doesn't change the dataprovider), but I need to change the enabled property of an item in one of the popup menus. The update to the property happens quite often and causes the flickering constantly.
In my set hasAsset method, this is where I would like the enable configuration to happen.  I have tried alot of proposed solution, but nothing yet...
Any help at all would be great!
The code is below:
<?xml version="1.0" encoding="utf-8"?>
<mx:MenuBar
    xmlns:mx="http://www.adobe.com/2006/mxml"
    dataProvider="{menuItems}"
    itemClick="itemClickHandler(event)"
    labelField="@label"
    styleName="MainNaviMenu">
    <!-- Here is the static list of views in the MainMenu -->
    <mx:XMLList id="menuItems">
        <menuitem label="Asset Manager">
            <menuitem label="Map Files" view="ShowIngestion" subview="ShowMap"/>
            <!-- This is coming out with this iteration, commenting out for now. --> 
            <!-- <menuitem label="Replace Master" view="ShowIngestion" subview="ShowReplace"/> -->
            <menuitem label="Metadata" view="ShowIngestion" subview="ShowAsset"/>
            <menuitem label="Metaframe" view="ShowIngestion" subview="ShowMetaFrame"/>
            <menuitem label="Thumbs" view="ShowIngestion" subview="ShowThumbEditor"/>
            <menuitem label="Clips" view="ShowIngestion" subview="ShowClips"/>
            <menuitem label="Preview" enabled="false" view="ShowPreview"/>
        </menuitem>
        <menuitem label="Publisher">
            <menuitem label="Schedule" view="ShowScheduling"/>
        </menuitem>
        <menuitem label="Intelligence" enabled="false">
            <menuitem label="Drilldown" view="ShowDrilldown"/>
        </menuitem>
        <menuitem label="Administration" enabled="false">
            <menuitem label="Users" view="ShowAdminUsers"/>
            <menuitem label="Folders" view="ShowAdminFolders"/>
            <menuitem label="Tracks" view="ShowAdminTracks"/>
            <menuitem label="SmartFeeds" view="ShowAdminSmartfeeds"/>
            <menuitem label="Categories" view="ShowAdminCategories"/>
            <menuitem label="Playlist" view="ShowAdminPlaylists"/>
        </menuitem>
    </mx:XMLList>
    <!-- Bindings -->
    <mx:Binding
        source = "{model.selectedAsset != null}"
        destination = "hasAsset"/>
    <mx:Binding
        source = "model.user.isAdminOrSystem"
        destination = "isAdmin"/>
    <mx:Binding
        source = "{model.user.organizationReportingEnabled &amp;&amp; model.drilldownCollection.distributorHierarchy != null}"
        destination = "organizationReportingEnabled"/>
    <mx:Script>
        <![CDATA[
            import com.digitalsmiths.cms.events.SelectViewEvent;
            import com.digitalsmiths.cms.model.ActiveUser;
            import com.digitalsmiths.cms.model.CMSModel;
            import mx.collections.XMLListCollection;
            import mx.controls.Menu;
            import mx.controls.menuClasses.IMenuBarItemRenderer;
            import mx.controls.menuClasses.MenuBarItem;
            import mx.events.FlexEvent;
            import mx.events.MenuEvent;
            [Bindable]
            public var model:CMSModel = CMSModel.getInstance();
            public function set hasAsset (value:Boolean):void
               //THE FIX GOES HERE
            public function set isAdmin (value:Boolean): void
                menuBarItems[3].enabled = value;
            public function set organizationReportingEnabled(value:Boolean): void
                menuBarItems[2].enabled = value;
        ]]>
    </mx:Script>
</mx:MenuBar>

anybody? I'd really rather not write my own component, if they're ever going to release a spark one.

Similar Messages

  • Administrator cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2

    Hello, dear Colleagues.
    User with administrators rights cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2. 
    If to launch "Devices and Printers" on server, all printer properties on "Advanced" tab are inactive (see screen below). 
    But I can change it manually with "Print Management". Features become active.
    The main purpose - to uncheck "Enable advanced printing features"  with powershell
    scripts.
    $erroractionpreference = "continue"
    $colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
    ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
    If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
    Write-host $objPrinter.Name
    Write-Host $objPrinter.RawOnly
    $objPrinter.RawOnly = "True" # Untick and update the object in WMI
    $objPrinter.Put()
    It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error
    Exception calling "Put" with "0" argument(s): "Generic failure "
    At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
    + $objPrinter.Put()
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
    Can you help me with that? Look like somethings with rights.
    Thank you.

    Hello, Alan
    Morris.
    Thanks for your reply.
    I've tried to runs PS Script both locally and remotely, previously running Powershell ISE as Administrator.
    I've noticed interesting thing - if to
    check "Enable advanced printing features"
    manually thru Print Management snap-in, script works fine. But, time to time after some manipulations on print server, this advanced feature returns to enabled state automatically by system, I think. In this case PS Script does not work. Next, if to disable
    feature manually again (thru Print Management snap-in),
    and enable manually again, PS Script will work. Very strange situation.
    Thanks.

  • How to change the properties of individulal elements in an array?

    Hi all,
    I have an array (size is 25) of string and I want to disable and grayout half of them. But how do I do it? How do I change the properties of individual elements in an array? I have tried to use some of the examples given in the discussion forums, but it didint work for the task mentioned above. Anybody would be able to help me with a suitable example that can be specifically used for disable or enable the individual array  elements?
    Dev

    Telemaque wrote:
    The user will see the first half of the string elements filled-in and the lower half grayed-out (to be filled in later).  Make a test VI, play around.
    ... except that all elements "greyed out" with this method contain the default string for the array element (blank by default, but changeable). There is no way to have meaningful, unique text in the greyed out elements.
    I would suggest to use a listbox as control/indicator. Here elements can easily be disabled programmatically.
    LabVIEW Champion . Do more with less code and in less time .

  • Change default properties of TEMPLATE_PROPERTIES in 2004s

    Hi gurus.
    My issue is that I want to change the default parameters of web templates. For instance, I don't want information messages to be shown as default. I have found that it is possible to change this in the IMG under "Determine Settings for Web Templates". In the help menu for this activity it says that I should enter the "technical name of the library item in which you stored the Web template properties". I do not understand what this is.
    Any help would be appriciated.
    Regards
    Øyvind Reinsberg

    Thank you John,
    I "should" be able to pop up on the table and use the properties of the table but I just realized why the properties weren't available (the menu "Create -> Property Node" is not even available). The reason seems to be because my Array of Clusters is a Strict Type Def Control. I use this Array in different places in my program and I find that it is very convenient to use a Strict Type Def for a Cluster since I am still in a development phase.
    I am not very optimistic that there is something to be done apart from changing all my Strict Type Def controls back to regular controls... maybe "Type Def" Controls will suffice. But if you know of a way to programmatically modify the properties of a Strict Type Def Control, please don't hesitate to answer me back.
    Thanks again.
    Nathalie

  • My ipod works in itunes but does not appear in "my computer" after I changed the properties

    My ipod works in itunes but does not appear in "my computer" after I changed the properties.
    First off, I'm using Windows XP (and Mac SnowLeopard) Here's how it started. For some reason my ipod started showing up as a camera when I plugged it in. It works fine in itunes, though. But when I tried to access it from "my computer" it only
    showed me the one and only picture I had on my ipod. I deleted that picture hoping it would no longer show up as a camera. When it still did I right-clicked on it in "my computer" and selected "properties". Under "autoplay" I
    chose for it to 'not show up' or 'take no action' or some such deal when I plugged it in. I thought that would stop it from popping up the window that asks whether i want to 'open camera wizard' or 'open camera scanning' or 'open folder to view files' or 'take
    no action' , etc. But now it won't show up in "my computer" at all. I also have a Mac with SnowLeopard. When I plugged my ipod into it my ipod doesn't show up in "finder" either! So basically my problem is not a mechanical one with hardware
    or software; yht ipod still works fine in itunes. I just need to undo the change I made. I've searched all around my preferences, utilities, options, etc. It shows up on my "Device Manager" but not on "Disk Management".
    Any help would be very much appreciated. Thanks.

    Hi,
    To show up in Windows Explorer, you can try placing the iPod into
    disk mode.
    Moreover, i recommend you to
    restore ipod to factory settings.
    If this issue still persists, locate to device manager, uninstall and reinstall USB Mass Storage Device driver.
    Here is an article you can refer to below:
    http://support.apple.com/kb/TS1369
    To get more help, you can also redirect to apple support forum:
    http://www.apple.com/support/ipod/
    Thanks!
    Andy Altmann
    TechNet Community Support

  • How to change the properties of a directory using java code

    Hai All,
    I need to change the properties of directory( websharing).
    Can i do this using java code.
    Regards,
    Charan

    I need to change the properties of
    directory( websharing).
    an i do this using java code.Depends on whether the server has a Java API to do it. Most likely it hasn't.

  • How to change shape properties after having created one?

    Photoshop CC 2014 -- latest update as of October 06, 2014
    Windows 7
    How can I change a shapes properties after having created one.
    I have created a simple ellipse.
    When I drew the ellipse with the tool, I had the option for the fill color/style and stroke, etc.
    After I have created said ellipse, I wish to change its properties.
    I can use the Paint Bucket, gradient tool, etc for the fill, but is there way to get back to the original set of tools with which I created the ellipse in the first place?
    If I use Edit > Stroke... it adds a new stroke around the existing shape.
    If I use Edit > Fill... the entire layer is filled.
    There must surely be a way to reenter the tool set to edit an existing shape. No?
    Thanks,

    Hi everyone,
    Thanks for the helpful tips, advice, etc.
    I didn't explain myself very well--I apologize.
    However, with your tips I figured it out:
    When I create a rectangle or ellipse, I can later click on its layer and the Properties window appears with options to change their "Live Shape Properties."
    However, not so with the Polygon and Shape tools. With them, the Properties window shows only the Masks, but the Toolbar still shows some basic properties I can change.
    I was stymied by the above differences while working only on a Shape.
    I've attached two JPEG screenshots.
    I didn't need to change the actual shape, just the fill/stroke, etc.
    Later, I may wish to change the actual shape, but that appears to be done by simply creating something new.
    Thanks much!!

  • "Click To Change All Properties" Not Working In Dreamweaver CC For Padding/Margins

    Every time I try to use the "Click To Change All Properties" option in Dreamweaver CC (the chain link icon in the middle of the Magin/Padding box), it never seems to work. Nor does it use the CSS shorthand, it lists the top, bottom, left and right margins/padding separately no matter if I have the chain link icon connected or broken.  If I have it set to link all four sides, then enter a value into the top, nothing happens to the other sides. It's not until I enter a value in to the bottom that it auto fills in the other two sides. Anyone else having this issue?

    Thank you for your help. I think I figured out what I might have been doing wrong when setting the margins. I would first clickt the chain icon to join everything, then enter in a value in the Top box, but I wouldn't see the other boxes update with that same value, so I would immediately click the Bottom value box. Instead, if I just click on the inner white box, just outside of the perimeter of the chain icon, it updates all of the remaining values.
    The shorthand setting worked as well for the Padding/Margins. Thank you!

  • How do I change the display order in the VPN menu in the status bar?

    Hello,
    How do I change the display order in the VPN menu in the status bar?
    (in the drop-down menu from this icon) ->
    Thanks.

    Hello. Perhaps this is because you are trying to arrange the order of many VPN services, since only one VPN service can be selected at once in System Preferences. In my original post, I did not mean that; I meant that I wanted to arrange the order of VPN configurations within a VPN service. In this screenshot, I have one VPN service only:
    And in the following one, it is shown that there are more than one VPN configurations within that VPN service:
    Furthermore, it was the order of VPN configurations that I wanted to change, not the order of VPN services. If you are trying to change the order of VPN services, I do not have a solution.

  • How to Enable the SAVE button in the Menu Bar of the Invoice Document.

    Hi.
    How to Enable the SAVE button in the Menu Bar of the Invoice Document as it is disabled for me.
    I would like to save the Invoice document in PDF  format.
    Regards
    Irfan

    Hi,
    Normally, for the archiving or generation of the invoice document in PDF format is handled by maintaining the output records through VV31/VV32 with the relevant printer, storage mode ( 3- print and archive or 2- archive only ), no. of messages ( means no of copies ) in the communication method.
    Then when you click the print button through VF03 in the print options pop-up you get a print at the physical printer and at the same time an archived copy ( PDF copy ) attached with the document.
    So, please make sure the output records are fine to allow a PDF copy generated and then try to print and check in VF03 by entering into the billing document.
    Hope this helps you.
    However, from the print preview you normally would not be allowed to save or print.
    Regards,
    Ram
    Edited by: Ramakrishna Peri on Apr 3, 2009 9:16 AM

  • Can we change the background color of a sub menu?

    In swing, can we change the background color of a sub menu. it is working fine for the main menu, but doesn't work for sub menu.

    Hey hi,
    just an append to the previous reply.
    The subMenu needs to be setOpaque() to true. i.e.
    subMenu.setOpaque(true);

  • How to use Prompts in the Filter created in Change Report Properties

    Hi all,
    I have created one Datetime prompt in Change report properties dialogue box.
    Now how can I use this same one in the filter ??
    Since I didn't get Surface and Prompt option for the Date field in the filter.
    Any help is appreciated.
    Thanks

    Actually problem is with Datatype..It was timestamp but it should be Datetime

  • Can't change Movie Properties

    I just bought and downloaded 5 Pixar short subject movies.
    I have a 3 year old grandson that I've set up a Mac for.
    I've put his favorite movies and trailers on the desktop with large icons and slow double click. I set each movie to open in full screen and close when finished because he can't click on the red close button.
    The Pixar movies downloaded into iTunes, so it would be difficult for him to find them to play.
    I opened the mp4 in Quicktime and saved as self-contained movie, thinking this would do it. I put the movie on the desktop and opened it to get movie properties. I could not change them, so I can't set to go full screen or to close the movie when done. ???
    Is there no way to do this? "Protected" is one thing... but not being able to change the properties seems ridiculous.
    RM

    Better to use "reference" instead of "self contained" to save on HD space.
    Then unplug the mouse and teach the 3 year old the keyboard.
    The "Tab" key will highlight a file and a new tap on it will move the focus to a new item.
    Command key and the letter o key will launch QuickTime Player.
    Command key and the letter f will send the file to Full Screen (requires Pro).
    The Spacebar will start and stop playback. Up/down arrow keys will adjust volume.
    Command key and the letter w key will close the window. Escape key will send it out of full screen but leave the window open.
    Command key and the Tab key will allow switching between the Finder and QuickTime (focus changes each time the Tab key is clicked) and releasing the Command key will make that app the "front".

  • Cannot change Printer Properties in Word 2010 with J6480. Properties revert to default setting

    When I attempt to change Printer Properties in Word 2010, they simply revert back to the default setting.  I am unable to use the Printer Properties within the Word 2010.  If the default is grayscale, that is all the printer will print unless I change the default setup in the Control Panel. It appears to be an incompatibility with Office 2010 software as other programs allow the change of Printer properties.

    I have the exact identical problem.  Brand new printer (HP PhotoSmart C4780) on a brand new PC (Windows 7).  I cannot access the printer properties dialog box when the PDF file has been opened in an embedded Adobe Viewer window in Internet Explorer.
    When I select [Print] from Word or Adobe Viewer, or anywhere else, I can then press the [Properties] button and it opens the printer properties just fine.
    But if I open a PDF document through Internet Explorer, clicking on that [Properties] button doesn't do anything.  No error or anything.  If I press the [Save] in the Adobe Acrobet-embedded Internet Explorer window, it too does nothing.  This leads me to think it is an Adobe Acrobat issue.  However, I have found nothing in their support forums on this topic.
    Does anyone out there have any ideas?
    Scott

  • Change "name" propertie of a apex item

    Hi all,
    I´m trying to change some atributes of a select list item, like "name", but the apex put a name like "p_t04", even if i put a (( name="mine" )) in the atributes of form elements, when i check the html source code, the name "p_t04" is in there. Apex set the ID of a item like the name i choose to the item when i create then, but the select NAME=" " <<< that name, cannot be changed??
    sry about my english...

    Hi Dan..
    I need create a multiselect combobox. Is a combobox with checkbox inside. I found some JQuery in google, but to change the normal APEX select-list into the jquery multiselect i need change some properties to call the function. I alread try to create my own combobox, but its hard to populate with DB result and using position absolute after all, the final result is not so good, work, but not like i need it.
    I need change the atributes of the apex select list to change in to a multiselect. You think if i change that (if there´s a way to that)) will be a problem??
    tnks for help me.

Maybe you are looking for

  • Something using my internet usage ????

    Hi all, this may be a strange one, but i have contacted my operater and they were no help, so i thought i would let you guys give it a bash For some reason, something on my BBcurve is eating into my bandwidth every night at 00:00.01 So 1 second past

  • Crack sound Macbook Air 2013

    Hello, i've got a problem(if we can call it) with my Macbook Air 2013(bought on july 2013). when i type,i usually put my hands on the surface right next to the pad. i do not apply any forces or put all the weight on the surface but it sounds like a c

  • Can you bookmark a station in the Internet radio stream?

    I'd like a way to go directly to my favorite stations, rather than having to run through the list each time I load the Internet radio.

  • I want the drop down search engine back..vastly superior .no rhetoric

    takes an extra click.what if i am surfing amazon ? making choices a visual self evident protocol is always simpler in the long run.some people tend to be a bit dyslexic .its not a fear .some refer to it as muscle memory .i play the guitar today in E

  • Upgrade from WLS6.0sp2rp3 Express  to WLS7.0 Express

    Hey all, I'm planning to upgrade our WLS6.0 Express to WLS 7.0 Express in our production server. I'm just wondering is it possible to upgrade directly from 6.0 to 7.0 without upgrade to 6.1 first? Any successful story? Thx in advance! Henry