How to handle radio buttons

hi.
i put 3 radio buttons in my scene and i wan't to handle the state of this buttons in an other component "graph"
so i create group of buttons
var group = SwingToggleGroup{
var choiceText = ["Cercle","Square" ,"Rectangle"];
var formchoices = for (text in choiceText)
    SwingRadioButton{
        text: text
        foreground: Color.GRAY
        font: Font{
            name: "Tahoma"
            size: 15
        toggleGroup: group
    }//SwingRadioButtonand after i passed values to my graph component :
var graph: Graph = Graph{
cercleForm : bind formchoices[1].focused
squareForm : bind formchoices[2].focused
rectangleForm  : bind formchoices[3].focused
};but that's not working !!
thx

hi
yes that's it ! i have to use the selected attribute and not focused. it's fine now :)
But i am asking the question : must i pass the parameters for each component ?
is it possible to      access to one component in the Scene from an other directly ?
( in flash it's possible with "root")
thx
ilyes

Similar Messages

  • How to handle radio-buttons in FB05  bdc????

    How to change Additional selections radio-button from none to Document numbers in CALL TRANSACTION BACKGROUND MODE..............................................
    Edited by: Raghavender Poosarla on Apr 8, 2008 10:32 AM

    I have BDC requirement of FB05 transaction... I am stuck at one point where this recordin is working in Foreground mode and not in Backgroung mode...The reason being there is a bit in which I am selecting a readio-button from value 'NONE' to 'Document numbers' WHICH IS HAPPENING IN FOREGROUND AND NOT IN BACKGROUND ....Can any one tell is there any special way for handling radio-buttons in recording of an transaction???

  • How to handle Radio buttons on screen.(urgant)

    Dear all,
    my req is : i had a screen , on that there are 3 radio buttons,Based on the radion button selection on that screen i've to trigger the 3 select statements.
    if  Radio button 1
        execute select stmt 1.
    if  Radio button 2
        execute select stmt 2.
    if  Radio button 3
        execute select stmt 3.
    how to write this and where.
    Pls frnds this is urgant for me.
    please help me,
    Thanks in advance,
    With regards,
    Ajay Kumar K,
    9908979994.

    hiii....
    you have to remember that you have to define the radio buttons in 1 group.because if changes are made in the group from the elements list then it would affect on all the radio buttons for a particular tasks.
    again radio buttons are always been declared with the parameter statements.
    for eg..
    Parameters:
    p_rad1 radiobutton group rad1 default 'X' user-command rad1,
    p_rad2 radiobutton group rad1,
    p_rad3 radiobutton group rad1.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF p_rad1 = 'X'.
    select statement 1.
    elseif p_rad2 = 'X'.
    select statement 2.
    elseif p_rad3 = 'X'.
    select statement 3.
    endif.
    The group group over here is RAD1.
    the default radio button over here is in radio button 1. you can also also check any of the radio buttons as default.
    thanks..
    any more help pzz revert back...

  • How to define RADIO BUTTONS in MODULE POOL PROG.?

    Hi Experts,
    I need to keep the RADIO BUTTONS in 1000_screen of my_module_pool prog., like,
    I hv 2 fields in this screen, as expected, the first shuld hv DEFAULT selection.
    So, I just simply, dragged & dropped 2 radio buttons from left menu of the screen builder & given them the  names as
    R_SUMMARY
    R_DETAIL
    Then i executed the transaction, but, these above 2 fields are getting selected, as default??
    I know that, if its a REPORT prog. we can define as w/ a GROUP, then the 1st one is hv the default selection.
    so,
    1  - How to define RADIO BUTTONS in this screen of a module pool prog.
    2 - How to use these names in the prog.(PAI - i guess)?
    thanq
    Edited by: Srinivas on Jul 12, 2008 11:59 PM

    Hi Srinivas,
    Please check this link
    Re: urgent:Regd radio buttons in module pool
    http://saplab.blogspot.com/2007/10/sample-abap-program-for-module-pool_18.html
    http://****************/Tutorials/ABAP/Checkbox/page1.htm
    http://****************/Tutorials/ABAP/Checkbox/page2.htm
    Best regards,
    raam

  • How to create radio button in reports

    Hi Friends,
    Can any body please tell how to create radio button in reports.
    Thanks,
    Nagendra

    Hi Nagendra,
        But why do u need a single radio button, any specific reason...
      try this
    REPORT  ZCHA1.
    PARAMETERS : P_RAD1 RADIOBUTTON GROUP RAD,
                 P_RAD2 RADIOBUTTON GROUP RAD.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'P_RAD2'.
          SCREEN-INVISIBLE = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • How to create radio button between two slection screen

    hello all.
    could you please guide me how to create radio button between two SELECTION-SCREEN  in screen painter.
    Thank you,
    srinivas

    hi
    SEE THIS CODE
    REPORT  ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
    ******DATA DECLARATIONS**********
    DATA : BEGIN OF IT_PLANT OCCURS 0,
            MATNR LIKE MARA-MATNR,
            WERKS LIKE MARC-WERKS,
            PSTAT LIKE MARC-PSTAT,
            EKGRP LIKE MARC-EKGRP,
           END OF IT_PLANT.
    DATA : BEGIN OF IT_PONO OCCURS 0,
            EBELN LIKE EKKO-EBELN,
            EBELP LIKE EKPO-EBELP,
            MATNR LIKE EKPO-MATNR,
            WERKS LIKE EKPO-WERKS,
            LGORT LIKE EKPO-LGORT,
           END OF IT_PONO.
    TABLES EKKO.
    ********END OF DATA DECLARATIONS*********
    ********SELECTION SCREEN DESIGN ***********
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
    SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R3 RADIOBUTTON GROUP G2 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R3.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R4 RADIOBUTTON GROUP G2.
    SELECTION-SCREEN COMMENT 5(20) TEXT-004 FOR FIELD R4.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    ******END OF SELECTION SCREEN DESIGN****************
    <b>rEWARD IF USEFULL</b>

  • How to handle Back button, Browser Refresh problem at server side.

    Hi Friends,
    How to handle Back button, Browser Refresh problem at server side in java?.
    I am able to trace that,
    request.getHeader("ACCEPT") is returning value- */*
    when the browser was refreshed and returning different MIME types
    for all other actions from browser.
    I have doubt, will the above solution works always for all servers,browsers?.
    Please also specify any solution to handle back button at server side?.
    Thanks in Advance.
    Venkat..

    I'm sorry I don't think tht's the right solution for
    the above question....
    We must be aware that whatever scripting methdologies
    we either javascript/vbscript would executed @
    client(browser) side not @ server side....
    Dud If U get a good solution keep me updated.....
    THANKS & REGARDS,
    RAHULMy dear friend ...
    the bad news is that u simply cant disable or add any listener to the back button of the browser.
    When u hit the back button of ur browser the URL gets re-executed. So in case u have a JSP then the history.forward() is the best solution. [only if the page doesnt get expired similar to secure https sites]
    Now dont say that user can have javascript disabled ...those users will have a pretty touch time browsing websites since javascripts r used extensively by almost all websites.
    But in case u have an action.do or servlet call then u need to manage it using a session variable since the request will be sent to the server rather than client.
    For multiple form submittion issues read the following article in javaworld...
    Client vs. server solutions
    Different solutions can solve this multiple form submission situation. Some transactional sites simply warn the user to wait for a response after submitting and not to submit twice. More sophisticated solutions involve either client scripting or server programming.
    In the client-only strategy, a flag is set on the first submission, and, from then on, the submit button is disabled based on this flag. While appropriate in some situations, this strategy is more or less browser dependent and not as dependable as server solutions.
    For a server-based solution, the Synchronizer Token pattern (from Core J2EE Patterns) can be applied, which requires minimal contribution from the client side. The basic idea is to set a token in a session variable before returning a transactional page to the client. This page carries the token inside a hidden field. Upon submission, request processing first tests for the presence of a valid token in the request parameter by comparing it with the one registered in the session. If the token is valid, processing can continue normally, otherwise an alternate course of action is taken. After testing, the token resets to null to prevent subsequent submissions until a new token is saved in the session, which must be done at the appropriate time based on the desired application flow of control.
    for more details refer :
    http://www.javaworld.com/javaworld/javatips/jw-javatip136.html
    Hope u got the idea.
    FYI I have been using both these ideas in my credit card payment gateway project. This concept has worked really well.

  • Event to handle radio button changed in a dynpro

    Hi Everyone,
    how can i handle if a radio button changes in a dynpro?
    I want to disable other buttons if a radio button is selected
    Thanks

    Hi ,
    you can do that..
    first group the radio buttons in the screen and assign function group for each radio button by double clicking ..
    and write the logic enable and disable fields in the screen in PBO
    regards,
    Prabhudas

  • CRM Survey - How to remove Radio button defaults.

    Hi experts,
    I am trying to remove Radio button default. By default it is selected when I am trying to set attribute for answer options. Even if I unchecked, it reverts and set as selected again. Actually, I need remove Radio button default for the customer sees a response pre filled.
    Please advise on how can I remove Radio button default for answer options.
    Banu

    Hi,
    I see it now.
    You need to change the config of your radio buttons in the transaction itself.
    Goto CRM_SURVEY_SUITE, locate your survey, click on the change button ( a pencil) this will take you to the survey configuration.
    There navigation to the section in the left hand pane that corresponds to the radio buttons. And you will see Yes and No for answers to the questions. Double click on each of them to display on the right side work area and change the property 'Selected' (which is a check box) to unchecked.
    This should be easy.
    Regards
    Prasenjit

  • How to check Radio buttons with Differfent button values

    Good Day,
    I am currently trying to write a script that would hide 5 of 6 radio buttons
    I have a radio button called "3. Transfer"
    with values of :
         Yes;
         Supp;
         Reg; and
         do_not_transfer
    as well I have a drop down called "REL.ITEM"
    with values of
              3(A);
              3(B);
              4(A);
              4(B); and
              4(C)
    I know how to get the value of the box and manipulate other fields
    like
    //START
    var transfer = getField("3. Transfer").value
    var relitem = getField("REL.ITEM").value
    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
         getField("a. recommend").checkThisBox(0,true);
         getField("a. recommend").display = display.visible
        getField("a. I do not recommend").checkThisBox(0,false);
        getField("a. I do not recommend").display = display.hidden
    else if (transfer = "do_not_transfer")
         getField("a. recommend").checkThisBox(0,false);
         getField("a. recommend").display = display.hidden
         getField("a. I do not recommend").checkThisBox(0,ftrue);
         getField("a. I do not recommend").display = display.visible
    //END
    I would like to make it so that if REL.ITEM != 4(A); 4(B); 4(C) that the radio box's with values of "Yes", "Supp" and "Reg" are hidden while "do_not_transfer" is still displayed and checked.
    I've been going through forums, google and acrobat documentation and I can't seem to find what I'm looking for.
    Thanks for your help in advance.

    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    This should be:
    if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    Similarly,
    else if (transfer = "do_not_transfer")
    should be:
    else if (transfer == "do_not_transfer")
    In order to work with an individual widgets of a form field, obtain an object that represents the widget using the getField method as specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html

  • 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 insert radio button in application?

    Hi tecs,
    I want to insert the radio buttons in my form. But when i am writing
    <h:selectOneRadio id="fileBackup"                <f:selectItem itemValue="1" itemLabel="Installation"/>
    <f:selectItem itemValue="2" itemLabel="Folder/File" />     
    <f:selectItem value="#{backup.fileBackup}" />
    </h:selectOneRadio>
    i m getting error-
    javax.servlet.ServletException: javax.servlet.jsp.JspException: "{2}" Conversion Error setting value ''{0}'' for ''{1}''.
    plz tell me how to solve this ? it wud b really nice if some one can tell me the coding of jsp & corresponding bean.
    Thnx in advance.

    <h:selectOneRadio id="fileBackup" value="#{pc_formname.varname}"><f:selectItem itemValue="1" itemLabel="Installation"/>
    <f:selectItem itemValue="2" itemLabel="Folder/File" />
    <f:selectItem  itemvalue="#{backup.fileBackup}"  itemLabel="Folder/Filetemp" />
    </h:selectOneRadio>
    -- value binding expression should be of same type as itemvalue-- raju

  • How to handle radio /checkbox options

    If you have a report like so
    select HTMLDB_ITEM.RADIOGROUP(1,accid,'keep') "Accept",HTMLDB_ITEM.RADIOGROUP(1,accid,'delete') "Delete" ,accid,userid,username,authfails,clientid,tncdate,docsource,lastlogin,usertype,dateadded,recert from GFMIS.AUTOBAHNDIRECTACCOUNTS where recert = '0'
    Which would diplay two radio buttons one with keep and one with delete. When run run this through a process like
    FOR i in 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
    UPDATE GFMIS.AUTOBAHNDIRECTACCOUNTS SET recert = '1', RECERTBY = :APP_USER, RECERT_DATE = SYSDATE, RECERT_ACTION = 'radiobutton' WHERE ACCID = HTMLDB_APPLICATION.G_F01(i);
    END LOOP;
    How do i say if radiobutton = 'keep then RECERT_ACTION = 'what ever radio button was selected'

    Hi Kiranmai,
    You can capture the event of the radio button in the following way in oninputprocessing.
    DATA: event             TYPE REF TO if_htmlb_data,
                   radioButton_event TYPE REF TO CL_HTMLB_EVENT_RADIOBUTTON.
             event = cl_htmlb_manager=>get_event( request ).
             IF event IS NOT INITIAL AND event->event_name = htmlb_events=>radiobutton.
               radioButton_event ?= event.
               ENDIF.
    you can get the attributes of clicked radio button in
    event->event_class
    event->event_id.
    event->event_name
    event->event_type
    event->event_server_name
    In layout define the radio button as
    <htmlb:radioButtonGroup   id          = "test_id">
            <htmlb:radioButton      id          = "id_red"   text = "Red"               onClick="myClick" />
            <htmlb:radioButton      id          = "id_blue"  text = "Blue"          onClientClick="alert('blue clicked')"/>
            <htmlb:radioButton      id          = "id_green" text = "Green"      onClick="myClick" onClientClick="alert('green clicked')"/>
          </htmlb:radioButtonGroup>
    Hope this will solve your problem.
    Donot forget to assign points for helpful answers.
    Regards
    Aashish Garg

  • How to unselect Radio Button in VC

    Hi all,
    I have set of questions with radio button. I can select different values from radio button for different questions. I select one value (Ex: good)  from radio button and then if i click Next button the value of the radio button is not refreshed . It shows the same value what i have selected before that. How can i unselect the radio button for next questions?
    Help me in this regard.
    Thanks & Regards,
    Hemalatha J

    Hi Basheer,
    Ya, I am using single radio button Group and Single Form. I changed question field by doing system action of button(select Row action).
    Thanks & Regards,
    Hemalatha J

  • How to get Radio button select event in my co

    Hi,
    I want to get the radio button selection event in my co,how can i get the event?

    Hi,
    841475 wrote:
    I want to get the radio button selection event in my co,how can i get the event?---There is no event for radio button.
    ---U need to explicitily set the event for the radio button.
    Action:FirePaatialAction
    Event:RadioEvent---Get the event in co by below code:
    if("RadioEvent".equals(pageContext.getParameter(EVENT_PARAM)))
    ---In radio button event..:)
    Regards
    Meher Irk

Maybe you are looking for

  • Problem in BEx.

    It is not possible to use the colour pale blue in any workbook with a BEX query in it! As this is the corporate colour for all our reporting it’s getting messy moving all presentational tables into new workbooks. thanks.

  • RRMX/SSO not working with Win7/GUI 7.2

    Dear all, I'm testing the useability of our BW system with new Windows 7 and SAP GUI version 7.2. The only way of launching BEx analyzer is via RRMX or portal (using single sign-on) but this is not working. Once i trigger RRMX, Excel 2007 is opened (

  • [Win-Illustator 10]How to identify a 100% Process Black Swatch that has overprint filled?

    Hi, Im developing a Plugin using Illustrator 10 SDK. Development IDE-Microsoft VC++ 6.0 on windows. Please help me how to identify a Process swatch which has the following percentages of color:C-0,M-0,Y-0,K-100(Global option is ticked).Color mode CMY

  • Testing Function Module before using in DataSource?

    Hi Experts, After writing a Function module for Transaction DataSouce (by copying RSAX_BIW_GET_DATA_SIMPLE), is there any way to test the Function Module before using in Transaction DataSource? (to see how many records it retrieves). Also can somebod

  • FileSystemTree and "ordinary" Tree - make them look the same?

    Hi, I wondered if anyone's worked with Adobe AIR's FileSystemTree and the "ordinary" Tree in Adobe Flex, making them look the same? If so, can you give me some hints on how to make them look the same when it comes to icons, disclosure icons, branches