Changing radio button property dynamically

Hi,
I decalred two blocks in selection screen named B1 and B2, each have 2 radio buttions.
B1 has radio button named B1R1 and B1R2.
B2 has radio button named B2R1 and B2R2.
If i select B1R1 then B2R1 should be selected and B2R2 should be disabled(user should not able to select).
If i select B1R2 then B2R2 should be selected and B2R1 should be disabled(user should not able to select).
Can anyone please tell me how to do this.
Thanks,
Amal

Hi
Try this
SELECTION-SCREEN: BEGIN OF BLOCK b1.
  PARAMETERS: b1r1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND ucomm1,
              b1r2 RADIOBUTTON GROUP g1.
SELECTION-SCREEN: END OF BLOCK b1.
SELECTION-SCREEN: BEGIN OF BLOCK b2.
  PARAMETERS: b2r1 RADIOBUTTON GROUP g2 USER-COMMAND UCOMM2 MODIF ID MD1,
              b2r2 RADIOBUTTON GROUP g2 MODIF ID MD2.
SELECTION-SCREEN: END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
  IF b1r1 = 'X'.
    if screen-group1 = 'MD2'.
      screen-input = 0.
    endif.
  ELSEIF b1r2 = 'X'.
    if screen-group1 = 'MD1'.
      screen-input = 0.
    endif.
  ENDIF.
  MODIFY SCREEN.
  ENDLOOP.
  AT SELECTION-SCREEN.
    IF b1r1 = 'X'.
    b2r1 = 'X'.
    b2r2 = ''.
  ELSEIF b1r2 = 'X'.
    b2r2 = 'X'.
    b2r1 = ''.
  ENDIF.

Similar Messages

  • BPS Web Application - How to change function button property dynamically

    We have created BPS web application for sales force, it contains 2 button.
    1. To send Workflow notification to Managers 'Request for Approval' - This would be used by sales person
    2. Button for Manager to approve the Plan 'Manager Approval' - This would be used by the Manager
    We are using Territory Management in CRM to determine who is the manager and sales person.
    We would like to use the same Web application to be used by both sales person as well as the manager. However depending on the user ID, we need to access the Territory Management table in BW to determine whether the person logging in is Manager / Sales person. If it is a Sales Person, we need to display 'Request for Approval' button and hide 'Manager Approval'  button. Similarly, if it is Manager,   'Manager Approval'  button to be displayed and 'Request for Approval' button to be hidden.
    Would appreciate, if any one has faced similar requirement and how to do this.
    Thanks,
    VJ Sudharsan

    Thanks Ananad and Srini for the suggestion. Actually I was working on the direction Anand Suggestion and make it working but I am not sure what I did is correct or not.
    I have a bogus variable that checks for Manager / Sales person and brings back following code in the variable, if it is manager:
    '<style> #Req_Approval_s </style>'
    and I added a new text component of type HTML and code
    <%=descr(VarvlSel2/value)%>
    it works. Is this the correct way of doing the enhancement. Or is there a different place where we can add JavaScript.
    Srini - I am using exit function, can you explain how we can I use BPS authorization to achieve this.

  • Accessing radio button property node

    I want to access the individual captions of each radio button.  I want to be able to let the user change the text property of each button, not the label, while the vi is running.  I could not find the property that does this in the property node.  Can this be done?
    Thanks in advance.
    Ron Deavers, CLD

    programmindragon wrote:
    .... Does anyone know what the other strings in this array correspond to?
    1. The help for the 'Strings [4]' property explains what the strings correspond to.
    2. Your problem with the caption(s) for the buttons other than the first will go away if you manually make each button's caption visible the change it back to invisible.  The problem has been discussed several times since LV7.1 came out (e.g. here)
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."
    Attachments:
    Help_for_Strings4_Property.jpg ‏16 KB

  • Changing radio buttons label

    Hello.
    How can I programatically change label of radio buttons?
    I have a radio group named test and 2 radio buttons named t1 and t2.
    I've tried to set labels with Set_item_property('t1', label, 'aaa'); I got FRM-41045. What am I doing wrong?
    Natasa

    Natasa,
    I tink that you don't have access to individual radio button labels because the radio group is the Forms iten that set item property operates on. The work around is to forget about setting the readio button labels within the Forms properties and to use Forms display items instead.
    Adjust the display label so that they become labels for the radio button and this should do it.
    Frank

  • Changing Radio button location

    Hi,
    http://apex.oracle.com/pls/otn/f?p=50508:6:
    On the page above, i would like to change the location of radio button from "top left" to "center bottom". Is it possible?
    I am using a static LOV for the generation of radio buttons
    STATIC2:<div class="radiolook"><img src=#WORKSPACE_IMAGES#Picture5.jpg width="200" height="200" /></div>;A,<div class="radiolook"><img src=#WORKSPACE_IMAGES#Picture6.jpg width="200" height="200" /></div>;B,<div class="radiolook"><img src=#WORKSPACE_IMAGES#Picture8.jpg width="200" height="200" /></div>;CThe css class code is
    .radiolook {
    margin:5px auto;
    padding:5px;
    font-size:12px;
    color:#096;
    text-align:left;
    vertical-align:top;
    border:1px #ffd700 solid;
    border-right:2px #096 solid;
    border-left:2px #096 solid;
    background-color:#ffffcc;
    }Please help..
    thank you
    VG
    Edited by: vg_2 on Nov 5, 2009 8:28 AM
    Edited by: vg_2 on Nov 5, 2009 8:28 AM

    Try:
    <style type="text/css">
    #P6_X table {
      margin-top: 10px;
    #P6_X td {
      height: 240px;
      vertical-align: top;
    #P6_X input, #P6_X label {
      display: block;
    #P6_X input {
      margin: 220px auto 0 auto;
      text-align: center; /* Because IE sucks */
    #P6_X label {
      margin-top: -240px;
    </style>Radio buttons are NOT nice things to style! None of the browsers seem to support padding on them, and height is all over the place as well.
    As the .radiolook CSS didn't seem to be applied on your example page I left it off in my experiments. You'll have to adjust the 240/220 values to accommodate the extra size introduced by its margins, borders and padding.

  • Radio button in dynamic ALV grid

    Hi guys!
    I want to implement a dynamical ALV grid with a radiobutton in the first column.
    when clicking a button, or processing the program i want to get the information of the selected row and perform other things....
    Can someone help me with a code example for this, or just tell me where i can find the necessary information`?
    regards
    thomas

    Hi,
    I dont understand why you need Radio button, If you use REUSE_ALV_GRID_DISPLAY the output grid will by default allow you to select only one row.
    see the program - BCALV_FULLSCREEN_DEMO for more information

  • Changing radio button colors

    When hovering over a radio button, how do you change the fill color of the radio button? The default appears to be a shaded orange, but I want the flexibility to change colors, as needed.
    Any suggestions?
    Thanks!
    jason@jones

    Try using the setBackground or setForeground methods. If that doesn't work, look through the docs for any other methods that change the color. If those don't work, look into writing a custom ui component, which is not trivial.

  • Radio button affecting dynamic action

    Hi
    I am trying to implement Radio Button in apex 4.1.1 , on selecting radio button , it show and hide regions. I got that working
    I was wonder if , i include more static value to radio groups and which are only shown , when authenticated user is logged in or is not a public user and then on selecting same non public radio button it show authenticated region only.
    All in same radio groups
    radio 1 show this to public user
    radio 2 (shown on logged in) when selected show this region.
    thanks in advance

    Hi,
    >
    I am trying to implement Radio Button in apex 4.1.1 , on selecting radio button , it show and hide regions. I got that working
    I was wonder if , i include more static value to radio groups and which are only shown , when authenticated user is logged in or is not a public user and then on selecting same non public radio button it show authenticated region only.
    All in same radio groups
    radio 1 show this to public user
    radio 2 (shown on logged in) when selected show this region.
    >
    Radio buttons are complex HTNL elements. While it is theoretically possible to manipulate then with JavaScripts it is simpler and better to have 2 separate items and hide/show them conditionally.
    If you must use one group then you will need to use jQuery selectors to get hold of the buttons individually. Look up the element in HTML DOM using browser "inspection" utilities, e.g. FF+Firebug, and you can work out the selector.
    Cheers,

  • Radio  Button Property

    Hi Folks,
    How do we get the Radio Button Label in a Radio Group at run time.
    Eg: I have various forms which runs the same procedure to populate database table with visible object properties in the Form like Label,Type etc.. If the form has a Radio Group with couple of Radio Buttons, then the procedure should read the Label of each Radio Button and Populate the Database Table with this values.
    Any Suggestion / ideas are apprecited and welcome.
    Thanks a Lot in advance.
    Pranati

    Hi Pranati!
    You have to use *UNDOCUMENTED* properties!
    RADIO_BUTTON_1 := Get_Item_Property(RADIO_GROUP_ITEM, First_Button);
    RADIO_BUTTON_2 := Get_Radio_Button_Property(RADIO_GROUP_ITEM, RADIO_BUTTON_1, Next_Button);
    I use this in forms 6i and it works very well, but I never found something about these properties in the documentation and also nothing in the help files.
    Hope this will help you!

  • Displaying radio buttons with dynamic subforms between 2 radio buttons

    I am very new to Adobe Designer/Form Server and had the following question.
    Our form is going to have the following display
    Radio A
    Radio B
    Radio B1
    List of text boxes
    Radio B2
    Radio C
    Radio C1
    List of text boxes
    Radio C2
    When the form is first displayed, user sees Radio A, Radio B and Radio C, right below each other. When the user selects Radio B, Radio B1 and Radio B2 should appear, and the Radio C should 'slide' down to accomodate Radio B1 and B2.
    Similarly, when the user clicks Radio B1, List of text boxes should appear and Radio B2 should 'slide' down to accomodate those text boxes.
    Is this possible? Can anyone please send me a sample code/design?
    Thanks

    Well I got the form to work by copying the Options List Java Script code in change to docReady and adding if(this.rawValue==0).  This produces the result that I need.
    To clean this up I would like to put this code in a Script Object so I can use the same code in both change and docReady.  I’m not a programmer so I’m not sure what additional code I have to put in the Script Object and what code I have to put in change and docReady to use the Script Object.  Any assistance would be greatly appreciated.
    Thank you.

  • Assign values dynamically to radio button

    I am creating an online test. I will need to display answer choices from the table. I created radio buttons for these answer choices and I could put the labels dynamically by using      
    Set_Radio_Button_Property('block_name.radio_group_name', 'radio_button1',LABEL,cursor_name.field_name);
    Now I have problem to set radio button values dynamically. Should I use when_radio_changed event?
    Any help would be appreciated.

    I really appreciate your help.
    My intention is to display the test on the screen.
    That means I need to display all questions and answer
    choices for each one dynamically. Based on the answer
    choice type (radio button or checkbox or drop down
    etc) I will need to assign the values to them and
    display on the screen. So far I could display
    questions and answer choices on the screen and set
    the label property for each radio button.
    Do you know what is the syntax to assign value to
    each radio button? First I will need to store user's
    answers in a table. For that I need to know what
    answer they selected. I wasn't sure how to do that.
    ThanksAs I said, the values cannot be assigned dynamically. Thus you will store the answers in code (perhaps in an array?) and your radio buttons will be 1,2,3,4 etc.
    In WHEN-RADIO-CHANGED you can retrieve the value from the array using the radio button value. Then store that value.
    e.g. Your screen shows
    What is the sound of one hand clapping?
    o Blue
    o Yes
    o 12
    These labels will be set dynamically, but the values for the radio buttons will be 1,2,3. If they pick "Yes", your radio button will be 2. You then get the value you really want from answer_array(2), where you put it when you retrieved the question details. Then you insert that into your users_answers table.

  • 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

  • Disabling Radio Button Conditionally is not working Well

    Hi friends,
    I have three radio buttons
    <li>self
    <li>New Hire
    <li>On Behalf of
    I will be showing this radio button conditionally according to the user who logs into the application.
    Assume, suppose if a person 'A' enters into the application means he will be shown only these radio button options ---NH---,----OB----,----Self-----
    Suppose, if a person 'B' enters into the application means he will be shown only these radio button options ----NH----,----Self---
    If a person 'C' enters into the application means he will be shown only these radio button options ---Self---
    I have restricted those radio buttons according to the users who enter into the application using their roles.
    But my challenge here is once the user logged in and if he select anyone of the radio button means,
    Example if he selects----NH---means, then ---OB----and -----Self---radio button has to disable and if he selects ---OB----means then ----NH-----and ---Self---has to
    disable(vice versa).
    I have also achieved the same using the DA.
    With true action as: javascript Expression i have given the following codings( i have written the below DA for three cases, if the request_class_code is equal to
    (NH,OB,S)
    var enabled=$v('P22_REQUEST_CLASS_CODE');
    if (!$u_SubString(enabled,'S')) $('#P22_REQUEST_CLASS_CODE_2').attr("disabled","disabled");
    if (!$u_SubString(enabled,'NH')) $('#P22_REQUEST_CLASS_CODE_0').attr("disabled","disabled");
    if (!$u_SubString(enabled,'OB')) $('#P22_REQUEST_CLASS_CODE_1').attr("disabled","disabled"); The above DA is working great only for the user who has the option of viewing three radio buttons in my form(i.e)(NH,OB,S).
    For the user who has the option of viewing two or one radio button, it is not working properly(i.e)(NH,S) or(OB,S) or(S).
    Why it is not working for the user with two options or with one option radio button means, the source of that radio button property is changing. Since i have taken
    the source of my radio button in my DA only when the three options are present.
    How i can solve this issue for the user who is having this two radio option or one radio option.
    Hope you understood clearly about the problem.
    Brgds,
    Mini

    Hi,
    If I did understand what you like have this might work
    var lVal = $v('P22_REQUEST_CLASS_CODE');
    $('#P22_REQUEST_CLASS_CODE input:not([value="' + lVal + '"])').attr("disabled","disabled");Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME

  • How to put a radio button ina table

    Hi Frndz..
    I want to show a radio button in a table which table contains multiple rows, so with this radio button user can select only one row out of multi rows.
    My table like this am getting the data from RFC...
                       PONum                  BarCode                    OptionButton
                          100032                   rnsnsv-e3r                   radiobutton
                          100043                   sae489-q3                   radiobutton           
                          100034                   fs88a7-df4                   radiobutton   
    So with the option of radio button user can select only one row..
    while using Insert Table cell editor am adding a radio button but am not able go ahead...suggest me if u have any ideas.
    Thanks in Advance
    Regards
    Rajesh

    Hi Rajesh,
    Try this:
    Step1: Right click on RootUIElementContainer and manually insert the Table
    Step2: Now right click on Table and Insert the TableCoulmn Group
    Step3: In the TableColumnGroup Insert TableColumn
    Step4: Now Insert TableCellEditor  Radio Button Type.
    Step5: Bind the value attributes to the Radio Button property called selectedKey and KeyToSelect and deploy the application
    Thanks
    Krishna

  • Radio Button - All

    I have got radio button(with submit)(RB name is P5_R_RG) on my report. Radio button are Dynamic LOV (Select distinct RG a, RG b from participant). Display Null :- Yes, Null Display Value 'All', Null return Value:- 'ALL'
    Participant is my table
    RG is column in participant table and it has got value between 1 and 6 only.
    I have got query in region and qeury is
    select     "PARTICIPANT"."AGSNO" as "AGSNO",
         "PARTICIPANT"."FIRSTNAME" as "FIRSTNAME",
         "PARTICIPANT"."LASTNAME" as "LASTNAME",
         "PARTICIPANT"."RG" as "RG"
    from     "PARTICIPANT"
    where ("PARTICIPANT"."RG" = :P5_R_RG or "PARTICIPANT"."RG" = 'ALL')
    What I am trying to do is when user select 'All', all the record should be displayed.
    1) When RG field type is numeric
    Whenever I select 1 to 6 option its work perfectly fine, but when i select 'All', it gives error message ' Type Mismatch'
    2) When RG field is varchar2
    Whenever I select 1 to 6 option its work perfectly fine, but when i select 'All', it gives message ' no record found'
    Could any one tell what i am doing wrong or give me some other idea or solution
    Its Urgent---------------
    Sagar

    It's easiest to get this all working if you stick with varchar2 types. For the radiogroup item, set display extra values No, set display null No, display value (leave empty). For LOV query:
    select '-All-' d, '0' r from dual
    union all
    select distinct RG d, RG r from participant
    For report query:
    select "PARTICIPANT"."AGSNO" as "AGSNO",
    "PARTICIPANT"."FIRSTNAME" as "FIRSTNAME",
    "PARTICIPANT"."LASTNAME" as "LASTNAME",
    "PARTICIPANT"."RG" as "RG"
    from "PARTICIPANT"
    where ("PARTICIPANT"."RG" = :P5_R_RG) or :P5_R_RG = '0'
    Scott

Maybe you are looking for

  • Why can i not run Xplane 8 on my Mac OS X version 10.8.5

    I am trying to run XPlane8 on my Mac, on the packaging it says that it requires MAC OS X v 10.3 or later, which I have. now when I try to click on the install icon I get the following message. You can't open the application Installer MacIntosh" becau

  • 5.1 Surround workflow

    After searching around I need to ask what is the proper workflow for a project in FCP that will have a 5.1 surround mix. My client just sprung the fact that he will be sending me a 5.1 mix of the audio for this project in addition to the stereo mix.

  • Missing Photograph

    I have created a blog on my website. The entries in the blog contain photographs and I have selected the option for the initial blog summary page to display the photographs. However, the photograph on my first entry is not displayed on the summary pa

  • Some glitches in the network..

    Hey everone and all. With the resources here on the site i have gotten my g4 and my macbook to work together, kind of. my goal is to receive wifi with the macbook and also permit the g4 to surf the web via the macbook. The whole while having file sha

  • Incredibly slow Contacts Nokia E61

    I have less than 300 contacts in the E61. Opening up a contact in order to view or edit it takes as long as 58 seconds, with 20-25 seconds being the norm. I have about pictures attached to about 7 contacts, which probably accounts for some of this. T