How to handle radio /checkbox options

If you have a report like so
select HTMLDB_ITEM.RADIOGROUP(1,accid,'keep') "Accept",HTMLDB_ITEM.RADIOGROUP(1,accid,'delete') "Delete" ,accid,userid,username,authfails,clientid,tncdate,docsource,lastlogin,usertype,dateadded,recert from GFMIS.AUTOBAHNDIRECTACCOUNTS where recert = '0'
Which would diplay two radio buttons one with keep and one with delete. When run run this through a process like
FOR i in 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
UPDATE GFMIS.AUTOBAHNDIRECTACCOUNTS SET recert = '1', RECERTBY = :APP_USER, RECERT_DATE = SYSDATE, RECERT_ACTION = 'radiobutton' WHERE ACCID = HTMLDB_APPLICATION.G_F01(i);
END LOOP;
How do i say if radiobutton = 'keep then RECERT_ACTION = 'what ever radio button was selected'

Hi Kiranmai,
You can capture the event of the radio button in the following way in oninputprocessing.
DATA: event             TYPE REF TO if_htmlb_data,
               radioButton_event TYPE REF TO CL_HTMLB_EVENT_RADIOBUTTON.
         event = cl_htmlb_manager=>get_event( request ).
         IF event IS NOT INITIAL AND event->event_name = htmlb_events=>radiobutton.
           radioButton_event ?= event.
           ENDIF.
you can get the attributes of clicked radio button in
event->event_class
event->event_id.
event->event_name
event->event_type
event->event_server_name
In layout define the radio button as
<htmlb:radioButtonGroup   id          = "test_id">
        <htmlb:radioButton      id          = "id_red"   text = "Red"               onClick="myClick" />
        <htmlb:radioButton      id          = "id_blue"  text = "Blue"          onClientClick="alert('blue clicked')"/>
        <htmlb:radioButton      id          = "id_green" text = "Green"      onClick="myClick" onClientClick="alert('green clicked')"/>
      </htmlb:radioButtonGroup>
Hope this will solve your problem.
Donot forget to assign points for helpful answers.
Regards
Aashish Garg

Similar Messages

  • How to handle the cancel option of the showInputDialog

    Hi guys,
    I wonder how to handle the cancel option of the showInputDialog. Let is say i am getting a n input from the user and instead of entering any data he cancels the opterations ..
    how to cope with it?
    abdul

    Test for null!
    Example:
    String name = JOptionPane.showInputDialog(parent, "Type your name", "Name Dialog", JOptionPane.INFORMATION_MESSAGE);
    if(name != null) {
    //if the user clicked ok, write action code here...
    } else {
    // the user click cancel, do what you need here...
    Hope this helps!

  • How to handle radio-buttons in FB05  bdc????

    How to change Additional selections radio-button from none to Document numbers in CALL TRANSACTION BACKGROUND MODE..............................................
    Edited by: Raghavender Poosarla on Apr 8, 2008 10:32 AM

    I have BDC requirement of FB05 transaction... I am stuck at one point where this recordin is working in Foreground mode and not in Backgroung mode...The reason being there is a bit in which I am selecting a readio-button from value 'NONE' to 'Document numbers' WHICH IS HAPPENING IN FOREGROUND AND NOT IN BACKGROUND ....Can any one tell is there any special way for handling radio-buttons in recording of an transaction???

  • How to handle unchecked checkboxes in JSP?

    I have been trying to use <input type=checkbox > tag to handle the checkbox , but it only sends values for checkboxes tht are checked .. if not checked then those checkboxes are not handled, i also came across a code like
    <% String checked = (del.equals("")) ? "" : "checked"; %>
                   <input type=checkbox name=del value="Y" <%=checked %>/>
    but this gives error tht it does not recognise 'del' attribute..
    please send me any solution at [email protected].
    thanks in advance.

    Prakash_Pune wrote:
    tell me some Debugging tech. so i can overcome from my problem.....Do you use an IDE? Any IDE ships with a decent debugger where in you can just execute the code step by step, explore the current variable values and check what exactly is happening. For example Eclipse or IntelliJ. If you don´t use an IDE, then just place some System.out.println() or Logger.debug() statements at strategic locations printing the variables of relevance so that you can track in logs what exactly is happening.
    or tell any other way to find is my page is thread safe or not...Just write correct code and narrow the scope of the variables as much as possible. If you for example assigned the user object to a static variable or as a servlet´s instance variable, then exactly the same user object would be used everywhere in the application. That kind of logical things.

  • How to handle default checkbox(row selector)??

    Hi,
    I have a form where in there is a default checkbox and i have created a button named CANCELLED to cancel the particular row,when ever the end user wants to cancel a particular row he checks the checkbox so that in the back end we have taken a column cancel_flag where this column should be updated to 'Y' for the checked row by end user.
    How can we handle this scenerio for the above context??Please any help will be greatly appreciated.
    TIA,
    By,
    Kranthi.

    Kranthi,
    I assume your check box has static list of values like
    STATIC2:Cancelled;YThen write a after submit conditional pl/sql page-process which executes only when we press 'Cancelled' button.
    In the page process, write code similar to
    IF INSTR (:p1_checkbox, 'Y') != 0 --check box selected then
    THEN
    --update table
    UPDATE tbl_name
    SET cancel_flag='Y'
    WHERE pk_id=:p1_pk_id;
    END IF;where pk_id is primary key for your table. p1_pk_id is page item for primary key and p1_checkbox cancelled check box.
    Hope it helps
    Cheers,
    Hari

  • How to handle shortcut key options in LabVIEW

    Hi,
    I want to handle the ctrl+c option for a string control in labview. I just want to prevent the user from pressing the ctrl+c button for copying. is it possible to handle that inEvent Structure?
    Thanks
    Alagar

    Ben,
    removing the entry Copy from the context menu is not sufficient. In order to disable the control to copy the current active selection, you have to disable <ctrl + c> as shortcut for copying data in the complete LabVIEW environment. You have to open the Tools >> Options, switch to Menu Shortcuts and browse to Edit >> Copy. Switch the shortcut to something else than <ctrl + c>. This will disable the copy function for the shortcut <ctrl + c> (it will occur with the new shortcut of course!)
    Drawback:
    a) You remove the ability to use <ctrl + c> from the whole LabVIEW environment. So also in edit mode of VIs.... 
    b) When making a selection and then pressing <ctrl + c>, it will replace the selection with a simple 'c'. Most often, this is not intended.
    So all in all, i would definetly NOT recommend anyone to alter the shortcuts for common functions defined by the OS (<ctrl + c> for Copy, <ctrl + n> for New Document, .... )
    hope this helps,
    Norbert 
    Message Edited by Norbert B on 12-01-2008 08:41 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to handle radio buttons

    hi.
    i put 3 radio buttons in my scene and i wan't to handle the state of this buttons in an other component "graph"
    so i create group of buttons
    var group = SwingToggleGroup{
    var choiceText = ["Cercle","Square" ,"Rectangle"];
    var formchoices = for (text in choiceText)
        SwingRadioButton{
            text: text
            foreground: Color.GRAY
            font: Font{
                name: "Tahoma"
                size: 15
            toggleGroup: group
        }//SwingRadioButtonand after i passed values to my graph component :
    var graph: Graph = Graph{
    cercleForm : bind formchoices[1].focused
    squareForm : bind formchoices[2].focused
    rectangleForm  : bind formchoices[3].focused
    };but that's not working !!
    thx

    hi
    yes that's it ! i have to use the selected attribute and not focused. it's fine now :)
    But i am asking the question : must i pass the parameters for each component ?
    is it possible to      access to one component in the Scene from an other directly ?
    ( in flash it's possible with "root")
    thx
    ilyes

  • How to handle Radio buttons on screen.(urgant)

    Dear all,
    my req is : i had a screen , on that there are 3 radio buttons,Based on the radion button selection on that screen i've to trigger the 3 select statements.
    if  Radio button 1
        execute select stmt 1.
    if  Radio button 2
        execute select stmt 2.
    if  Radio button 3
        execute select stmt 3.
    how to write this and where.
    Pls frnds this is urgant for me.
    please help me,
    Thanks in advance,
    With regards,
    Ajay Kumar K,
    9908979994.

    hiii....
    you have to remember that you have to define the radio buttons in 1 group.because if changes are made in the group from the elements list then it would affect on all the radio buttons for a particular tasks.
    again radio buttons are always been declared with the parameter statements.
    for eg..
    Parameters:
    p_rad1 radiobutton group rad1 default 'X' user-command rad1,
    p_rad2 radiobutton group rad1,
    p_rad3 radiobutton group rad1.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF p_rad1 = 'X'.
    select statement 1.
    elseif p_rad2 = 'X'.
    select statement 2.
    elseif p_rad3 = 'X'.
    select statement 3.
    endif.
    The group group over here is RAD1.
    the default radio button over here is in radio button 1. you can also also check any of the radio buttons as default.
    thanks..
    any more help pzz revert back...

  • How to handle multiple selection in the Spark List control with checkbox as itemrenderer?

    Hi All,
    I am using checkbox as an ItemRenderer in spark list.
    I have a query.
    how to handle multiple selection in the Spark List control with checkbox as itemrenderer?
    how to retrieve the selected item label?
    Thank you in advance.

    Hi there, I'll tweak your code a little bit to something like this:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="vertical">
        <mx:Script>
            <![CDATA[
                 import mx.events.ListEvent;
                 import mx.controls.CheckBox;
               [Bindable]
               private var mySelectedIndexes:ArrayCollection=new ArrayCollection();
                private function onChange(e:ListEvent):void
                   if(CheckBox(e.itemRenderer).selected){
                             mySelectedIndexes.addItem(e.rowIndex);
                   }else{
                                  mySelectedIndexes.removeItemAt(mySelectedIndexes.getItemIndex(e.rowIndex));     
                   chkList.selectedIndices=mySelectedIndexes.toArray();
            ]]>
        </mx:Script>
    <mx:ArrayCollection id="collection">
            <mx:Object label="Test A"/>
            <mx:Object label="Test B"/>
            <mx:Object label="Test C"/>
            <mx:Object label="Test D"/>
            <mx:Object label="Test E"/>
            <mx:Object label="Test F"/>
            <mx:Object label="Test G"/>
        </mx:ArrayCollection>
    <mx:List id="chkList" dataProvider="{collection}" itemRenderer="mx.controls.CheckBox"  itemClick="onChange(event);" allowMultipleSelection="true"/>
    </mx:Application>

  • How to handle dynamically created checkboxes in JSP???

    Hello everybody,
    In a JSP page I would like to create checkbox dynamically on every
    result line (detail line), then check in some of them and finally pass the checked lines to a JSP bean which will handle them on a submit button press.
    The problem are:
    - how to index every checkbox in jsp result line in jsp page in order to avoid solutions like this:
    <input type=checkbox" name="value1">
    <input type=checkbox" name="value2">
    etc
    - how to read every checkbox to find the checked ones
    Is there anobody who has any experience from case like this?
    Please, help me.
    Best regards,
    Danny

    Hi, first off, no need to determine what has been checked or not. If the checkbox is checked, on the post, the value will be submitted as part of the request. If the checkbox is not checked, it will not be submitted (it's value will be null). Depending on what you need, I have approached this a number of different ways. One way is to name all checkboxes the same name. If you need to distinguish between two rows in the form, then in the value field for the checkbox, use some type of distinguishing factor, for example,
    <input type=checkbox name=chkName value="1:abc">
    <input type=checkbox name=chkName value="1:def">
    Now, you only have to make one call on the Servlet/JSP receiving the form post, request.getParameterValues("chkName") which will return an array of the non-null Strings that were checked.

  • How to handle checkbox in struts

    Hi,
    Can you help me how to handle checkbox in Struts?
    When i select/unselect checkbox in one page ,It should be selected/unselected stage when i come next time to that same page.

    Hi,
    Can you help me how to handle checkbox in Struts?
    When i select/unselect checkbox in one page ,It should be selected/unselected stage when i come next time to that same page.

  • 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 can I make checkbox same radio

    Hi all,
    I have a group check box with deferen name. How can I make checkbox same radio button (just check only one)
    Thanks
    HuyHH

    2 solutions:
    -use radio (hum sorry)
    -use a onCheck javascript event on every checkbox to de-check all others

  • How to hide the select-options fields on radiobutton select in webdynpro

    hi
    Could you please help how to hide the select-option fields in webdynpro
    there are four radio buttons
    for every radiobutton there is corresponding the select_option filed is associated to it
    user as only provision select  one radio button and reset of the select-option fileds should be hidden
    which ever the radio button is selected corresponding the select-options fileld should be displayed
    please find the attachement below

    Hi Nine,
    To hide select options you should use interface method REMOVE_SELECTION_SCREEN_ITEM of IF_WD_SELECT_OPTIONS.
    Sample code :
    Write the below code in the Event handler of Radio Button.
    DATA lv_r_helper_class TYPE REF TO if_wd_select_options.
    lv_r_helper_class = lo_interfacecontroller->init_selection_screen(
    lv_r_helper_Class->REMOVE_SELECTION_SCREEN_ITEM(exporting i_id = 'Select_option1_id1').
    This will hide first select option of your screen.Similarly pass select_option_id2 to hide it and so on.
    Regards,
    Ravikiran.k

  • How to make a checkbox circle transparent

    I would like to use acrobat to insert checkbox fields on a heathcare form such as the one below.  I would like the checkbox option to be a circle that would circle the number but be transparent to show the number below it.  This may not be possible but I thought I would see if anyone has an idea.  Thanks.

    AcroForms are the forms produced directly in Acrobat with the tools there. You can also get to Designer from Acrobat and create forms there. Once you go to Designer, you can not return to Acrobat for any editing since the Designer PDF is actually a XML package.
    It sounds like you may have used the same selections as I did in AcroForms, though I think you used a check box and not a radio box. I used radio boxes that are a circle by default. The check boxes are squares by default. The basic difference is that the check boxes are either independent (with different names) or identical (with identical names). The radio boxes are either independent (with different names) or only one can be selected at a time (with identical names). Thus, if you name a group of radio boxes with the same name, but different responses, selecting any one will deselect all others with the same name -- probably what you want -- and the response or the name will be the one you have selected. You can change to a square if you want. In AA9 and such, the form will come up with a choice for the user to highlight all fields, in which case there will be a transparent color (typically light blue) for all fields. You can still see through it. When you select a radio button, the number under it will be hidden by the selected icon -- probably OK to clarify a selection. You could always move it to one side if you want, but I think that is the limit of what you can do. The appearance would be a lot like a scan form you fill in with a #2 pencil (like SATs or GREs).
    I mentioned Designer since many folks get there without realizing it. Looks like you did not make it there, but you might want to explore that option on a copy of your form. Designer also has a separate forum named LiveCycle. The data files produced by AcroForms are typically FDF or XFDF (try exporting your data and look at the file differences). HTML is an option, but not as easy to use. Designer data files are XML files. The FDF, XFDF, and XML files can be imported to the form for printing/viewing/data management if you desire. There is no need to send the entire form, only the data. If you have the whole form sent, then you have to activate Reader Rights for users with Reader and come under the 500 use limit of the license (looks like that might be a problem for you, and the price to get around the limit is not something you really want to ask about unless you are flowing in cash).
    Many folks try to use e-mail for form submission. This is prone to problems of having an e-mail package recognized or the computer setup for MAPI, depending on the version of Acrobat and the OS. It is just a potential problem that can be avoided by a web script submission. Your IT folks should be able to help create a short web script to accept the data file and save it for you. With the FDF toolkit, you can also manipulate the FDF data file to extract what you need to a database or elsewhere. There are a lot of options, but you will likely come upon a few more form issues like the one you asked about that will require a bit of a rethink of how you create the form.
    Hopefully that answers your questions to some extent (even if not directly asked).

Maybe you are looking for