Create dinamic radiobuttons

hi all!
i have internal table, and earlier somebody use dialog screen with list processing: "write ... as checkbox".
but at present only one record must be select.
how can i create a dinamic radiobutton?
(i'm sorry about my english
thank you
Message was edited by: Artjom Schmidt

You can even use an icon for the hotspot.  This may give more of an indication that the user should click on it.
report zrich_0002 no standard page heading.
<b>type-pools: icon.</b>
data: ivbak type table of vbak with header line.
data : cursor_field(30),
       field_value(30) .
start-of-selection.
  select * into corresponding fields of table ivbak
      from vbak
          up to 20 rows.
  loop at ivbak.
    format hotspot on.
<b>    write:/ ICON_EXECUTE_OBJECT as icon,
     ivbak-vbeln.</b>
    hide ivbak-vbeln.
    format hotspot off.
  endloop.
at line-selection.
  set parameter id 'AUN' field ivbak-vbeln.
  call transaction 'VA03' and skip first screen.
Regards,
Rich Heilman

Similar Messages

  • Can bpm create dinamic task?

    hi
    can bpm create dinamic task?
    the requirement is a fork and many(or non) task behind it.
    i don't know how many, it will depend on data from db.
    and it will such like "vote".
    can it? how to?

    Check whether the ethod is properly implemented. Or just logout and login and try to do it all over again.  I faced this issue and this resolved.
    <b>Reward points if useful</b>

  • [Help] Create dinamically components and its id

    Hello guys.
    I need a help
    I know it sounds weird from the title above but I have been struggling to find a better solution but can´t figure it out.
    I have searched through internet but couldn´t find a solution for my problem.
    Here is what I have to do.
    I need to create an agenda. Every single cell has to accept an new event or delete an existing event
    The idea is to show all 365 days of the year. It´s important and clearer to the user.
    I´ve tried to use the <mx:Repeater> to reproduce a custom component 365 times. It was successfull but I can´t figure out a way to access those components to change its properties.
    As some of them may have an apointment and others not.
    <mx:HBox horizontalGap="0">
    <mx:Repeater id="monthRepeater">
    <mx:VBox verticalGap="0">
    <mx:Box id="mes_box" borderColor="#000000"
    borderStyle="solid"
    borderThickness="0.5"
    width="80">
    <mx:LinkButton label="{monthRepeater.currentItem.month}" fontStyle="normal" fontWeight="normal"/>
    </mx:Box>
    <mx:VBox verticalGap="0">
    <mx:Repeater id="daysRepeater">
    <visao:CaixaDia id="day_caixaDia" linktexto="{daysRepeater.currentItem.day}" labeltexto="{daysRepeater.currentIndex}" />
    </mx:Repeater>
    </mx:VBox>
    </mx:VBox>
    </mx:Repeater>
    </mx:HBox>
    Is there a way to use <mx:Repeater> and create dinamically IDs for those components?
    Thanks

    You can access the objects created by a repeater as if the id were an array, as in the following sample code:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.collections.ArrayCollection;
          import mx.containers.VBox;
          import mx.controls.Label;
          [Bindable] private var ac:ArrayCollection = new ArrayCollection([
            {vb_color: 0x000000, lb_text: "Black"},
            {vb_color: 0xFFFFFF, lb_text: "White"},
            {vb_color: 0xCCCCCC, lb_text: "Gray"},
            {vb_color: 0xFF0000, lb_text: "Red"},
            {vb_color: 0x00FF00, lb_text: "Green"},
            {vb_color: 0x0000FF, lb_text: "Blue"}
          private function changeUI():void{
            for each(var vb:VBox in topVB){
              vb.setStyle("backgroundColor", 0xFFFFFF);
            for each(var lbl:Label in myLabel){
              lbl.text = "changed";
        ]]>
      </mx:Script>
      <mx:Button label="Change UI" click="changeUI();"/>
      <mx:Repeater id="rp" dataProvider="{ac}">
        <mx:VBox id="topVB" backgroundColor="{rp.currentItem.vb_color}">
          <mx:Label id="myLabel" text="{rp.currentItem.lb_text}"/>
        </mx:VBox>
      </mx:Repeater>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Sort table columns in a table and context created dinamically

    Hello all,
    I have implemented the table sorting several times in another developments, but now I'm facing a problem.
    I have created the table and context node that I need to sort dinamically (before somebody ask me why, I would say that it's the only way to do that for my current project, there was no possibility of doing that in dessign time). I have implemented the table sorting more or less the same way I would do with a table created in dessing time, but when I run my WD the sorting of columns doesn't work.
    In the wdDoModifyView, I have put the following code:
    if(firstTime){
    IWDAction ordenacion     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ORDENACION,  null);
    IWDParameters param = ordenacion.getActionParameters();
    param.addParameter("nombreNodo",nombreNodo);
    and in the code of the action
        //@@begin onActionOrdenacion(ServerEvent)
         System.err.println("**** NOMBRE NODO **** "+nombreNodo);
         wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.getChildNode(nombreNodo, IWDNode.LEAD_SELECTION));
        //@@end
    The name of the node ("nombreNodo) it's only correct the first time I click on a column.
    Has anybody implemented the table sorting in a dinamically created table and context node? And how do you do to make it works.
    Thank you very much

    Here is the code
    //Preparamos Navegaciones
    IWDAction abrirProyecto = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ABRIR_PROYECTO, null);
    IWDAction abrirDisp     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ABRIR_DISPONIBLE,  null);
    //IWDAction ordenacion     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ORDENACION,  null);
    IWDAction ordenacion=wdThis.wdGetOrdenacionAction();
    IWDParameters param = ordenacion.getActionParameters();
    param.addParameter("nombreNodo",nombreNodo);
    IWDTable table = wdThis.wdGetInformesController().crearTabla(view, nombreNodo, movimientosInfo,new String[]{"Codi Projecte",null,"Nom Projecte", "Import Projecte", "Client", "Increment Disponible futur per facturació no emesa i / o anualitats pendents","Increment Disponible futur per ingressos pendents de cobrar", "Disponible"},new String[]{"10px", null,"10px", "10px","10px","10px","10px","10px"},new IWDAction[]{abrirProyecto,null, null, null, null,null,null,abrirDisp}, -1);
    //ordenar tabla
    wdContext.currentContextElement().setTableSorter(new TableSorter(table, ordenacion,null));
    containerTablasProyecto.addChild(table);
    Edited by: Mireia Romo on May 28, 2009 12:27 PM

  • Create dinamic nodes and attributes

    Hi Forum!
    I have created a WDA with 2 views. On the START_VIEW, the user can input details from an installation.  I want to display an error on the START_VIEW when a condition is false.
    How I can create a node with an attribute dinamically to display this error if the message Text View is not defined on the view?
    Could you give me a any sample of code, please?
    Thank you very mucha and regards,
    Manuel.

    Hi Manuel,
    Pleaes try this out. This is how to create an attribute dynamically.
    DATA: attribute      TYPE wdr_context_attribute_info.
    DATA: main_node  TYPE REF TO if_wd_context_node_info.
      "get main node
      main_node = wd_context->get_node_info( ).
      "set name for this attribute
      attribute-name = 'SOME_NAME_4_ATTR'.
      "set data type for this attribute
      attribute-type_name = 'SOME_DATA_TYPE'.
      "add attribute into context node
      main_node->add_attribute( attribute_info = attribute ).
    Thanks.
    Regards,
    Georgy Norkin

  • How to Create Dynamic RadioButton Group by Index

    Hi to all,
                 I would like to create an Questionaire.For that, I have created one Text View & Radio button Group by index at design time. which will fetch the values(ie Values are Questions & Ans options ) from R/3. since I need to fetch N number of values which must be mapped with Multiple Text views & Radio Button Groups i want to create Text view & Radio button Group by index UI Elements dynamically.How to do that?
    Please bring me an solution to this problem.
    Thanks in advance.
    Regards,
    Malar.

    Hi Murtuza,
                        Thanks for ur solution...
    anyway again i got an same error. Option button not enabled...
    so i have created a dynamic context node & map it with the RadioButton Group by Index...Now it s working fine...
    if(firstTime){
           //Test2Node.invalidate();
              for(int i=0;i<wdContext.nodeQuestions().size();i++)
                        IWDNodeInfo nodeinfo=wdContext.getNodeInfo();
                        /* This will add a ValueNode */
                        IWDNodeInfo customerNode=nodeinfo.addChild("Questionaire"+i,null,true,true,true,false,false,true,null,null,null);
                        /* This will add a Attribute to the above Node */
                        IWDAttributeInfo custAttr=customerNode.addAttribute("Quest"+i,"com.sap.dictionary.string");
                        IWDAttributeInfo custAttr1=customerNode.addAttribute("Options"+i,"com.sap.dictionary.string");
                        IWDNode NodeQuest = wdContext.getChildNode("Questionaire"+i,0);
                        NodeQuest.getCurrentElement().setAttributeValue("Quest"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getQues());
              //     NodeQuest.getCurrentElement().setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionA());
                   IWDTransparentContainer tc = (IWDTransparentContainer)view.getElement("TransparentContainer");
                        IWDTextView tv =(IWDTextView) view.createElement(IWDTextView.class,"MyTextView1"+i);
                      tv.setText(wdContext.nodeQuestions().getQuestionsElementAt(i).getQues());
                      tc.addChild(tv);
                     IWDNodeElement NodeElt= NodeQuest.createElement();
                     NodeElt.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionA());
                  NodeQuest.addElement(NodeElt);
                   IWDNodeElement NodeElt1= NodeQuest.createElement();
                                   NodeElt1.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionB());
                                   NodeQuest.addElement(NodeElt1);
                   IWDNodeElement NodeElt2= NodeQuest.createElement();
                                   NodeElt2.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionC());
                                   NodeQuest.addElement(NodeElt2);
                   IWDNodeElement NodeElt3= NodeQuest.createElement();
                                                  NodeElt3.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionD());
                                                  NodeQuest.addElement(NodeElt3);
                   IWDRadioButtonGroupByIndex rbg = (IWDRadioButtonGroupByIndex)view.createElement(IWDRadioButtonGroupByIndex.class,"RBG1"+i);
                             rbg.bindTexts("Questionaire"i".Options"+i);     
                             //IWDRadioButton rb = (IWDRadioButton)view.createElement(IWDRadioButton.class,"RBG1"+Iter);
                             //rb.bindText("Test2.RadioTest");          
                                tc.addChild(rbg);
                 This s the code....
    Thank you. anyway
    Regards,
    Thenmalar

  • Create dinamic HorizontalGutter

    Hello I'm creating the following HorizontalGutter dinamicly and I have
    the exception: ( java.lang.ClassCastException )
              IWDHorizontalGutter gut =
                   (IWDHorizontalGutter) view.createElement(
                        IWDHorizontalGutter.class,
                        "Gutter1" + index);
    Does anybody know what is left?
    Thanks in advance!

    //@@begin javadoc:createUIeleOrg()
         /** Declared method. */
      //@@end
      public void createUIeleOrg( int index, com.sap.tc.webdynpro.progmodel.api.IWDView view, comp.diageo.sims.wdp.IPrivateSearchPage.IOrganisationElement ele )
        //@@begin createUIeleOrg()
              IWDTransparentContainer org =
                   (IWDTransparentContainer) view.createElement(
                        IWDTransparentContainer.class,
                        SimsConstants.c_torg + index);
              org.createLayout(IWDGridLayout.class);
              IWDLinkToAction lto =
                   (IWDLinkToAction) view.createElement(
                        IWDLinkToAction.class,
                        SimsConstants.c_lto + index);
              IWDAction linkAction =
                   wdThis.wdCreateAction(
                        IPrivateSearchPage.WDActionEventHandler.TO_ORG_DETAILS,
                        c_blank);
              lto.setOnAction(linkAction);
              lto.mappingOfOnAction().addParameter(
                   SimsConstants.c_orgid,
                   ele.getOrgID());
              IWDCaption lab =
                   (IWDCaption) view.createElement(
                        IWDLabel.class,
                        SimsConstants.c_lb1 + index);
              IWDCaption lab2 =
                   (IWDCaption) view.createElement(
                        IWDCaption.class,
                        SimsConstants.c_lb2 + index);
              IWDCaption lab3 =
                   (IWDCaption) view.createElement(
                        IWDCaption.class,
                        SimsConstants.c_lb3 + index);
              IWDHorizontalGutter gut =
                   (IWDHorizontalGutter) view.createElement(
                        IWDHorizontalGutter.class,
                        SimsConstants.c_gut + index);
              lto.setText(SimsConstants.c_title + ele.getOrgName());
              lab.setText(SimsConstants.c_address + ele.getOrgAddress());
              lab2.setText(SimsConstants.c_showner + ele.getOrgOwner());
              lab3.setText(SimsConstants.c_comment + ele.getOrgNotes());
              org.addChild(lto);
              org.addChild(lab);
              org.addChild(lab2);
              org.addChild(lab3);
              org.addChild(gut);
              IWDTransparentContainer tc =
                   (IWDTransparentContainer) view.getElement(SimsConstants.c_transorg);
              tc.addChild(org, index);
        //@@end
    The code before insert the Gutter part was working, only after insert the part corresponding to the gutter, an exception is raised.

  • Create dinamic component

    i want to create as many image component as many are in an array
    For example
    private var data:ArrayCollection = new ArrayCollection();
    data[0] = "pic0.jpg";
    data[1] = "pic1.jpg";
    data[2] = "pic2.jpg";
    data[3] = "pic3.jpg";
    data[4] = "pic4.jpg";
    in this case i want to create 5 image component with their source image.
    how do?

    Hi napster,
    As suggested by Alex you can try the below approaches...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection; 
    Bindable]private var _data:ArrayCollection = new ArrayCollection(["pic0.jpg","pic1.jpg","pic2.jpg","pic3.jpg","pic4.jpg","pic5.jpg"]); 
    ]]>
    </mx:Script>
    <mx:VBox verticalGap="0">
    <mx:Repeater id="rptImages" recycleChildren="true" dataProvider="{_data}">
    <mx:Image source="{rptImages.currentItem}" />
    </mx:Repeater>
    </mx:VBox>
    <mx:List id="lstImages" dataProvider="{_data}">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Image source="{data}"/>
     </mx:Component>  
    </mx:itemRenderer>
     </mx:List></mx:Application>
    You can use either use a Repeater component or a List control as shown in the above example.
    Thanks,
    Bhasker

  • Get upload file from a RichFileInput(s) created dinamically  (11.1.1.2.0g)

    Hello to all,
    I saw the tutorial for managing the file by RichFileInput (opn http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_input.htm#BABDFAEI) I think that the key is the association between the attribute value of af:inputFile element and file attribute of bean.
    public class ProcessFileUpload {
    private UploadedFile _file    ------------> mapped to ---->  <af:inputFile value="#{ProcessFileUplade.file}"...
    But I cannot add mappings because I add a lot of RichFileInput dynamically to the page, so I don't know how many files I'l have.
    So, is it possible to map the value attribute to an element of an ArrayList<UploadedFile>? How can I do this by EL in java?
    Thank you,
    Cristian
    Edited by: baol on Apr 9, 2010 6:43 AM
    Edited by: baol on Apr 9, 2010 6:44 AM

    I reply to myself:
    Use a Array:
    private UploadedFile[] files = new UploadedFile[10];
    And then add use this on every RichInputFile ;
    private UIComponent addFileAssociation(UIComponent comp, int id) {
    FacesContext ctx = FacesContext.getCurrentInstance();
    Application application = ctx.getApplication();
    ExpressionFactory ef = application.getExpressionFactory();
    String veString = "#{backingBeanScope.backing_document.files["+id+"]}";
    ValueExpression ve = null;
    try{
    ve = ef.createValueExpression(FacesContext.getCurrentInstance().getELContext(), veString, Object.class);
    } catch (Exception e){
    e.printStackTrace();
    comp.setValueExpression("value", ve);
    comp.setId("file_"+id);
    return comp;
    Yest it works :)
    Cristian

  • How to create radiobuttons dynamically

    Hi,
    I've always used static simpletypes when I created radiobuttons dynamically, but now I'm trying to get the possible answers of a radiobutton from a RFC.
    My scenario is:
    I use an initial RFC which returns me a table with questions, desciptions,...and then I use a 2nd RFC with the identifier of each question and SAP returns the different possible answers the user could choose in the radiobutton. All possible answers will be strings.
    Can you help me?
    wdDoInit
    ======
    //execute first RFC: Zhr_Bapi_Appraisal_Getdetail_Input
    wdContext.currentZhr_Bapi_Appraisal_Getdetail_InputElement().setAppraisal_Id(codeBapi2);       wdContext.currentZhr_Bapi_Appraisal_Getdetail_InputElement().setPernr(pernBapi2);
    wdContext.currentZhr_Bapi_Appraisal_Getdetail_InputElement().setPlan_Version("01");
    wdThis.wdGetBapiEvaluacionesCust0Controller().executeBapi_Appraisal_GetDetail();
    wdThis.wdGetBapiEvaluacionesCust0Controller().executeZhr_Bapi_Appraisal_Getdetail_Input();
    for (int i=0; i<IAppraisal_DataSalidaNode dataSalidaNode = wdContext.nodeOutputSalida().nodeAppraisal_DataSalida().size(); i++){
    //execute second RFC:Bapi_Appraisal_Scale_Getdetail_Input
    wdContext.currentBapi_Appraisal_Scale_Getdetail_InputElement().setElement_Id(element.getElement_Id());     wdContext.currentBapi_Appraisal_Scale_Getdetail_InputElement().setElement_Type(element.getElement_Type());
    wdContext.currentBapi_Appraisal_Scale_Getdetail_InputElement().setPlan_Version("01");
    wdThis.wdGetBapiEvaluacionesCust0Controller().executeBapi_Appraisal_Scale_Getdetail_Input();
    // if the second RFC returns a anything different form null I would like to create/edit generic simpletype to create the radiobutton possible answers
    if (wdContext.nodeOutputSalida2().size>0){
    //which code should I use here?? I guess that something like this:
    for (int j=0; j<wdContext.nodeOutputSalida2().size; j++){
    IwdAttibuteInfo info=wdcontext.node<nodename>().getNodeInfo().getAttribute(<Attribute name created in the Node>);
    ISimpleTypeModifiable stm=info.getModifiableSimpleType();
    IModifiableSimpleValueSet svs=stm.getSVServices().getModifiableSimpleValueSet();
    svs.put(""+j,wdContext.nodeOutputSalida2().getAnswerElementAt(j).getAnswerText());
    Edited by: Joan Roda on Jun 13, 2008 10:24 AM

    Hi Armin,
    I am encountering a similar problem.
    The texts property is supposed to be bound to an element in the context, but it need to provide more than one text (and one element only has one value, if I am correct).
    How can I show more than one element in the radiobuttongroup?
    Thanks, Johannes

  • Facing Error in Radiobutton - Webdynpro ABAP

    Hi,
    I am using Radiobutton UI Element.
    I have requirement of taking 5 Radiobutton in which user can only select 1 value.
    So I have created 5 Radiobutton . I have binded KeytoSelect property to different value
    Say
    For 
    RD1 its LA
    RD2 its LB
    RD3 its LC
    RD4 its LD
    RD5 its LE
    So i have bound all these radiobutton to one attribute of node whose cardanality is 1 : 1 and type char2.
    So when i execute it , on any event on screen it is giving me error
    'The value entered is not in the list of allowed values.'
    So i could not found the reason why it is coming. I have also tried to make one data element and domain and try to put
    the values like LA  to LC in its fixed value but again it is giving the same error.
    Please suggest
    Thanks
    Ankesh

    Have you used RADIO_BUTTON_GROUP_BY_IDX or RADIO_BUTTON_GROUP_BY_KEY?  And check the fixed values that you have used. You should use LA rathen than 'LA'.
    You need to do some coding for radio button ui element and attach an event for eg. ON_SELECT to it.
    Eg. I have 4 radio buttons and bound it to attribute with domain having fixed values 1,2,3 and 4.
    Then do the coding in method ONACTIONON_SELECT that is attached to UI Element radio button.
    Here RADIO_BUTTON_GROUP_BY_KEY is used.
    data : str type string.
      str = wdevent->get_string('KEY').
      if str = '1'.
        CALL METHOD wd_context->set_attribute
          EXPORTING
           index  = USE_LEAD_SELECTION
         value  =  ' radio button 1 selected'
            name   = 'DISPLAY'
    where DISPLAY is attribute of type string.
        ELSEIF str = '2'.
       CALL METHOD wd_context->set_attribute
          EXPORTING
           index  = USE_LEAD_SELECTION
         value  =  ' radio button 2 selected'
            name   = 'DISPLAY'.
      ELSEIF str = '3'.
        CALL METHOD wd_context->set_attribute
          EXPORTING
           index  = USE_LEAD_SELECTION
         value  =  ' radio button 3 selected'
            name   = 'DISPLAY'
        ELSEIF str = '4'.
         CALL METHOD wd_context->set_attribute
          EXPORTING
           index  = USE_LEAD_SELECTION
         value  =  ' radio button 4 selected'
            name   = 'DISPLAY'.
        endif.

  • How to create yes or no radiogroup dynamically for a set of questions

    hi,
    I am new to APEX.Depending upon my project requirement I need to create a set of questions with yes or no as radiogroup buttons,appended with a textarea for each question.For ex:
    1.Name o Y o N [ "text area"]
    The above line specifies the model I need.
    Here text area is used for writing comments.
    Now the question is how can I create them dynamically using apex_item.
    Its very urgent.Kindly reply me soon.
    Thanks in advance.

    Thanks for ur quick reply.
    But what actually I need is,I need to create the radiobuttons also dynamically.
    I have created them by the following syntax,
    select ename,apex_item.radiogroup(eno,'y' ) yes,apex_item.radiogroup(eno,'N')
    from emp;
    but the problem with this is ,
    when I inserted yes for the first one it is taking and if i am giving the second one also as YES then it is not accepting ..means it is checking the second item by clearing the first one.
    What I need is when I check the second one the first one should not get cleared.
    Thanks in advance.

  • Radiobutton in screen painter

    Hi all,
    I am using screen painter to create a screen with different elements. One of them is to create 2 radiobuttons but oly one has to be "checked" when the screen is in output. How do i do that?
    thanks!

    Hello Mel,
    U can refer to the sample report <b>demo_dynpro_check_radio</b>.
    When u r creating the screen, include two radiobuttons.
    then select all the radibuttons and right click and say define.
    If useful reward.
    Vasanth

  • Make RadioButton appear as ToggleButton

    Hello,
    I have spent much time in this issue, but couldn't find a proper solution.
    I have a panel with togglebuttons on it. These togglebuttons are listitems of different Lists and can't be grouped under one parent.
    What I need now is that all the togglebuttons are pressed exclusively, just same behavior like radiobuttons. But as grouping the togglebuttons under the same parent is not an option, it doesn't work.
    The only way i can think of now is to use radiobuttons instead of togglebuttons and all radiobuttons have the same groupname. But the problem is now to change the radiobuttons control template to make them appear as togglebuttons.
    Do you know whether there is an example of a template which makes a radiobutton appear as a togglebutton?
    Or maybe you have another solution?
    Thank you very much

    This also makes a perfect use for extending a style using BasedOn attribute:
    Code Snippet
    // Create a RadioButton style baed on the ToggleButton style
    <Style x:Key="toggleStyle" BasedOn="{StaticResource {x:Type ToggleButton}}"
                                TargetType="{x:Type RadioButton}">
     <Style.Triggers>
       <Trigger Property="IsChecked" Value="true">
          <Setter Property="Background" Value="Red"/>
       </Trigger>
     </Style.Triggers>
    </Style>
    Now you can create radio buttons that look just like toggle buttons. And according to the style above, their background color will change to Red when checked:
    Code Snippet
    <RadioButton Content="My Radion Button" Click="Toggle_Handler" Width="300"
                        Style="{StaticResource toggleStyle}"></RadioButton>

  • How to check whether a radiobutton in a screen is clicked

    Hi All,
    I have created two radiobuttons with screen painter and grouped them and given function- code for the group. In the program i want to check which radio button is clicked. I am not able to set Fcodes for each button differently. Can anyone help me how to do this.
    Thanks and regards,
    Kranthi.

    The function code must be the same, so check the value when processing the code.
    PARAMETERS p1 RADIOBUTTON GROUP grp USER-COMMAND opt.
    PARAMETERS p2 RADIOBUTTON GROUP grp.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
        WHEN 'OPT'.
          IF p1 EQ 'X'.
            " process p1
          ELSEIF p2 EQ 'X'.
            " process p2
          ENDIF.
      ENDCASE.
    Adapt the logic in PBO with dynpro. (If OK_CODE is the FC of the group, then check individual values of the radiobuttion of the group)
    Regards

Maybe you are looking for

  • Turning off Ken Burns?

    Hi All my slideshows play with the Ken Burns affect whether the 'Ken Burns Effect' is checked or not. I'm getting sick of it as with it on there's so much of one's photos that gets chopped off. Can anyone please tell me how I turn it off? thanks ps -

  • IPhoto 11 - Edit tools fail after initial use of program

    Running 10.6.8 (all updates complete) on new MacBook. Began editing newly imported photos  - edit features failed after first 50 photos. I have tried... * updated all Mac Software * deleted user iPhoto preferences, emptied trash, reopened * repaired

  • Application users changing passwords

    Is there a simple way for application users to change their passwords? I can see that the owner of the application can do it but it makes more sense for the individual users to maintain their own passwords. Thanks, Greg

  • ITune's occasionally won't open - COM error

    Hi folks: I have been happily (more or less) using iTunes for the last few years. I recently upgraded my computer to a Dell XPS running Vista Home Premium. I have had very few issues with iTunes on my new system, with the exception of one problem: iT

  • Does java api allow access the ethernet card directly

    i m working on cluster computing. i like to code in java. i need to send object from one single machine to other machines in a university computer lab. i would like to send the objects very efficiently and fastly. i used java.net and also java.nio. b