Dynamic radio button group

Hi ,
Is there any way we can create 'Text' along with radio button groups beside the text 'YES' and 'NO' dynamically in a VIEW through 'ABAP WEBDYNPRO'. Can we create a context node with 'TEXT' attribute.
Eg : TEXT RADIOBUTTON1 'yes' RADIOBUTTON2 'no'.
Thanks,
kumar

hi,
check this out.
method wddomodifyview .
data : LR_RADIOBUTTON1            type ref to CL_WD_RADIOBUTTON,
CALL METHOD cl_wd_radiobutton=>new_radiobutton
  EXPORTING
   bind_selected_key   =  '01' 
   BIND_TEXT           =  'One'
  receiving
    control             = LR_RADIOBUTTON1.
I think with the above code you will be able to create text along with Radio button.
Thanx.

Similar Messages

  • Dynamic creation of Radio Button Group

    Hi,
    I need to create a Radio Button Group dynamically and add Radio buttons to it.
    I am able to create the Radio buttons dynamically. Could someone help me how to create Radio Button Groups.
    I tried creating the Radio Button Group using the following code
                  DATA : lr_radiobuttongrp type REF TO CL_WD_RADIOBUTTON_GROUP_BY_IDX.
                  call method CL_WD_RADIOBUTTON_GROUP_BY_IDX=>NEW_RADIOBUTTON_GROUP_BY_IDX
                  EXPORTING
                    bind_texts = 'test'
                  RECEIVING
                    control = lr_radiobuttongrp.
                  cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_radiobuttongrp ).
                  lr_container->add_child( lr_radiobuttongrp ).
    But when I run it I am geting a dump "subnode viewname.ME does not exist".
    Thanks,
    Suvarna.
    Edited by: Suvarna Chittor on Aug 12, 2008 12:10 PM

    what is 'test' in bind text parameter
    you should provide the name in Capitals along with the node name,
    if the node name is TEXTS and the context attribute under this node is TEXT then you have to pass
    TEXTS.TEXT
    also provide the VIEW parameter to the call
    Abhi
    Edited by: Abhimanyu Lagishetti on Aug 12, 2008 12:26 PM

  • Dynamic radio button and group

    Hi, we have create dynamic radio button and group on “application creation complete” event , but which I am try to get number of radio button its show zero, see below code
    import flash.utils.setTimeout;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import spark.components.RadioButton;
    import spark.components.RadioButtonGroup;
    private var  rbg:RadioButtonGroup;
    private var  rb1:RadioButton;
    private var  rb2:RadioButton;
    private var dcount:int = 0;
    protected function application1_creationCompleteHandler(event:FlexEvent):void
         // TODO Auto-generated method stub
         // TODO Auto-generated method stub
         rb1 = new RadioButton();
         rb2 = new RadioButton();
         rbg = new RadioButtonGroup();
         rb1.label = "Radio1";
         rb2.label = "Radio2";
         rb1.group = rbg;
         rb2.group = rbg;
         vbox1.addChild(rb1);
         vbox1.addChild(rb2);
         checkRadioButton (); 
    protected function checkRadioButton ():void
         Alert.show("In checkRadioButton function : " +  rb1.group.numRadioButtons.toString());
    If I put some Time interval to call  checkRadioButton function its working fine,
    //checkRadioButton (); 
    setTimeout(checkRadioButton,1000);
    but this is not best practice.
    why this happen ….can anybody  clear  this or any other way to do this.
    Thanks in advance

    @manjeet.patel,
    Just write the below line of code
    vbox1.validateNow();
    You need not use setTimeout() function
    vbox1.addChild(rb1);
    vbox1.addChild(rb2);
    vbox1.validateNow();
    Thanks,
    Bhasker

  • How to disable a lead selected item in a radio button group ?

    Hi,
    I have a radio button group and there are entries to create radio buttons dynamically. means there is only one radio button group in the UI design and in runtime I will be having two radio buttons (For ex: Yes and No ) . Now If I want to disable either Yes or No radio button, I am unable to do so. because If I disable the radio button group it disables both.  So, I can have lead selected item for ex: Yes which I want to disable. I want to know specifically how this Yes button to be disabled by taking lead selected index item.
    Please help.
    Thanks
    Praveen

    Try setting the radio button value of the lead selected button to abap_false/space.

  • Dynamic radio buttons - Saving state?

    Hello
    I am trying to add some radio button groups to a page displaying products for sale. The number of groups depends on the record being displayed. For example, a television might have two option groups, one named 'Size' with options 24", 26", 28", another named 'Colour' with options black and silver.
    I have a DataTable bound to a HtmlDataTable in a backing bean This has an ArrayDataModel as its value. The DataTable has two columns. The first one displays the attributes name, e.g. 'Colour'. The second column displays the attributes values as a radio button group.
    When the product is loaded, the ArrayDataModel ('attributesArray') in the backing bean is populated with the product attributes. The class of objects held in the array are Object[] as this is necessary to split the data for the two columns.
    E.g. for two attribute in the table 'Size' and 'Colour'
    Object[] attributesArray = new Object[2];
    ArrayList colourSelectItems = new Array();
    ArrayList sizeSelectItems = new Array();
    SelectItem 24inch = new SelectItem(new Integer(24),"24 inch");
    SelectItem 26inch = new SelectItem(new Integer(26),"26 inch");
    SelectItem 28inch = new SelectItem(new Integer(28),"28 inch");
    SelectItem black = new SelectItem("silver","Silver");
    SelectItem silver = new SelectItem("black","Black");
    colourSelectItems.add(black);
    colourSelectItems.add(silver);
    sizeSelectItems.add(24inch);
    sizeSelectItems.add(26inch);
    sizeSelectItems.add(28inch);
    Object colourAttributeArray = new Object[]{"Colour",colourSelectItems};
    Object sizeAttributeArray = new Object[]{"Size",sizeSelectItems};
    attributesArray[0] = colourAttributeArray;
    attributesArray[1] = sizeAttributeArray;On the page i display the datatable as follows:
    <h:dataTable id="attributesTable" binding="#{addProductBean.attributesTable}" var="attribute" cellspacing="0" cellpadding="0" border="0" width="100%" columnClasses="default">
      <h:column id="attributeNameColumn">
        <h:outputText id="attributeName" value="#{attribute[0]}:" style="margin-right: 4px;"/>
      </h:column>
      <h:column id="attributeValuesColumn">
        <h:selectOneRadio id="attributeValues">
          <f:selectItems value="#{attribute[1]}"/>
        </h:selectOneRadio>
      </h:column>
    </h:dataTable>This works fine except I would like the first radio button in each group selected by default.
    This can be done pretty easy.
    I just change the row array to hold an extra element with the id of the default select item in it and add a value parameter to the h:selectOneRadio tag
    Object colourAttributeArray = new Object[]{"Colour","silver",colourSelectItems};
    Object sizeAttributeArray = new Object[]{"Size","24inch",sizeSelectItems};
    <h:selectOneRadio id="attributeValues" value="#{attribute[1]}">
      <f:selectItems value="#{attribute[2]}"/>
    </h:selectOneRadio>But there is a problem...
    Since the number of rows is dynamic there could be any number of radio button groups. As there is only one h:selectRadioButton in the display code (within the datatable tag) it can't be bound to a HtmlSelectOneRadioButton object in the backing bean. Each group loses its value if the form is submitted and returned with errors on it.
    Any solution or other help greatly appreciated. Thanks.

    I believe in this case, the standard way of doing things would be best. Create two String variables and a respective getter and setter. One String will hold the selected size, the other will hold the selected colour. Bind the value attribute of each selectOneRadio to the respective getter/setter of the backing bean.
    If you want to set the default to "silver" or "24inch", just initialize the String with those values.
    Here's how you're code will break down:
    Object[] attributesArray = new Object[2];
    ArrayList colourSelectItems = new Array();
    ArrayList sizeSelectItems = new Array();
    SelectItem 24inch = new SelectItem(new Integer(24),"24 inch");
    SelectItem 26inch = new SelectItem(new Integer(26),"26 inch");
    SelectItem 28inch = new SelectItem(new Integer(28),"28 inch");
    SelectItem black = new SelectItem("silver","Silver");
    SelectItem silver = new SelectItem("black","Black");
    colourSelectItems.add(black);
    colourSelectItems.add(silver);
    sizeSelectItems.add(24inch);
    sizeSelectItems.add(26inch);
    sizeSelectItems.add(28inch);
    Object colourAttributeArray = new Object[]{"Colour",colourSelectItems};
    Object sizeAttributeArray = new Object[]{"Size",sizeSelectItems};
    attributesArray[0] = colourAttributeArray;
    attributesArray[1] = sizeAttributeArray;
    String selectedColour = "silver";
    String selectedSize = "24inch";Don't forget to create your getter and setter for selectedColour and selectedSize in the addProductBean.
    And then create your datatable the same, but change the selectOneRadio tag like this:
    <h:selectOneRadio id="attributeValues" value="#{addProductBean.selectedColour}">
      <f:selectItems value="#{attribute[1]}"/>
    </h:selectOneRadio>Does that make any sense? Let me know how it turns out.
    CowKing
    PS - BTW, when you set the SelectItems for the TV size, you use Integer's as the value. Then later in your examples, you set the defaults using a String. Is this just a typo? I assume that you can get it working fine in whatever way you need it.

  • Creating a radio button group in a column of a table in Web Dynpro

    Hi,
    I want to put a radio button group in a column of a table in Webdynpro. I added a column to a web dynpro view and then inserted a tableCellEditor for that column.. But I cannot define it as Radio Button group. I want the user to be able to select 3 statuses using this group.
    Does anyone have a solution for this??
    Thanks in advance...
    Nakul

    Hi,
    You wont be able create three RB in one cell.
    Create as many column as the no of options is.Here it is 3.
    Create 4 attributes inside the node , option 1,option 2,option 3 and selectedoption.
    Map each RB s keytoSelect to option 1,2,3. Map all the RBs selectedKey atribute to selectedoption.
    Now selection for each row will be stored in the selected option.
    Regards
    Bharathwaj

  • Radio Button Groups

    Hi I am trying to create two radio button groups, one which contains other text buttons and names buttons, in this group only other text button or names can be chosen. But then within the other group I have all the names buttons, but i only want one of these to be chosen at a time. Heres my code
    [AS]
    import fl.controls.RadioButtonGroup;
    //===========================All Name Buttons============================
    var NameTxtRadio:RadioButtonGroup=new RadioButtonGroup("NameTxtRadio");
    LBtextMenu.LBnames.group=NameTxtRadio;
    RBtextMenu.RBnames.group=NameTxtRadio;
    LStextMenu.LSnames.group=NameTxtRadio;
    RStextMenu.RSnames.group=NameTxtRadio;
    LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    LStextMenu.LSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    RStextMenu.RSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    function NamesshowResult(event:MouseEvent):void {
       switch (NameTxtRadio.selection) {
              case RBtextMenu.RBnames :
               trace ("RB names chosen");
                             RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = true;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = false;
                            break;
                           case LBtextMenu.LBnames :
               trace ("LB names chosen");
                            RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = true;
                           LStextMenu.LSnames.selected = false;
                            break;
                           case LStextMenu.LSnames :
               trace ("LS names chosen");
                             RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = true;
                            break;
                           case RStextMenu.RSnames :
               trace ("RS names chosen");
                           RStextMenu.RSnames.selected = true;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = false;
                            break;
    //==========================Right Breast text menu==========================
    var RBTxtRadio:RadioButtonGroup=new RadioButtonGroup("RBTxtRadio");
    RBtextMenu.RBotherTxt.group=RBTxtRadio;
    RBtextMenu.RBnames.group=RBTxtRadio;
    RBtextMenu.RBotherTxt.addEventListener(MouseEvent.CLICK, RBshowResult);
    RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, RBshowResult);
    function RBshowResult(event:MouseEvent):void {
       switch (RBTxtRadio.selection) {
              case RBtextMenu.RBotherTxt :
               trace ("RB other chosen");
                            break;
                           case RBtextMenu.RBnames :
               trace ("RB names chosen");
                            break;
    //==============================================================================
    //==========================Left Breast text menu==========================
    var LBTxtRadio:RadioButtonGroup=new RadioButtonGroup("LBTxtRadio");
    LBtextMenu.LBotherTxt.group=LBTxtRadio;
    LBtextMenu.LBnames.group=LBTxtRadio;
    LBtextMenu.LBotherTxt.addEventListener(MouseEvent.CLICK, LBshowResult);
    LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK,LBshowResult);
    function LBshowResult(event:MouseEvent):void {
       switch (LBTxtRadio.selection) {
              case LBtextMenu.LBotherTxt :
               trace ("LB other chosen");
                            break;
                           case LBtextMenu.LBnames :
               trace ("LB names chosen");
                            break;
    //==============================================================================
    //==========================Left Shoulder text menu==========================
    var LSTxtRadio:RadioButtonGroup=new RadioButtonGroup("LSTxtRadio");
    LStextMenu.LSotherTxt.group=LSTxtRadio;
    LStextMenu.LSnames.group=LSTxtRadio;
    LStextMenu.LSotherTxt.addEventListener(MouseEvent.CLICK, LSshowResult);
    LStextMenu.LSnames.addEventListener(MouseEvent.CLICK,LSshowResult);
    function LSshowResult(event:MouseEvent):void {
       switch (LSTxtRadio.selection) {
              case LStextMenu.LSotherTxt :
               trace ("LS other chosen");
                            break;
                           case LStextMenu.LSnames :
               trace ("LS names chosen");
                            break;
    //==============================================================================
    //==========================Right Shoulder text menu==========================
    var RSTxtRadio:RadioButtonGroup=new RadioButtonGroup("RSTxtRadio");
    RStextMenu.RSotherTxt.group=RSTxtRadio;
    RStextMenu.RSnames.group=RSTxtRadio;
    RStextMenu.RSotherTxt.addEventListener(MouseEvent.CLICK, RSshowResult);
    RStextMenu.RSnames.addEventListener(MouseEvent.CLICK,RSshowResult);
    function RSshowResult(event:MouseEvent):void {
       switch (RSTxtRadio.selection) {
              case RStextMenu.RSotherTxt :
               trace ("RS other chosen");
                            break;
                           case RStextMenu.RSnames :
               trace ("RS names chosen");
                            break;
    //==============================================================================
    [/AS]
    I have no problem choosing between either, other text button or names, only one is selected at a time, but this isnt the case for the other group im able to select multiple name buttons without the other one becoming deselected.
    Thanks in advance for any help.

    Hi just if anyone else wants to do something like i have, I had to ditch the radio button component and make my own.
    Heres the code.
    [AS]
    RBnamesTextButton.CustomRadioButton.stop();
    LBnamesTextButton.CustomRadioButton.stop();
    RSnamesTextButton.CustomRadioButton.stop();
    LSnamesTextButton.CustomRadioButton.stop();
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    function rollOverState01(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("over");
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    function rollOffState01(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("off");
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    function rollupState01(event:MouseEvent):void
              RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              event.target.gotoAndStop(3);
    //======================================OTHER TEXT========================================================
    RBotherTextButton.CustomRadioButton.stop();
    LBotherTextButton.CustomRadioButton.stop();
    LSotherTextButton.CustomRadioButton.stop();
    RSotherTextButton.CustomRadioButton.stop();
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    function rollOverState02(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("over");
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    function rollOffState02(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("off");
    //===============================RB BUTTONS================================================
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState03);
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState04);
    function rollupState03(event:MouseEvent):void
              RBnamesTextButton.CustomRadioButton.gotoAndStop(3);
              RBotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Breast names clicked")
    function rollupState04(event:MouseEvent):void
              RBotherTextButton.CustomRadioButton.gotoAndStop(3);
              RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Breast text clicked")
    //======================================================================================== =======
    //===============================LB BUTTONS================================================
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState05);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState06);
    function rollupState05(event:MouseEvent):void
              LBnamesTextButton.CustomRadioButton.gotoAndStop(3);
              LBotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Breast names clicked")
    function rollupState06(event:MouseEvent):void
              LBotherTextButton.CustomRadioButton.gotoAndStop(3);
              LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Breast text clicked")
    //======================================================================================== =======
    //===============================RS BUTTONS================================================
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState07);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState08);
    function rollupState07(event:MouseEvent):void
              RSnamesTextButton.CustomRadioButton.gotoAndStop(3);
              RSotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Shoulder names clicked")
    function rollupState08(event:MouseEvent):void
              RSotherTextButton.CustomRadioButton.gotoAndStop(3);
              RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Shoulder text clicked")
    //======================================================================================== =======
    //===============================LS BUTTONS================================================
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState09);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState10);
    function rollupState09(event:MouseEvent):void
              LSnamesTextButton.CustomRadioButton.gotoAndStop(3);
              LSotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Shoulder names clicked")
    function rollupState10(event:MouseEvent):void
              LSotherTextButton.CustomRadioButton.gotoAndStop(3);
              LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Shoulder text clicked")
    //======================================================================================== =======
    [/AS]
    There is probably a more efficent way to code this but im an AS noob :]

  • Radio Button group with images stored as BLOB files in database

    Hey all!
    I have radio button group, my idea is that radio button's LOV must display images, I mean BLOB files stored in a table.
    How can I do this?

    Hello Ken,
    I asked similar question in the past, and I believe the answer is still the same.
    Select List as an option of a Radio Group
    In your case, I think you can use a select list with added functionality, like "Select List with Branch to Page" or "Select list with Submit", or you can just attach an onChange event (JavaScript) to each select list. The effect should be similar to a radio group – as soon as the user select one item from any of the select lists, you can fire some action, based on the select list value.
    Hope this can help,
    Arie.

  • Form UIBB: Radio Button Group: How to set default value?

    Hello,
    i've added a Radio Button Group in Forum UIBB (FPM_FORM_UIBB) with 3 possible values. How can I set the default value for this group? When starting the application, no radio button is selected..
    Thanks & Regards
    Christopher

    Hi Christopher,
    i've the same requiremnt for adding a Radio Button Group and 3 Radio buttons under it in Forum UIBB (FPM_FORM_UIBB) with 4 possible values..
    I have added 3 custom fields for 3 Radio buttons in the structure. In the desin time, I have added these 3 fields and taken as Radion button Group. But, Only label is coming on the output...
    I totally stuck here. Can you please guide me on this in details as to how to add the Radio buttons and how its action can be handled?
    It's bit urgent for me.
    Thanks in advance,
    Sumesh 

  • Radio button grouping across boxes

    I have 10 or so radio buttons on a shortcut screen that I need to put together in logical groupings.  I've grouped them in boxes; however, I need them to group as a single radio button grouping.  Is this possible?  When I try to put them in a grouping, I can only group those items within a given box...not all items in all boxes.
    Thanks in advance for your help.

    I dont think its possible to have in all diff box R-buttons in one group.

  • Dynamic radio button in web dynpro abao

    Hi expert,
    I want to dynamic radio button by  web dynpro abap .
    Kindly give me a soulation ASAP.
    Thanks and regard's
    Vikash

    hi,
    method wddomodifyview .
    if first_time eq abap_true.
    data: LR_CONTAINER         type ref to CL_WD_UIELEMENT_CONTAINER,
          LR_RADIOBUTTON1            type ref to CL_WD_RADIOBUTTON,
          LR_RADIOBUTTON2            type ref to CL_WD_RADIOBUTTON,     
          LR_FLOW_DATA         type ref to CL_WD_FLOW_DATA.
    " bind text property will give TEXT that appears next to Radio Button
    CALL METHOD cl_wd_radiobutton=>new_radiobutton
      EXPORTING
       bind_selected_key   =  '01' 
       BIND_TEXT           =  'saurav'
      receiving
        control             = LR_RADIOBUTTON1.
    " bind text property will give TEXT that appears next to Radio Button
    CALL METHOD cl_wd_radiobutton=>new_radiobutton
      EXPORTING
        bind_selected_key   = '02'
       BIND_TEXT           = 'mago'
      receiving
        control             = LR_RADIOBUTTON2.
    LR_FLOW_DATA        =  CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = LR_RADIOBUTTON1  ).
    LR_FLOW_DATA        =  CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = LR_RADIOBUTTON2  ).
    LR_CONTAINER ?= view->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).
    LR_CONTAINER->ADD_CHILD( LR_RADIOBUTTON1  ).
    LR_CONTAINER->ADD_CHILD( LR_RADIOBUTTON2  ).
    endif.
    endmethod.
    Thanx.

  • Calling radio button group by group name in SAP Appbuilder

    Hi, I'm new to SAP Appbuilder but I do have some really beginner Javascript knowledge.
    I'm trying to create a survey mobile app but I don't seem to be able to get the ID of a radio button based on the radio button group.
    This is my logic to try to change the text of a label with the ID of the selected radio button.
    This function has been set to the event of all 4 radio buttons that have the same radio button group name, "choices".
    Help needed.
    Regards RotiJohn

    First, why do you set the value in wdDoModifyView() and not in a non-static method of the controller?
    In your code example you read the value from a node named "AddEmployeeTime" but you set the value on a node named "EmployeeTime". Is that correct?
    Armin

  • Position  for dynamic radio button

    Hi expert,
    i created a dynamic radio button in my web dynpro application but i want to give the position in top of the my view kindly give me on example for this issue.
    thank's and regard's
    vikash

    Use this.............
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89
    The sequence to place a new UIElement at the screen is as follows:
    1.Create the UIElement
    2.Create the LayoutData that fits to the Layout of the surrounding container
    3.Insert the UIElement into the surrounding container
    *Code to create new button dynammically:
    lr_button = cl_wd_button=>new_button( on_action = `CHANGE_TEXT` ).
    **The following coding changes the design of a button to "emphasized":*
    lr_button->set_design( cl_wd_button=>e_design-emphasized ).
    set the new text*
      lr_button->set_text( new_text ).
    For Step 2 and Step 3 refer code by Radhika.
    Thanx.
    Saurav.

  • Two radio button groups merging into one, and I don't want that. How do I fix it?

    I have two sets of radio buttons that I want to be independent of each other. How do I do that?  Just to be clear... I have one set with two buttons.  The second set has six buttons.  They are independent of each other - they just happen to fall in line one right after the other.  LiveCycle keeps putting them together. 
    I have very limited knowledge and am learning as I go.  Thanks for any help that you can give me.

    Select the Radio button that you want to be independent of the other radio buttons, RIGHT click and choose Wrap in New Radio Button Group.
    This way it can be selected along with other radio buttons..
    One question here. If you want each radio button to be independent of each other, why not change them to Check Boxes instead of Radio Buttons.
    Thanks
    Srini

  • Radio Button Groups - always below each other?

    Hello,
    When you create a RadioButtonGroup either ByKey or ByIndex it always puts each element under the next one. I was wondering if there was a way to put each element NEXT to each other, so I read each option from left to right instead of from top to bottom.
    Thanks in advance,
    Jennifer

    Hi Jacobs,
    Assign the 'colCount' property of RadioGroupByXX object to the number of radio buttons you want to have. Then you would get all ur radio buttons side-by-side instead of below to each other.
    for example, if u have 2 radio buttongs in the radio button group then assign colCount=2.
    Thanks,
    Raags
    PS: If useful assign points

Maybe you are looking for

  • Abend Page Fault

    NW65SP8 GW8SP1HP (1 each POA, MTA, GWIA) Server was updated with NW65SP8 and GW8SP1HP on 7/6/10. This is the first issue since that work. Below is the contents of the abend log. Any ideas would be greatly appreciated. In Advance, thanks, JoeK Novell

  • Upgrade IMP 9.1.1 to 10.5.2 and CUPC 8.6.3

    I have a customer that I will be upgrading CUCM 9.1.1 to 10.5.2 and IMP 9.1.1 to 10.5.2 very shortly.  My question is they are currently using CUPC 8.6.3 client on the IMP 9.1.1 server.  They are not using Jabber yet.  I cannot find an documentation

  • Retrieve files from MAC BOOK HD

    Hello, Could anyone refer me to some instructions for recovering some files from a MAC BOOK Hard Drive? The laptop will no longer start up after Installed some updates. When it boots up it reverts to a UNIX style command prompt. Before it gets to thi

  • Layers Panel question: icon not updating

    A Levels Adj. Layer sits above a regular Layer. When I make a change with Levels, the image updates normally, but the icon of the image in the Layers Panel does not change--it always reflects its original appearance. I believe that the icon updated i

  • Photoshop Elements 12,  When opening Editor --  "Editor has stopped working"  Any solutions?

    Just purchased Photoshop Elements 12,  When opening Editor --  "Editor has stopped working"  Any solutions?