Updating/Changing ViewState properties

I'm having trouble figuring out how to update ViewState-based changes. For example, I'd like to set a spark button component's enabled state to false for a particular viewState in the main application. I've tried numerous approaches to handling the state changes and setting properties explicitly, but I'm clearly not doing it properly, because none of the event handling, aside from the creationComplete event, do anything. If anybody has some suggestions please let me know.
Thanks~Benny

Hey John,
Here's an example:
<fx:Script>
<![CDATA[
//mediaPlayer:VideoPlayer...
import mx.events.FlexEvent;
import mx.events.StateChangeEvent;
protected function application1_creationCompleteHandler(event:FlexEvent):void
     mediaPlayer.fullScreenButton.enabled = false;
     mediaPlayer.fullScreenButton.addEventListener(StateChangeEvent.CURRENT_STATE_CHANGE, stateChangeHandler);
protected function stateChangeHandler(event:StateChangeEvent):void
     if (event.newState == "videoMenu")
          mediaPlayer.fullScreenButton.enabled = true;
     else
          mediaPlayer.fullScreenButton.enabled = false;
]]>
</fx:Script>
<s:states>
<s:State name="audioMenu"/>
<s:State name="videoMenu"/>
</s:states>
<!-- ============================ -->
Let me know if you have any ideas...
Thanks~B

Similar Messages

  • HAL not updating change in properties

    Hi John,
    When we tried to push members changing their property HAL is not updating the changed property in hyperion
    Ex-- If i have member Account with TB LAst as its property in the source and using HAL we pushed this member to Hyperion. Now i changed the property from TB Last to None in the source and used HAl to push the member. But it is still showing TB last in the hierarchy.
    Please suggest
    Thanks,
    Sravan

    Which HAL adapter are you using, Essbase or Planning? Where are you looking for the updated property, in Essbase or Planning?
    If you're not already, what you should be doing is use the Planning adapter to update the property in Planning, and then refresh Essbase from Planning. When you've done those two things, and assuming there haven't been any errors in the HAL integration, you should see the updated property in both Essbase and Planning.
    Of course, you have to run the HAL integration as a user with sufficient privileges in the Planning application to make metadata changes.

  • Update All Object Properties on a Single Property Change C#

    How do I update the other properties of an object automatically when I change a single object of that property?
    I have an object with some base properties. When I set one of those base properties to a new value I would like many of the other properties to automatically update. I tried writing a method called UpdateProperties and putting it in the "set" accessor,
    but that doesn't work. If I put it in the "get" accessor the other properties only get updated when I call the single property. I'm a newbie at OOP and need some help.

    Probably you did something wrong in your set and
    UpdateProperties. Compare with this example, which updates the second property when the first one is set:
    class
    MyClass
    private
    int mBaseProperty;
    public
    int BaseProperty
    get {
    return mBaseProperty; }
    set
                         mBaseProperty
    = value;
    UpdateProperties();
    public
    int AnotherProperty {
    get;
    set; }
    private
    void UpdateProperties()
    AnotherProperty = BaseProperty * 100;
    If your case is different, then show some details.

  • 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 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!

  • Want to change image properties programmatically

    want to change image properties programmatically like
    adjust_to_fit,selection_rectangle,pane,show_pallete.
    Reply as soon as possible.
    [email protected]

    I understand.
    In terms of for the initial Ecommerce switchover we mass updated the MMIMAGE field in partsmaster so that the assumed naming convention of the image files are ITEMCODE.jpg.
    Your solution is good which covers the instance where the image file field is empty and then putting in a empty image field in there.
    The other scenario is that the MMIMAGE field is filled put the physical .jpg file is missing in the file system.  Is there a way to handle that. 
    I checked already the netpoint thumbnail handler .dll and browsed over the available member properties / methods but I don't think such a config exists.
    Mike

  • Update Changed Columns Only

    How to generate a form with a data block with the "Update Changed Columns Only" property set to "yes" from Designer 9.0.4.6? Is there an equivalent for this property in Designer? Or do I have to create a library object which I then have to subclass from?
    Thanks in advance
    Gerald

    Hi Gerald
    When you look in the help of Designer (Generated data block properties (implicit/explicit)), the Forms property "Update Changed Columns Only" is not mentioned. That implies that there is no property/preference in Desinger that will influence the value of this Forms property.
    So yes, you have to create a library object and subclass from it.
    Another solution is to work with the Forms built-ins GET_BLOCK_PROPERTY and SET_BLOCK_PROPERTY in a Pre_Form trigger, but I personally would prefer a new library object for this.
    Kind regards,
    Lennart de Vos

  • Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

  • 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.

  • TS1702 I'm presently in the Caribbean, and I updated my iPhone 4S to iOS 6. the update changed my iTunes account from the US to a Barbadian account. How can I switch back to my US account?

    I'm presently in the Caribbean, and I updated my iPhone 4S to iOS 6. the update changed my iTunes account from the US to a Barbadian account. How can I switch back to my US account?

    Sorry I'm so late responding; I've been away.
    http://support.apple.com/kb/TS3694#error1611
    The error means that your antivirus or firewall is blocking the update process.

  • 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 .

  • 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

  • Application doesn't render the updated changes

    Hi Experts,
    When ever I made changes in the abap code / javascript and run the application directly from IE instead of SE80 I can't see the updated changes in the screen, instead scrap dispaly on the screen. It is the behaviour untill I delete all the browser history, temporary files and cookies from the browser and have to close all the IE sessions.
    But when I launch the application from the SE80 there won't be issues.
    What could be reason for this behaviour.
    In my application I didn't use any sessions rather everything works based on the request scope.
    Would there be any problem if I don't use session in my application, the reason I didn't use is because I don't need user logoff at any time.
    Any suggestion how to get rid of this probelm.
    Regards,
    Chinna.

    Supposing you are comparing a debug application on the development machine with a standalone executable on the target machine, the behaviour of them can be different due to additional informations and precautions that are present in the debug application. The best option is to test the executable in the development machine and see if it behaves correctly: if it exposes the same wrong behaviour than on target machine you must check the differences between these two applications. See for example this tip from Wendi L.
    If on the contrary the executable runs correctly in the development machine you must double check that execution environment is the same, including support files you are using in both machines. You can also try to remotely debug the program on the target machine, see this tutorial for an explanation of remote debugging facilities included with CVI.

Maybe you are looking for

  • How to print envelopes with correct orientation?

    Hi all, This one has been driving me mad and, despite many searches for help, just can't find a solution. As someone who knows their way around most IT related problems it is also very frustrating! The problem: How to print a DL envelope using Pages

  • After Upgrading to 10.6.8 Xerox M128 constantly paused?

    After performing OSX 10.6.8 update all iMac computers will not print to Xerox M128 no matter what combination of driver weather its generic or ps. HELP?

  • Webservice WSDL

    Hi All, I have punlished a EJB webService on the j2ee engine.I want to get the WSDL generated for my webservice, how can I get it? when I gho to the WebService Navigator in the J2ee engine administration them I get the WSDL.zip for my webservice but

  • CS5 Upgrade - Keeps asking for Serial

    I'm upgrading a colleague's CS3 Design Premium with a CS5 Design Premium install. I've purchased the upgrade from our Adobe Reseller and downloaded CS5. I installed it (putting in the serial number given on the Licencing website for CS5) and it seeme

  • Portability issues

    Hi, We could not build db-4.5.20 "out of the box" on solaris2.6 or 2.7 or on AIX-4.3, hpux10.20, or Tru64 (4,0D and 5.1) with the native compilers. Most of the problems were to do with socklen_t, but there were one or two other little things. We have