Group Radio buttons controlling input fields

Hi All ,
I have 3 radio buttons which is grouped in teh form component . beside the 3 radio buttons i have 3 input fields , now i when i click the first radio button the input field beside the radio button should input enabled , rest of the input fields should be disabled ,
Please share your ideas!!
Thanks,
Pradeep.

Harsha ,
This is the code in mu get_def method
APPEND INITIAL LINE TO et_action_definition ASSIGNING <ls_action_definition>.
   <ls_action_definition>-id = 'ADDROW'.
   <ls_action_definition>-action_type = if_fpm_constants=>gc_action_type-validation_independent.
   <ls_action_definition>-imagesrc = '~Icon/AddRow'.
   <ls_action_definition>-VISIBLE = CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE.
   <ls_action_definition>-enabled = abap_true.
I need the buttons in my list as below
And in List UIBB i have added 2 buttons
in the get def i am getting 2 records for add and del but dont know why i am not getting the buttons on screen .
i have a edit page screen in that i have 2 UIBB , 1st Form UIBB and 2nd LIST UIBB , but when i click the form UIBB its showing as section 1, and the LIST UIBB also in the section1 , i don't think it will be the issue .

Similar Messages

  • Using CheckBox / Radio-Button Control in Dialog Program

    Dear Friends,
    Please let me know the way to use check-box / radio-button control in dialog programs. Where & how to define them & write the logic.
    If possible provide a small example.
    Regards,
    Alok.

    Hi,
    goto tcode abapdocu.. abap user dialogs - screens-processing screens you will get examples for all --pushbutt6ons radiobutton checkboxes everything
    <b>here is a sample code for you</b>
    PROGRAM demo_dynpro_check_radio .
    DATA: radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
          field1(10) TYPE c, field2(10) TYPE c, field3(10) TYPE c,
          box TYPE c.
    DATA: ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    CALL SCREEN 100.
    MODULE user_command_0100 INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'RADIO'.
          IF radio1 = 'X'.
            field1 = 'Selected!'.
            CLEAR: field2, field3.
          ELSEIF radio2 = 'X'.
            field2 = 'Selected!'.
            CLEAR: field1, field3.
          ELSEIF radio3 = 'X'.
            field3 = 'Selected!'.
            CLEAR: field1, field2.
          ENDIF.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.
    <b>flow logic:</b>
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
      MODULE user_command_0100.
    regards,
    pankaj singh.
    <i><b>
    reward if helpful</b></i>

  • Radio buttons on Customer_H fields in Web UI

    Hi Experts,
    I have a requirement to include the Customer_H fields in Web UI. In the Customer_H table, there are 8 fields, which are currently used in the GUI as follows:
    Field 1 & 2 - Type char1 - Checkbox
    Fields 3 - 8 - Type char1 - 3 radio buttons for each field
    (depending on the selection of a radio button, a corresponding char value is set to the field)
    How do I use the same combination of radio buttons for fields 3-8 on the UI? On the UI, I see checkboxes by default for all the 8 fields.
    I have tried the following:
    For each of fields 3 - 8, I have set the following code in their P_GETTER methods:
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_radio.
      ENDCASE.
    Thus, in the configuration tab, I can see "Radio button group" written against these fields and field type as "Radiobutton" in the field properties.
    However, on launching the UI, I still see all these fields as checkboxes.
    Please help me in:
    i) Setting up the radio buttons for these fields (do I need to use value nodes?)
    ii) Displaying the radio buttons on the UI
    iii) Capturing the selected radio button's value and updating the customer_h field.
    Look forward to your reply.
    Thanks in advance.
    Regards
    Vicky

    Hi Stephen,
    I understand your point and agree to it.
    However, I have been able to solve the issue now.
    Solution:
    We need to use the P_GETTER method of the EEWB ZZ field to define:
    i) the field type as radio button,
    ii) the radio button group,
    iii) The way radio buttons should be arranged (horizontally or vertically). If we put no. of cols = 1, then these will be arranged vertically.
    We need to use V_GETTER of the same ZZ field to:
    Assign the key & value to the radio buttons (coding is similar as for dropdowns).
    Following is the code:
    *method GET_P_ZZCUSTOMER_H0101.*
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_radio.
        WHEN if_bsp_wd_model_setter_getter=>fp_radio_cols.
          rv_value = 3.
        WHEN if_bsp_wd_model_setter_getter=>fp_group.
          rv_value = 'R1'.
      ENDCASE.
    endmethod.
    *method GET_V_ZZCUSTOMER_H0101.*
      DATA:  lt_ddlb     TYPE bsp_wd_dropdown_table,
             ls_ddlb     TYPE bsp_wd_dropdown_line.
      IF GR_DDLB_FIELD0101 IS NOT BOUND.
        CREATE OBJECT GR_DDLB_FIELD0101
          EXPORTING
            iv_source_type = 'T'.
          clear : ls_ddlb.
          ls_ddlb-key = '1'.
          ls_ddlb-value = 'P1'.
          append ls_ddlb to lt_ddlb.
          clear : ls_ddlb.
          ls_ddlb-key = '2'.
          ls_ddlb-value = 'P2'.
          append ls_ddlb to lt_ddlb.
          clear : ls_ddlb.
          ls_ddlb-key = '3'.
          ls_ddlb-value = 'P3'.
          append ls_ddlb to lt_ddlb.
          GR_DDLB_FIELD0101->set_selection_table( lt_ddlb ).
      ENDIF.
      rv_valuehelp_descriptor = GR_DDLB_FIELD0101.
    endmethod.
    Say the field label of the field ZZCUSTOMER_H0101 is "Grade", then it will show in the UI as below:
    Grade    () P1       () P2       () P3 
    () = radio button.
    Hope it helps.
    Cheers
    Vicky

  • How do I disable one item in a radio buttons control at run time

    I need to disable one item in a radio buttons control. At design time
    this is possible, but how do I do this at run time? Is this possible? I
    cannot find a property per item

    Use the property "Controls[ ]" - this gives you an array with references of each single button in the radio buttons control. These you can access with property nodes too.
    Hope this helps.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How do I make a radio button control change automatically with time?

    Hello everybody
    I have a radio button selection with 4 options (Line A, B, C, D) which controls a number of valves depending on which line is sampled. Right now I have to do this selection manually but the proccess requires that each line is sampled for 15 seconds.
    Is there a way to do this automatically, meaning when I press a button (e.x. START) radio selection goes to Line A, after 15 seconds to line B, after 15 seconds to Line C, after 15 seconds to line B, after 15 seconds to Line D, and then from the beginnining to line A, B, etc..., until I press the stop button.
    Any help is appreciated
    Thanks for your time

    Hi evdo,
    'tst' is right. The "Radio Buttons" control from the "Boolean" palette
    is basically an Enum. You can add or remove elements as you want and
    only one element can be TRUE at any time (just as the Enum only can
    have one selected item at any time). Just copy and paste the radio
    buttons within the frame to add more choices/elements.
    I created a small example that takes tst's example a little further. I
    implemented the four choices and added an Event Structure for better
    timing. Give it a try and let me know what you think, thanks.
    Have fun!
    Message Edited by Philip C. on 07-06-2005 10:05 PM
    - Philip Courtois, Thinkbot Solutions
    Attachments:
    Radiogaga.PNG ‏14 KB
    Radiogaga.vi ‏25 KB

  • I made a fillable form using indesign and then acrobat professional but need to have radio buttons trigger different fields showing in the form below them - is that possible and if so how do I do it??

    I made a fillable form using indesign and then acrobat professional but need to have radio buttons trigger different fields showing in the form below them - is that possible and if so how do I do it??

    What version of Reader are they using, exactly? And are you sure they're
    using Reader itself and not opening the file inside a browser window, for
    example?
    On Fri, Feb 6, 2015 at 5:24 PM, jessicao96457206 <[email protected]>

  • Is "AutoPostback" property valid for Radio button control in RCDC

    Hi,
    I have been trying to add "Autopostback" property to a radio button control, but it doesnt seem to be working.
    Below is the code:
    <my:Control
    my:Name="Activation"
    my:TypeName="UocSimpleRadioButton"
    my:Caption="{Binding
    Source=schema, Path=ADActivation.DisplayName}"
    my:Description="{Binding
    Source=schema, Path=ADActivation.Description}"
    my:AutoPostback="true"
    my:RightsLevel="{Binding
    Source=rights, Path=ADActivation}">
    <my:Properties>
    <my:Property
    my:Name="TrueText"
    my:Value="ADActive"/>
    <my:Property
    my:Name="FalseText"
    my:Value="NotActive"/><my:Property
    my:Name="SelectedItem"
    my:Value="{Binding
    Source=object, Path=ADActivation, Mode=TwoWay}" /></my:Properties></my:Control>
    Dolly

    Dolly,
    What do you expect the AutoPostback property to do?
    AutoPostback: This is an optional,
    Boolean-type attribute. The default value is false.
    If set to false, refreshing
    the page may not refresh the control. For information about AutoPostback,
    look for the Microsoft ASP.NET UI control property of the same name. -- FIM RCDC Reference
    According to MSDN:
    Set this property to true if the server needs to capture the selection as soon as it is made. For example, other controls on the Web page can be automatically filled depending on the user's selection from a list
    control.
    This property can be used to allow automatic population of other controls on the Web page based on a user's selection from a list.
    Blain Checkley illustrates its use with his blog post: http://identityminded.wordpress.com/2011/10/14/fim2010-semi-dynamic-rcdc-operations/
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • Hide and make visible a group of buttons controls or indicators

    HI
    well, may be sound weird?, but I need to hide and make visible a group of
    buttons, controls, indicator, graphs etc.
    the pint is that I have for example like 20 buttons, and depending of the
    actions of the users I need to hide them or not, I know I can do it one by one
    with the visible property, but I was wondering if there is a possibility to do
    it but all together, with the same property, like put all the buttons or control inside a
    subpanel and then hide the subpanel? I tried this but didn´t work
    any suggestions?
    thanks!!!!

    You can put all of your controls in a cluster. The reference to the cluster - Property node> Controls [] - will be an array of references. From there you can control the visibility of each control.
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell
    Attachments:
    cluster ctrls visible1.vi ‏12 KB

  • Group radio button itemrenderers of two different lists

    Hello ,
    How do I group radio button item-renderers of two different lists? If i select a radio button of list 1, then the list 2  Radiobutton which was selected previously should be un-selected. How to do?

    Are you looking for something like this:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark">
        <fx:Declarations>
            <fx:Component className="MyRenderer">
                <s:ItemRenderer>
                    <s:RadioButton id="rb" label="{data}" group="{outerDocument.rbg}" width="100%" height="100%" />
                </s:ItemRenderer>
            </fx:Component>
            <s:RadioButtonGroup id="rbg" />
        </fx:Declarations>
        <s:List id="myList" itemRenderer="MyRenderer">
            <s:dataProvider>
                <s:ArrayList>
                    <fx:String>0</fx:String>
                    <fx:String>1</fx:String>
                    <fx:String>2</fx:String>
                </s:ArrayList>
            </s:dataProvider>
        </s:List>
        <s:List id="myList2" x="150" itemRenderer="MyRenderer">
            <s:dataProvider>
                <s:ArrayList>
                    <fx:String>A</fx:String>
                    <fx:String>B</fx:String>
                    <fx:String>C</fx:String>
                </s:ArrayList>
            </s:dataProvider>
        </s:List>
    </s:Application>

  • Event based radio button control

    Is there an easier way to write this code and keep the same functionallity?
    Solved!
    Go to Solution.
    Attachments:
    Screenshot 2014-10-20 09.56.54.jpg ‏81 KB
    Screenshot 2014-10-20 09.56.541.jpg ‏139 KB
    RADIO BUTTON EXAMPLE.vi ‏14 KB

    Thanks for the replies. Sorry if I was not clear. The indicators (big) are only indicative of the function I was looking for. I am having to send a radio button control signal down through a class - actor loop from the UI to the RealTime control on cRIO and back to the UI. The loop and communication I have done but for some reason the radio button has a weird functionality where it only shows one true/false value through the loop and back up to the UI.
    meaning - 
    in the example the radio button has two controls radio 1 and radio 2. when they switch between the two I get the true/false value of only radio 2. so it signals radio 2 is true when radio 2 is on, and radio 2 false when radio 1 is on. As seen with a probe on the array wired into the for loop.
    the value does change on NewVal line between radio 1 and 2 but when it is broadcast to the cRIO it shows only the value of radio 2 as being true/false. This is fine for the output channel as they energize correctly. (two different outputs) but It does not allow me to use the broadcast data back to the UI in the same way as if it were two booleans, not one radio button.
    so in short I was trying to figure out a way to get the radio button to act llike a radio button on the front panel but act like two booleans on the return trip...
    I hope that makes sense. Unfortunately, I can't supply code for the program (proprietary development) hence the example of functionality. (pretend the indicators are on the return loop)

  • Radio Buttons + Required Input/Output Fields in Dialog Programming

    Hi All,
    Please find the below issue.
    I have 2 Radio buttons
    RB1 and RB2 defined in group RG.
    And by default RB1 is selected.
    I also have 3 Input.Output Fields.
    F1 , F2  & F3.
    Now before displaying the Screen for the end user,
    I need to display as follows:
    A)   
    RB1 = X -
    > Selected.
    RB2  = Space -
    >Not Selected.
    F1 -
    > Visible.
    F2 & F3 -
    >Invisible.
    B)
    RB1 = space -
    > Not Selected.
    RB2  = X -
    >Selected.
    F1 -
    >Invisible.
    F2 -
    >Visible.
    F3 -
    >Visible.
    When i am debugging, the value of RB1 is not X though it is selected on the screen (by default due to Radio Button Group) & hence the below code is not working.
    *_PBO:_*
    LOOP AT SCREEN.
    IF RB1 = 'X' AND ( SCREEN-NAME = 'TXT2' OR SCREEN-NAME = 'TXT3' ).
             SCREEN-INVISIBLE = 1.
    ELSEIF RB1 = 'X' AND ( SCREEN-NAME = 'F2' OR SCREEN-NAME = 'F3 ).
             SCREEN-ACTIVE = 0.
    ENDIF.
    Modify Screen.
    ENDLOOP.
    But when i select RB2 = X on the screen.
    Value is getting populated .
    Waiting for your hints/ideas/suggestions
    Thanks
    Sri.

    Alright, you defined the radio buttons and grouped them. Did you also assign Fcode to the radio button group? if not already assigned the assign something to FctCode to the radio button. If you can double click on one and assign a name, this will automatically assign to other one. If you already did that... just ignore it.
    Next, by defualt, RB1 will not be having 'X' though it shows selected but you can always make it by just writing the following statement in PBO (If you dont want to mislead anybody)
    if RB1 = space and RB2 = space.
      RB1 = 'X'.
    endif.
    If you have already done that the next step would be.... Assign a screen group value to the fields F1, F2 and F3.
    for example, double click on the field F1, add GR1 in groups in first box and do the same for field text/label if any. Same way, assign GR2 to F2 and F3.
    Then add the following code in PBO. (Someone or you can write it better. This is just an example)
      LOOP AT SCREEN.
        if RB1 = 'X'.
           if screen-group1 = 'GR2'.
              screen-input = 0.
              screen-invisible = 1.
           endif.
        endif.
        if RB2 = 'X'.
           if screen-group1 = 'GR1'.
              screen-input = 0.
              screen-invisible = 1.
           endif.
        endif.
        MODIFY SCREEN.
      ENDLOOP.
    Good luck... It is working code.,

  • Check boxes, Radio Buttons, and XML Field Order

    I am working with Adobe Designer Version 7.0. Hopefully this forum can still address my issues.
    I am creating a registration form that will often be submitted via email to us for processing. To help make the data both easy to transfer for us into our excel file  and to minimize the errors made by the people using the form, I need the form to be able to do a couple of things that I am having a hard time figuring out. My questions are the following:
    I have a list of 7 check boxes that each insert a dollar value into a seperate numeric field on the form. Each check box has a unique dollar value associated with it. Is there any way to design the form so the user can only choose one of the check boxes? I tried using radio buttons in a group, but if a user mistakenly chose the wrong radio button and then selected another button from that group, it would add to the total in the Application Fee field and not subtract out the previous amount. Below is the code i used for one of the check boxes.
    I have two numeric fields that the user must choose one or the other. Can I design those two fields (numHomes and numBuildings) so that if the you enter a value for one field, you cannot enter a value for the other field? Both fields are then calcuated in a seperate numeric field. Below is the code i used for the numeric field.
    I want to be able to take the data emailed to us as an XML file  when a user submits the results via email and directly paste it into our Excel file. To keep the cut and paste process simple, I want to make sure the order of the XML fields matches the order of the database fields so it can be done in one shot. Do you know how to organize the XML fields? They do not seem to correspond to the ordering found under the Hierarchy tab. Any thoughts on this?
    Thanks
    if (this.rawValue == 1) then
           numAppFee.rawValue = numAppFee.rawValue + 350;
    else
           numAppFee.rawValue = numAppFee.rawValue - 350;
    endif
    numHomes * 50 + numBuildings * 100 + numDups * 10

    Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
    Hope that helps.
    Nith

  • Help with cfinput radio button and text fields

    I have a series of radio buttons that allow a user to select
    monetary values but I also want them to be able to define an amount
    if they choose so. I was planning on doing this by providing a
    radio button with the value of other and then using a text field to
    allow the user to enter the monetary value. The problem with this
    is that they might enter a user defined monetary value but forget
    to set the radio button to "other".
    I was hoping that I could set the "other" text input field to
    read only until the point that the user selects the "other" radio
    button. Is there a way to do this using onSelect or another method.
    Or is there a better way to approach this problem? Thanks for any
    help or advice in advance.

    Hi,
    You could call a js function which will select the radio
    button "other " when the user types something in(there are various
    events on cfinput). This way the user will not have to worry about
    selecting the radio button and your requirement will be satisfied.
    Hope this Helps.
    Thanks,
    Bhakti

  • Have a list of radio buttons control layer visibility

    Any help would be appreciated, I am very new to scripting for PDF actions in Acrobat XI Pro
    I have 4 different sets of radio buttons that a user has to answer yes or no to.  When certain sequences of radio buttons are selected it should set one of 4 text fields' visibility to on.  
    For example, if the sequence is
    No, Yes, Yes, No
    then I want only the 3rd text box made visible and the other ones to remain hidden. 
    There are 9 different combinations that need to turn on one of 4 fields at a time.  Is this possible?
    Thank you very much in advance.

    Thanks GKaiseril
    I have spent a little time trying to learn this and what I have so far is not working. 
    I have 4 Radio Button Groups set up named: "Group1", "Group2", etc
    I also have a Text box which is what I want to be visible or not called: "TextBox"
    Here is my script:
    if (Group1.rawValue == "1" and Group2.rawValue == "2" and Group3.rawValue == "3" and Group4.rawValue == "4") {
    TextBox.presence = "visible";
    else {
    TextBox.presence = "invisible";
    Thanks again!

  • How to use one pop up window for multiple buttons and input fields?

    Hi Experts,
    I have created a pop up window that will be opened from multiple buttons in the same view. There are input fields that the data will be populated from a pop up window.  How can I set up which button that a pop up window is opened from? I also would like to populate the data from a pop up window to the input field next to a clicked button. There are 6 buttons and 6 input fields that share the same pop up window. I would very appreciate your responses.
    Thank you,
    Don

    Hi,
    Try creating 2 context attributes, one in your component controller and the other in the pop-up view. Bind the attribute of pop-up view to the component controller attribute.
    In the main view, on click of every button set a unique code in the controller's context which helps you in identifying the button clicked. Since u have created a binding to the pop-up view attribute the value flows from the controller.
    In the init method of your pop-up view, check the value of the attribute and based on that display which ever UI elements are required.
    Eg:
    On Button 1 click set value "B1", Button 2  value "B2" etc. In the init() of pop-up view u can check the values and perform the required operation:
    if(("B1").wdContext().currentContextElement().getButtonIdentifier()){
    else...{
    Hope this helps you.
    Regards,
    Poojith MV

Maybe you are looking for