[Flex 4.5.1] How to prevent Radio Button from being selected when clicked on? No Changing Event?

I have a very common use case where you have a few radio buttons and only one can be selected at a time. Some of them are basic and on click should be selected right away, but other are more complex and open a pop up which requires some additional user selections after which the user selected OK or CANCEL for example and only after that the selection of the radio button should be applied programatically.
So to solve this issue I've come up with 2 workarounds:
1) make the entire group, that holds the radio button, act as a button with buttonMode="true" mouseChildren="false" and programatically change the radio button within it.
2) hold the current radio button selection in a variable and in the changeHandler of that radio button return the selection back to what was selected before. But this also causes a small flickering of the radio button which gets selected and deselected immediately after that.. not cool.
So my question is... is there something I am missing that could do the job without these workarounds... like a Changing event which I use for the ButtonBar but I can't find on the RadioButton or RadioButtonGroup... thanks!

Hi,thanks for the reply. Actually that was my third option, but not sure if it's very good also..
Here is a simple scenario:
User must select between 2 radio buttons:
1) no volume -> sets variable volume=0 and selects the radio button (that is the normal use case)
2) set volume -> opens up a pop up with a list that has a X button to close and 4 options: 25% volume, 50% volume, 75%, 100%
At this point the set volume radio button should not be selected and the user has 2 choices:
-> hit the X button to close - nothing changes and no volume radio button is still selected and volume is still = 0
-> hit one of the volume % buttons -> the set volume radio button gets selected and the variable volume=25/50/75/100 depending on the button selected by the user.
That's a pretty common scenario and it's bugging me that I can't easily alter the radio button selection logic since whenever I click it, it gets selected and I can't put a logic in between in a standard way. This should apply to any component with selection, just like ButtonBar has it with the Changing event.
So is there any other more convenient way to accomplish this scenario that you could recommend?
Thanks!

Similar Messages

  • How do I keep McAfee from being downloaded when I update Acrobat?

    How do I keep McAfee from being downloaded when I update Acrobat?  I'm being spamed by Acrobat!

    If you are talking about this proble, the answer is in the thread:
    http://forums.adobe.com/thread/1065811?tstart=120

  • How to prevent ipad apps from being stored in the iCloud and how to bring them back to the iPad

    I have an iPad Mini Retina with 128GB of storage.  I purchased about a dozen apps and it gets stored in the iCloud and I don't know how to access them on the cloud storage.  Plus I have many apps from me itouch that I use and they are also stored on the iCloud. 
    How can I prevent further apps that I buy from gettting transfer to the iCloud?
    How can I download my existing apps that I purchase and that are from my itouch that are stored in the iCloud into my iPad?
    How do I access my iCloud storage from my iPad?
    Thanks.

    You make it sound like apps are disappearing from your iPad and uploading to iCloud. That's not how it works. Maybe somebody (or you) deleted the apps and you don't realize it.
    You cannot prevent apps from being stored in iCloud. That is one of the reasons for using iCloud. It will store all of your purchased apps and you will be able to download them if you delete them, or if you buy another device that you want to use the apps on.
    If you have apps that are in iCloud, just go to the Purchased Tab in the app store, tap on the Not on this iPad button at the top. Look for any of the apps that you want to download and then tap the cloud icon in order to download them to the iPad. You access your iCloud storage in the purchased tabs of the different stores or in the apps themselves. Any data that is being backed up in iCloud is on the device in the corresponding apps and you don't need to access that data in iCloud. It's at your fingertips already,
    Purchased apps do NOT count against your iCloud storage. If you have 60GB of apps, they do not take up the alloted 5GB of free storage that you get. The app data would count against the storage but not the apps themselves.

  • TS3276 On received mail, I delete sender's name, address, etc. then forward it.  The forwarded mail has a duplicate of the original mail, show original sender's name, etc.  How to prevent the duplicate from being sent?

    How to prevent duplicate of orginal mail (with original sender's name, address) being "attached" when forwarded?

    Maybe I am mis-understanding what you are seeing.
    When I forward a message, the receiver will see the original mail (unless I edit it, such as removing any previous sender's information) and the length will be the same as the message was before forwarding except for the added line "Begin forwarded message" (again, unless I edit bits out), and there will be no attached copy of the original message.
    So when you say in your reply above "The orginal email with the sender's name and address was also sent with my forwarded email." do you mean:
    a) that it is still visible at the head of the text of the message (which I was saying does not happen for me because "after hitting delete, the previous sender's information disappears." [and since] "it has disappeared, it cannot be in your forwarded mail." Disappeared means it is not there.
    b) another copy of the original message is attached to the forwarded email at the end, either as an included file or as repeated text.
    c) some other situation.
    Sorry about the previous mis-spellings! I hope that we can get to the bottom of this.

  • How do prevent HTML snippets from being listed on search engines?

    I just created a new website using iWeb 3.0.1. On a couple of my pages I embedded flash music players and video players using the HTML Snippet widget. I did a quick search of my website on google and noticed that the HTML widgets were showing in the results as separate pages. I then clicked on these HTML Snippet pages and up came the widget on a separate page by itself. How do I prevent search engines from listing any HTML Snippets on my iWeb site as separate pages?
    Thanks
    athafran

    Paste this in the HTML Snippet.
    In the <body> ... </body> part you paste the code you currently use for your Snippet.
    I haven't tried it, the noindex part, but the code itself is accepted by iWeb.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="robots" content="noindex,nofollow">
    <meta name="description" content="instructions for excluding search engine robots">
    <title>Search Engine exclusion</title>
    </head>
    <body>
    Here your current code.
    </body>

  • How to display Radio buttons with default selection on

    Hi
    I want to display Radio buttons using jsf
    i have done it using
    <h:dataTable id="apartmentList" value="#{userBean.allApartmentList}"
                   var="apartments">
                   <h:column>
                        <h:selectOneRadio id="selectedApartment" onclick="javascript:setSelectedApartment(this);">
                             <f:selectItem itemValue="#{apartments.apartmentVO.apartmentId}" />
                        </h:selectOneRadio>
                   </h:column>
    inside a data table
    now when i click some page i want to display the radio's with default radio button selected
    also when i select one radio button and click on some command button
    eg:<h:commandButton action="#{userBean.setSelectedApartment}"
    the Radio button's Selection should not disappear
    i have written a javaScript
    function setSelectedApartment(oRadio)
              oForm = oRadio.form;
              elems=oForm.elements;          
              for(iIndex=0;iIndex<elems.length;iIndex++)
                   if(elems[iIndex].type == 'radio')
                        if(elems[iIndex].name != oRadio.name)
                             elems[iIndex].checked=false;
              document.getElementById("apartmentListForm:selectedApartmentId").value=oRadio.value;
    To check which Raio button is Selected
    How do i show the Default Selected button and How the selection should not disappear
    Can any one suggest me links or the solution to this problem
    Thank you
    Geetanjalee

    -set the value binding expression of select items to a request scope bean
    - on the page load event() ,do
    setdefaultval("ur default value")
    so each time on the page load it sets the default value. and you can get selected value by getdefaultval()
    --raju                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to prevent a page from being printed (with condition)?

    Dear forumers,
    How can I control a page in smartform from being printed / displayed?
    The scenario:
    There are multiple pages in the smartform. In the second page, the variable, V_TEXT will be displayed in a text element located in the secondary window (not the main window). If the variable V_TEXT is empty, the second page should NOT be printed / displayed at all.
    How may I achieve this? Please help. Thanks.

    Hi,
    You can control the Window Display in the Page by giving some condition, but there is no option to control the page display based on the condition.
    Jatender

  • How to set radio button from radio group using javascript, HTMLB

    Hi guys,
    I am trying to set one radio button as checked, from my radio button group using javascript.
    This is the code:
         <hbj:radioButtonGroup id='TRAIN_SUB' columnCount="1">
              <hbj:radioButton id="TRAIN_SUB0" text="Not Applicable" key="NA" disabled="true" /> 
              <hbj:radioButton id="TRAIN_SUB1" text="SDF" key="SDF" disabled="true" jsObjectNeeded="TRUE"/>               
         <%     
              ssTrainSubsidy = new String(MAIN_FORM.getParamIdForComponent(TRAIN_SUB));
         %>
         </hbj:radioButtonGroup>
    in javascript, i am using this:
                   /document.getElementById('<%= ssTrainSubsidy%>')[2].checked =true;
    I also tried to access the radiobutton directly, using
              ssTrainSubsidy0 = new String(MAIN_FORM.getParamIdForComponent(TRAIN_SUB0));
    but it has null pointer error.
    but always have error, anyone can help? thanks!!
    Edited by: Feng Guo on Aug 12, 2010 3:44 PM

    document.getElementById(radioid).checked =true;
    this code will work to select the radio button (set). i think there is a error in the id you placed in ID. place the Radio butoon id and check again. Check this thread on [setting a Radio button|Setting HTMLB RadioButtonGroup Selection using JS;
    regards,
    Mahesh

  • How to prevent a Button from playing a Sound overlaped?

    I have a Button named "Bt1P" that when I click on it, the Sound "S1.mp3" begin to play.
    This is the code:
    Bt1P.addEventListener (MouseEvent.MOUSE_DOWN, Bt1PDown);
    function Bt1PDown (event:MouseEvent):void {
    clicked = 1;
      var str:String = "S1.mp3";
        var ClassRef:Class = Class(getDefinitionByName(str));
      var playSound:* = new ClassRef();
      playSound.play();       
    My question is, what is the right code to tell this Button not to repeatedly play "S1.mp3" while it is already Playing!
    because when i click it for the 2nd and 3rd time, the file overlaped, and 3 same sounds play together at once....you know what I mean?
    any Help please??....thanks a lot.

    Hey Pouradam! How are you!!
    I found the answer myself....I just need to Add the RED code as below :
    Bt1P.addEventListener (MouseEvent.MOUSE_DOWN, Bt1PDown);
    function Bt1PDown (event:MouseEvent):void {
      clicked = 1;  
      SoundMixer.stopAll();
      var str:String = "S1.mp3";
      var ClassRef:Class = Class(getDefinitionByName(str));
      var playSound:* = new ClassRef();
      playSound.play();       
    Hope it solved my problem??  Yes It did!

  • How to stop music folder from being created when changing media folder

    When I try to change the media folder location, a new "music" folder is created - how do I stop this from happening (I already have a music folder that I want it to default to, but when I try to select it, it creates another music sub folder)
    This is a new issue - I have been using itunes for years without ever having this problem...

    That's how itunes 9 works, now. The top-level folder is considered the "Media" folder and there are music, podcast, movie, audiobook, etc subfolders.
    Which is better in a way, since before itunes 9, everything was dumped in a music folder, even audiobooks that weren't music.
    http://support.apple.com/kb/ht3847

  • How to prevent video playback from getting paused when switching to another tab on Firefox for Android?

    In Firefox for Android 27.0, if you play video in one tab and while it's playing you switch to another tab, the video gets paused. I want the video to continue to play while I'm viewing another tab (so I can at least hear its sound!).
    How can I do that?
    How can I prevent Firefox for Android from pausing video playback when switching to another tab?
    Thank you very much.

    Hi hamid_ss,
    Currently Firefox for Android does this by default with embedded players. Some sites go automatically to full screen too which may be what you are running into. Try it.

  • Kiosk: how to prevent an application from being minimized?  (WinXP)

    Hi,
    I have a desktop application that runs full screen, using opengl, for a turnkey kiosk on Windows XP. I'm having this strange problem with the app minimizing itself as soon as it launches. Here's the scenario:
    1. boot
    2. auto login
    3. app launches
    4. app minimizes itself to the taskbar
    5. developer gnashes teeth
    When the app is re-maximized, it runs fine and doesn't do this again.
    When it's launches normally (not from the startup folder) it behaves fine.
    When you just log out and log in, it behaves fine - this is only exhibited on first boot.
    This wouldn't be a big problem but the app is for a turnkey museum kiosk with no mouse or keyboard, so it needs to launch and run smoothly without any user interaction.
    The issue's described well by another developer here:
    http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Integrate;action=display;num=1156614434
    (I'm using Processing).
    This behavior doesn't repeat with other applications, only with fullscreen, opengl java applications that I make in Processing.
    I've tried the workaround in the above thread (running an external window control app as a subprocess in response to the focusLost() event, which works but not reliably for me.
    Is this behavior something that has to do with Java? Has anyone else seen this before? How do you normally go about making kiosk-type applications in java?
    thanks for any suggestions ...
    --ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Yes, I put a shortcut into the startup folder (Documents and Settings/default/Start Menu/Programs/Startup) or whatever it's called.
    I tried Fullscreen and Normal, neither one made any difference. The app does run fullscreen, it just gets minimized shortly after launch. Sometimes it minimizes immediately, sometimes it waits a few seconds and then minimizes.

  • How do I prevent my content from being erased when adding a new device to itunes?

    I've had my 4s for about a year now and I just got a new windows laptop. I installed itunes and signed in but i dont know how to add my phone to this itunes. I know that normally you just plug your phone into the computer and it does it automatically but I know sometimes doing this will erase the content of the device. I have a lot of pictures and music on there that I obviously dont want to lose. So how can i add my phone to this new computer without losing everything?

    >burn the DVD in HD widescreen
    I am very confused... are you burning an SD DVD or an HD BluRay?
    DVD and HD do not go together

  • How to prevent a TCP connection being closed when the VI that opened it finishes.

    Hello everyone.
    I am developing an application based around servers and clients communicating over TCP in LabVIEW 2012.
    When the server/client opens a TCP connection ,it launches an asynchronosly running "connection handler", to which it passes the connection reference which then takes over all the communcation. This all works fine.
    However - I have a situation where a client's connection handler can be informed of another "new" server. I would like it to open the connection (to see if it is still valid) and then pass this connection reference back to the client's main code to spawn a new connection handler. This prevents me locking up the Client's main code with a long-ish timeout if the "new" server is not actually accepting connections.
    The issue is that if the connection handler that opened up the connection to the "new" server is stopped, then it appears to destroy the reference that it opened. This means that the other connection handler that was merrily communcating with the "new" server has its TCP communciations closed (I get an Error code 1 on a write).
    I have created an example to demonstrate the issue which should be used as follows:
    1. Run server.vi - it will listen for a connection on the port specifed on its BD.
    2. Run CH Launcher.vi - it will open a connection to the server and pass the TCP reference to an instance of Connection Handler.vi which it launches.
    3. The Connection Handler should send data to the Server
    4. Stop the CH Launcher.vi
    5. The Connection Handler.vi will error.
    Any suggestions would be much appreciated.
    Cheers
    John
    Solved!
    Go to Solution.
    Attachments:
    TCP Test.zip ‏35 KB

    John_Neutron escreveu:
    In my case I have changes the part of the code that opens the TCP connection to a VI that has the same lifetime as the main VI so that any connections that have been opened will only be closed automatically when the main VI stops.
    And what are the effects? You are still facing the same problem or closing the connection only when the whole applicaton stops solved your problem?
    Regards
    Mondoni

  • How to prevent Apply button from automatic execution

    I'm using OBIEE 11.1.1.5.
    When user enter my dashboard he can see section with many prompts and some chart based reports below.
    Usually, when entering the page the reports are executed with default prompts values and it may take a while.
    Only after most of reports are being generated, user is able to open the listboxes in the prompts and select his desires.
    The listbox is not filled quick since the DB is busy on the reports execution.
    My question is:
    Can I prevent the reports to be executed automatically when entering the dashboard?
    I would like user to click on Apply in order to get results.

    Hi,
    Tune up your RPD,
    Make sure that joins are implemented correctly,
    use cache management to increase the performance to load.
    login to em and in overview you will get the cache management their also u can increase the performance
    even in RPD also u can tune the cache management to increase the perfrmance.
    Regards
    VG

Maybe you are looking for

  • ITunes does not open.  Using latest version on a PC.  Windows 7 Professional.  64 bit.  8 week old laptop.  Earlier versions of iTunes did open on this computer.

    iTunes will not open anymore.  I'm using the latest cersion of iTines, Version 11 + downloaded Feb 26 2014.  Previous version did not open either.  I bought this computer about 8 weeks ago.  Since then previous versions of iTunes did open, although p

  • SRM-MDM AS Java Sizing

    I have some sizing questions regarding the SRM-MDM NW AS Java instance. In the document "Sizing SRM-MDM Catalog 2.0 SP03" the following equation is provided for calculating memory requirements for the NW AS Java server: Fixed Memory = CMULANG*CAT + 5

  • ***I need help with my SPRY MENU BAR***

    Hi everyone, I have installed a Horizontal and Vertical Spry Menu Bar. It looks great, but I can not figure this out. When I click on any of the links on the bars, my text jumps to the righ Can someone please tell me how I can make the text to stop j

  • How to delete those annoying jpeg images?

      Today I decided to import every photo from my iPhone into my MacBook Pro. After some hard work, it comes the problem. There are some jpeg images in my iPhoto. I searched for those images on my phone but I could find nothing. Therefore I want to ask

  • Problem with ripped MPEGs in Encore CS3

    A friend had created a DVD (with either Windows Movie Maker or Nero; not sure which), but I wanted to redo the menu (his was really lame). His software created four .VOB chunks of the 50-minute video. I ripped these chunks, renamed them as .mpg, and