Two radio buttons in a single row of a table

Hi All,
Can we have two radio buttons in a single row of ADF TABLE.
My requirement is that i have a list of submitted records. The user can approve or reject the records.
All the records are displayed in the table. there will be two columns in the table(Approve , Reject) The user can approve the first record and reject the second record and so on....
using table selectOne we can select only one row. Using radio buttons how to select the multiple records, at the same time grouping is done between the two columns(radio buttons) in the table

Hi,
I don't think that you can do this with radio buttons. The usecase is more for chackboxes. It would have been a usecase for radio buttons if there was a single column with 3 possible options
- pending
- approved
- rejected
Frank

Similar Messages

  • Two radio button in each row of Table view

    Hi,
    I have a issue like two radio button should come in each row of the tableview and any one only can be selected and selected value should be assigned to a variable.
    Kindly help with coding in methods RENDOR_CELL_START AND RENDER_ROW_START.
    Thanks in Advance.
    Saravanan.

    Saravanan,
    If you keep the Radiobutton in 2 different column then it wil difficult to put it in one Radiobuttong Group. I am not sure its possible or not. I would suggest you do keep both the "Approved" & "Rejected" radio button in single column as shown below so that the memont "Rejected" is selected, "Approved" will be unchecked.
    WHEN 'Your Column'.
            DATA: RAD_GRP TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP,
                     RAD_BTN  TYPE REF TO CL_HTMLB_RADIOBUTTON,
                     COL_BEE TYPE REF TO CL_BSP_BEE_TABLE.
              CREATE OBJECT COL_BEE.
              RAD_GRP = CL_HTMLB_RADIOBUTTONGROUP=>FACTORY(
                      ID = P_CELL_ID COLUMNCOUNT = '2' ).
              COL_BEE->ADD( ELEMENT = RAD_GRP LEVEL = 1 ).
              RAD_BTN ?= CL_HTMLB_RADIOBUTTON=>FACTORY( ID = '1' TEXT = 'Approved' ).
              COL_BEE->ADD( ELEMENT = RAD_BTN LEVEL = 2 ).
              RAD_BTN ?= CL_HTMLB_RADIOBUTTON=>FACTORY( ID = '2' TEXT = 'Rejected' ).
              COL_BEE->ADD( ELEMENT = RAD_BTN LEVEL = 2 ).
              P_REPLACEMENT_BEE ?= COL_BEE.
          ENDCASE.
    Again to get the selected radiobutton, use method REQUEST->GET_FORM_FIELDS
    DATA: GT_TIHTTPNVP TYPE TIHTTPNVP.
    REFRESH GT_TIHTTPNVP.
    CALL METHOD REQUEST->GET_FORM_FIELDS
      CHANGING
        FIELDS = GT_TIHTTPNVP.
    For example, suppose your 3r column has 2 radio buttons & In 1st Row if you've selected the radiobutton 2. THen get_form_fields return the below value.
    TV1_1_3 = 2. Here TV1 is tableview name & 1 - Row 1 & 3 -Column three. value 2 indicates that 2nd radio button is selected.
    DO 10 TIMES. "Here 10, stands for number of visible rows in tableview
    concantenate 'TV1' '_' sy-tabix '_' '3' into v_cell_id. "Here now v_cell_id will have TV1_1_3 for 1st row & etc..
    Read table GT_TIHTTPNVP into wa with key name = v_cell_id.
    if sy-subrc = 0.
    v_selected_rad_btn = wa-value. " THis will give you the selected radio button.
    endif.
    enddo.
    Hope this will solve your problem.
    Raja T
    Message was edited by:
            Raja Thangamani

  • Radio buttons in a single line

    hi all,
    how to get more than one radio buttons in a single line in a selection screen?
    please give the solution as it is urgent.
    i will surely reward ur efforts.
    thanks
    sanjeev

    Hi,
    check this this will be helpful for u.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS:WIP_ONLY RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN COMMENT 2(15) WIP FOR FIELD WIP_ONLY.
    PARAMETERS:HIS_ONLY RADIOBUTTON GROUP RAD1 default 'X'.
    SELECTION-SCREEN COMMENT 20(15) HIS FOR FIELD HIS_ONLY.
    PARAMETERS:BOTH RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN COMMENT 40(15) WIP_HIS FOR FIELD BOTH.
    SELECTION-SCREEN END OF LINE.
    at selection-screen output.
    WIP = 'Work-in-Process Only'.
    HIS = 'History Only'.
    WIP_HIS = 'Both WIP & HIS'.
    regards,
    bharat.

  • Display radio button if number of rows in table equals 1

    I'm having issues buy there maybe a simple script out there.
    I have a table which can have up to four rows. If the table contains only one row, a radio button can be clicked to change the format/entry of cells within that row. I want to hide this radio button from a user if they have added more than one row to the table, and make it available again if they reduce the row count back to one.
    I have everything else working fine (Radio buttons changing format of row, add/removing rows in the table using buttons, row count in first column)
    Anybody got any ideas?
    Cheers
    Bobby

    Place the below code..Change the field names as per your form.
    if(Table1.Row1.instanceManager.count == 1)
         RadioButton.presence = "visible";
    else
         RadioButton.presence = "hidden";
    Thanks
    Srini

  • How to handle two radio buttons in modulepool program

    hi,
      i am creating 2 radio buttons on the initial screen of a modulepool program, here i am unable ot handle those 2 radio buttons.
      when executing by default these two radio buttons are selected.
      pls send me the sample code that how to handle.

    Prasad,
    In the Screen Painter, highlight both radio buttons at the same time (using CNTL key).
    From menu bar, choose: Edit > Grouping > Radio Button Group > Define.
    Now they are "linked" to each other.
    Don;t forget those points.

  • How to show/hide individual radio buttons in a single radio button list

    Can I apply javascript to checkboxes in order to show/hide individual radio buttons in a single radio button list?

    Thanks, Niall,
    I'll give it a try . . .
    Yours,
    Robert Anderson
    SWRCB WebSupport
    1001 I Street
    Sacramento, CA 95814
    8th floor 59B
    (916) 341-5950
    [email protected]
    >>> Niall O'Donovan <[email protected]> 8/5/2010 1:47 PM >>>
    Hi,
    Yes, it can be done. You just need to reference the actual button, rather than the radio button group.
    It is best if you name the radio button group AND all of the individual radio buttons.
    If the radio button group was named "myRadioButtons" and the three rb were named "yesRB", "noRB", and "maybeRB". All of this is in the hierarchy.
    Then this script in the click event of the checkbox would work:
    if (this.rawValue == 1)
         myRadioButtons.maybeRB.presence = "hidden";
    else
         myRadioButtons.maybeRB.presence = "visible";
    Hope that helps,
    Niall

  • 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

  • Adobe form from webdynpro : Getting a single row in the table

    Hello,
    I have a scenario in which I have to create a adobeform from webdynpro application.
    I have created the form and have the context designed in place.
    I am facing a problem in the table I have in my adobeform.
    I am adding rows to this table dynamically using a button using "addInstance"
    Now on the webdynpro side , when I try to read this table I get a single row from this table.
    This row is always the first row of that table.
    I checked the following things from blog   /people/juergen.hauser2/blog/2006/09/12/avoiding-common-mistakes-when-using-tables-on-sap-interactive-forms  , i.e. :
    Cardinality of the node.
    Tick on the option "Repeat Row for Each Data Item".
    But still no success.
    With deadlines to catch I had to post this question after trying a lot.Please help.

    Hello Otto,
    I had found this link before and used the same solution , but unfortunately is taking a long time.
    Now what I am doing is :
    1. I append 10 rows into the table then bind it to the node
    2. Then on the adobe form I have removed the check on "Add row for each line item" because of which it shows only 1 row 
         on the form.
         Now I add rows dynamically, but this puts a limit on the number of rows can be added to the table i.e. 10.
    But this again has added problems like while displaying the form or modifying I hav to handle it seperately and cannot use the same form as it is.( as I have removed the tick for "Add row for each line item" ).
    Thanks,
    Omkar Mirvankar

  • ADF: How to get the attributes' values of one single row from a table?

    Currently I have a table with 3 attributes, suppose A,B and C respectively. And I've added an selectionListener to this table. That means when I select one single row of this table, I wish to get the respective value of A, B and C for that particular row. How do I achieve this?
    suppose the method is like:
    public void selectionRow(SelectionEvent se) {            //se is the mouse selection event
    .......??? //what should I do to get the values of A\B\C for one single row?
    Edited by: user12635428 on Mar 23, 2010 1:40 AM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • 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

  • How to navigate to specific radio button of a single radio group.

    Hi
    i have a radio group named rdo_grp, in that radio group i had 3 radio buttons named rdo_a, rdo_b and rdo_c.
    Now, when forms executes and user navigates from any text item to above mentioned radio grp, the cursor implicitly goes to first radio button ( i.e.rdo_a).
    But i want to navigate the cursor to second radio button (i.e. rdo_b) when cursor navigates from any text to radio grp.
    please help.
    Onkar

    The focus is given to the radio button that represents the value of the radio group - i.e. the cursor goes to the selected radio button, not necessarily the first button in the group. To force navigation to a particular button, I think you will have to change the value of the radio group. I don't know if that's desirable, but it could be done with a WHEN-NEW-ITEM-INSTANCE trigger on the radio group:
    :rdo_grp := <value of rdo_b>;

  • Delimited String To A Single Row Within A Table

    I'll try to make a simple example of what I am trying to accomplish...
    Let's say that I have a table (Blah) which has the following Fields:
    User, DateTime, Q1, Q2.... all the way to Q50.  The Questions are radios with a value of 1,0, or null.
    Since I didn't want to manually make 50 different items for the Radio questions, I am creating them from Javascript within a Region Source; as well as giving them id's and names.  This worked fine.
    When I hit a submit button, I have Javascript create a delimited string for the questions, which I pass to a Shared Item.  (1,0,1,1,null,0,etc...)  I then have the Javascript run a Shared Procedure for the Insert into my Table.
    Here is where I am stuck.  I am confused on how to merge the delimited string into my Insert statement, from PL/SQL.
    Here is a dummied down sample of what I am trying to write.  (Shared Item is :ITEM_ARRAY, with a delimiter of ~:~ )
    DECLARE
        array APEX_APPLICATION_GLOBAL.VC_ARR2
    BEGIN
        array := APEX_UTIL.STRING_TO_TABLE(:ITEM_ARRAY, ':~:' );
        INSERT INTO tbl_blah (
            :APP_USER
            ,SYSDATE
             FOR z IN 1..array.count LOOP
                 array(z);
             END LOOP;
    END;
    Every which way I tried, I always get Not Enough Values Error.
    I tried to make everything in a delimited string as well:
    Insert Into tbl_blah (SELECT * FROM array)
    Can someone please enlighten me on the correct way to do this.  All of the examples I have seen are to write to multiple rows, via the loop.  I want to just have 1 record, horizontally.
    Thanks !!!

    Hi,
    Why can't you insert a row into table with first two columns and do update for that row???
    Just for simple work around, I have created a table with below columns,
    USER_NAME VARCHAR2 
    EXAM_DATE DATE
    M1 NUMBER
    M2 NUMBER
    M3 NUMBER
    M4 NUMBER
    M5 NUMBER
    M6 NUMBER
    M7 NUMBER
    M8 NUMBER
    M9 NUMBER
    M10 NUMBER
    I wrote a below code to insert a row into that table,
    declare
    v_arr APEX_APPLICATION_GLOBAL.VC_ARR2;
    v_stmt varchar2(1000);
    begin
    v_arr:= APEX_UTIL.STRING_TO_TABLE(:p_all_items,'~');
    insert into test_group(user_name,exam_date) values (:APP_USER,sysdate);
    dbms_output.put_line('row inserted');
    FOR i IN 1..v_arr.COUNT LOOP
    dbms_output.put_line('i='||i||' value='||v_arr(i));
    if v_arr(i) is null then
    v_stmt:='update test_group set m'||i||'=NULL';
    else
    v_stmt:='update test_group set m'||i||'='||v_arr(i);
    end if;
    dbms_output.put_line(v_stmt);
    execute immediate v_stmt;
    END loop;
    end;
    I just ran this block in 'SQL Commands', It worked for me. but i inserted only one row, so it updates a single row, In case of multiple row need to use the unique column for update. change the above code as per your requirement.
    I hope this work around will help you. If not can you please create an example in apex.oracle.com and share login credentials.
    Thanks
    Lakshmi

  • How to update a single row of data table

    How we can update a single row of the data table by clicking the button in the same row.
    Thanks in Advance.

    Hi!
    What do You mean 'update'? Get fresh data from DB or change data and commit it in DB?
    If commit, try to read here:
    http://developers.sun.com/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    Thanks,
    Roman.

  • Refreshing only the single row of  ADF Table

    Hi All,
    I have a webcenter application where the ADF Applications has been deployed.Now the Data is coming onto the ADF Tables from a webservice.In that particular table i need to refresh only the single row(whichever selected by the user to edit ) or even a particular field with the updated values as well as need to validate and to create a message box saying about the errors if the validation goes wrong.
    Please suggest!!

    Hi,
    if "updated value" mean that the value got changed on the middle tier (not the browser client) then the update requires the table to be partially refreshed. If the user edits a row and in this row has dependent fields, then this can be achieved by partially refreshing the column. Note that ADF Faces tables don't refresh just one cell
    Frank

  • ADF Table - Command buttons disappear when no rows returned for table

    We have a command button that navigates to a create screen, when the table returns no rows the button disappears. We need to have this displayed always and within the ADF table. The code looks like:
    <f:facet name="selection">
    <af:tableSelectOne text=""
    binding="#{Search.tableSelectOne1}"
    id="tableSelectOne1">
    <af:commandButton actionListener="#
    bindings.ExecuteWithParams1.execute}"
    text="Edit n"
    action="edit"
    binding="#{SearchCtgry.commandButton3}"
    id="commandButton3">
    <af:setActionListener from="#{row.Code}"
    to="#{processScope.toCode}"/>
    </af:commandButton>
    </af:tableSelectOne>
    </f:facet>

    try placing the command button within the "actions" facet of the table. It will place it above the actual rows of the table. You could also use the "header" facet.
    <af:tableSelectOne text=""
    binding="#{Search.tableSelectOne1}"
    id="tableSelectOne1">
    <f:facet name="actions">
    <af:commandButton actionListener="#
    bindings.ExecuteWithParams1.execute}"
    text="Edit n"
    action="edit"
    binding="#{SearchCtgry.commandButton3}"
    id="commandButton3">
    <af:setActionListener from="#{row.Code}"
    to="#{processScope.toCode}"/>
    </af:commandButton>
    </f:facet>
    </af:tableSelectOne>

Maybe you are looking for