How to use checkboxes instead of radio button in datagrid

I have a datagrid. I have two checkboxes in datagrid.That checkboxes should act like radio button.ie we can select only one checkbox at a time. If we select second checkbox,then the first selected checkbox should deselected.How to handle this scenario.Please give some code samples.
Thanks & Regards
kvpdy

You could do that, but it will be a lot easier doing it from the data model. This way you don't have to modify the behavior of the chart, it just blindly renders the data given to it. Behind the scenes you're dealing with boolean values, so it's pretty easy to write setters accomplish this.
public function set myAttribute(value:Boolean):void
     setAttributesTiedTogetherToFalse();
     _attrib = value;

Similar Messages

  • How to Use Spry to Validate Radio button

    How to use Spry Validation for radio button?
    The samples only have checkbox, text, select and textarea.
    Thanks

    I needed to add radio buttons to the live (non-destructive)
    filter so users could choose which column they wanted to search
    data from. Its been modified from the "contains CB" but works
    nicely. It also had to rebuild table when another button was
    selected. I'll post some code if anyone would like to use it....
    The Form area -
    <form name="filterform">
    Data Filter: <input type="text" id="filterTF"
    onkeyup="StartFilterTimer();" />
    <input type="radio" id="containsCB" name="radio"
    value="module" onclick="resetfilter();" checked /> by Module
    <input type="radio" id="containsCB" name="radio"
    value="oper" onclick="resetfilter();" /> by Oper
    <input type="radio" id="containsCB" name="radio"
    value="phone" onclick="resetfilter();" /> by Phone
    <div id="radiovalue"></div>
    </form>
    The JS area -
    function FilterData()
    var tf = document.getElementById("filterTF");
    for (var c=0; c < document.filterform.length; c++)
    if (document.filterform[c].checked)
    var choice = document.filterform[c].value;
    if (!tf.value)
    // If the text field is empty, remove any filter
    // that is set on the data set.
    dsRows.filter(null);
    return;
    // Set a filter on the data set that matches any row
    // that begins with the string in the text field.
    var regExpStr = tf.value;
    regExpStr = "^" + regExpStr;
    var regExp = new RegExp(regExpStr, "i");
    var filterFunc = function(ds, row, rowNumber)
    var str = row[choice];
    if (str && str.search(regExp) != -1)
    return row;
    return null;
    dsRows.filter(filterFunc);
    function StartFilterTimer()
    if (StartFilterTimer.timerID)
    clearTimeout(StartFilterTimer.timerID);
    StartFilterTimer.timerID = setTimeout(function() {
    StartFilterTimer.timerID = null; FilterData(); }, 400);
    function resetfilter() {
    // var tf = document.getElementById("filterTF");
    // var tfval = tf.value;
    document.getElementById("filterTF").value = "";
    StartFilterTimer();

  • How to use Checkbox  and radio buttons in BI Reporting

    Hi BW Experts,
       My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I don’t know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
    Thanks,
    Ram

    Hi..
    Catalog item characteristic
    - Data element
    - Characteristic type
    Entry type
    List of catalog characteristics
    Designer
    Format (character)
    Standard characteristic
    Alternative: Master characteristic
    (used for automatic product
    assignment)
    Simple entry field
    Alternatives:
    Dropdown listbox or radio button
    list

  • How to modify a lookup field-type to use checkbox instead of radiobutton?

    How to modify a lookup field-type to use checkbox instead of radiobutton?
    I would like to modify the behavior for the lookup field.
    Normally you get a screen where it is possible to search through a lookup. The items resulted from the search are listed as radiobutton items. Therefore you can select only one at the time to be added.
    Is it possible to have the items to be listed as checkbox instead? So that you can check multiple items and therefore be able to add multiple items at the time?
    For example:
    To add the user to 10 different groups on MS-AD.
    It is desired to have the ability to check multiple groups to be added instead only one at the time.
    My client would like to use this feature in many other situations.

    Displaying will not be a big deal but with that you have to customize the action class and its working as well.

  • How to put Check Boxes and Radio button in Smartforms

    Hi all,
    How to put check Box and radio button in Smartforms ............ from web properties there is an option to use. But How to use.     
    regards,
    Mohsin

    u can declare the checkboxes or radiobuttons whatever in driver program and pass the same to ur form...

  • How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?

    How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?
    So this what I'm trying to do:
    (     )   |TEXT FIELD|
    (     )   |TEXT FIELD|
    (     )   |                  |
    (     )   |TEXT FIELD|
    I have a radio button: (     )
    and a text field: |TEXT FIELD|
    The third text field is blank, and I would like for the radio button next to it greyed out (user can't click on it) since the text field is blank. Is this possible to achieve? I'm assuming I'll have to use javascript, but what would the code be and would it be entered in the javascript editor for the text field or the radio button?
    Thanks in advance guys

    Hey, thanks, but it didn't work
    I have the text fields as read only. Could that be why it's not working? Should I make the fields not read only?
    Thanks,

  • My form has a list of yes or no questions.  I want to use either cheboxes or radio buttons.  I can't make it work.  When I check yes for one question, it marks all yes answers for all other questions.  If I mark some radio buttons to answer, it unmarks la

    My form has a list of yes or no questions.  I want to use either cheboxes or radio buttons.  Unfortunatly I can't make it work.  When I check yes for one question, it marks all yes answers for all other questions.  If I mark some radio buttons to answer, it unmarks later.  Need immediate help!!!

    Is it that you are using a PDF-based form? Did you copy and paste the Yes/No fields all the way down your form? If so, then all of the yes/no boxes are copies of each other and have the same name and properties in the PDF.
    For example, if you had:
         Question 1 and Question 1 Yes/No checkboxes
         Question 2 and Question 1 Yes/No checkboxes
         Question 3 and Question 1 Yes/No checkboxes
         Question 4 and Question 1 Yes/No checkboxes
    Then whatever answer you selected in Question 1 would populate down through the rest of the form.
    Changing the Yes/No field properties in questions two through four would eliminate the problem.
    I hope that helps,
    Brian

  • WD ABAP: How to use checkboxes in webdynpro for abap

    Hello all,
    I want to use a group of Radio-Buttons in my Webdynpro. If I use the element RadioButtonByKey it will shown three Radiobuttons, how can I use them? I think I have to bind every Radiobutton on an seperate Context-Attribut. But I didn´t know can I do this. And why there are always three Radio-Buttons? I need only two. Is there anywhere a Tutorial which describes the handling of the Radio-Buttons?
    Kind regards
    Axel

    Hi Axel,
      if u need two radio buttons then insert child of type radio button .here is th simple example for creating and binding the buttons to selction key.
    Example:
    Assume that u r having 2 Radio buttons R1 and R2.
    For this u create 3 attributes R1,R2 and Sel.
    For the radio button R1:
    set the element properties as:
    keytoselect---R1
    selected key --Sel
    For the radio button R2:
    set the element properties as:
    keytoselect---R2
    selected key --Sel
    In implementation part :
    public void wdDoInit()
    //@@begin wdDoInit()
    wdContext.currentContextElement().setR1("Pass");
    wdContext.currentContextElement().setR2("Fail");
    wdContext.currentContextElement().setSel("Pass");
    //@@end
    SO from the above code the default radio button R1 will be enabled.
    If u want the second radio button to be default then change sel to
    wdContext.currentContextElement().setSel("Fail");
    so during run time when u select the first one automatically its selvalue changes according to the radio button's value.
    *****Points Please......
    Regards,
    Krishnam Raju.

  • How to get dispaly value of radio button

    hi i have situation where i what to get display value of radio button,for example i store value A in db but i display Active in my radio button how can i do that
    my radio button is
    <af:selectOneRadio id="sor3" layout="horizontal"
                                   value="#{pageFlowScope.InternalBean.status}"
                                   autoSubmit="true"
                                   valueChangeListener="#{RadiobuttonPopupBean.activationChangedListener}">
                  <af:selectItem label="Active" value="A" id="si10"/>
                  <af:selectItem label="Inactive" value="I" id="si9"/>
                </af:selectOneRadio>
    i what to display the value in this outputtext
    <af:outputText value="Reason: #{bindings.Reason.inputValue}" id="ot9"
                               partialTriggers="d1" inlineStyle="height:100px;"/>
    am in jdeveloper 11.1.1.6.0

    adf009, the answer was given in my blog I posted to your other thraed JDeveloper: Showing a Popup when Selecting an af:selectOneRadio | JDev &amp;amp; ADF Goodies
    You only have to read it and the link provided inside the blog pointing to the other blog entry.
    use
    <af:outputText value="Reason: #{pageFlowScope.InternalBean.status}" id="ot9"
                               partialTriggers="d1" inlineStyle="height:100px;"/>
    to output the text.
    By the way your code snipplet isn't understandable without knowing the context around it. You always should mention if you post code from someone else (at least give a link to the source).
    Timo

  • How can i declare a single radio button field in selection-screen ?

    How can i declare a single radio button field in selection-screen ?

    >
    Rob Burbank wrote:
    > And how will you turn it off once it is turned on??
    >
    > Rob
    Thats correct ;)...See ravi if users will ask so many things its our Job to convay the correct solution ....
    Just post your org requirement..SOo some body guide you better//
    Sas

  • How to eliminate  select message  after Radio button in ADF tables

    how to eliminate select message after Radio button in ADF tables
    example <f:facet name="selection">
    <af:tableSelectOne>
    </af:tableSelectOne>
    </f:facet>
    output:
    radobutton select
    radiobutton select
    please help me regarding this issue.

    Hi,
    this usually has a text String in the header saying "Select and .." which can be changed through the property inspector for the TableSelectOne component
    Frank

  • Matrix of Radio buttons on Datagrid please help!

    Hi,
        Anyone help me walk through this, I have a Datagrid object which uses radio button as item renderer.
    To be more specific this is a matrix of radio buttons on datagrid. The datagid columns are dynamically generated depending on the number of items i have in my database record, (e.g could be 10, 20, and so on...). The rendering of items goes well. Now my question would be how am I able to group the radio button in my datagrid "per column or per row"? since it appears to me that groupName is not working if applied on the item renderer. I also set the a radio button group on the item renderer parent document but it sets all the button to only one group.
    Any hints, and ideas how am I able to accomplish this? Please help this novice trying to wrap himself in flex.
    Thanks!
    Best Regards

    try this.
    <mx:RadioButtonGroup id="groupA"/>
    <mx:RadioButtonGroup id="groupB"/>
    <mx:DataGrid>
         <mx:dataProvider>
              <mx:Object Group="A" Price="11.99" groupName="groupA"/>
              <mx:Object Group="B" Price="11.99"  groupName="groupB"/>
              <mx:Object Group="A" Price="11.99" groupName="groupA"/>
              <mx:Object Group="B" Price="11.99"  groupName="groupB"/>
              <mx:Object Group="A" Price="11.99" groupName="groupA"/>
              <mx:Object Group="B" Price="11.99"  groupName="groupB"/>
              <mx:Object Group="A" Price="11.99" groupName="groupA"/>
              <mx:Object Group="B" Price="11.99"  groupName="groupB"/>
         </mx:dataProvider>
         <mx:columns>
              <mx:DataGridColumn dataField="Group">
                   <mx:itemRenderer>
                        <mx:Component>
                             <mx:RadioButton groupName="{data.groupName}" label="{data.Group}"/>
                        </mx:Component>
                   </mx:itemRenderer>
              </mx:DataGridColumn>
              <mx:DataGridColumn dataField="Price"/>
         </mx:columns>
    </mx:DataGrid>
    You may want to set the groupName dynamically in your data provider.

  • How to display Checkbox instead dropdown in OIM 11g using request dataset

    Hello,
    I am trying to display as check boxes instead of dropdown in requestor screen using request dataset.
    It still shows dropdown. Here is my request dataset.
    Is there anything wrong??
    <?xml version='1.0' encoding='UTF-8'?>
    <request-data-set xmlns="http://www.oracle.com/schema/oim/request" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" operation="PROVISION" entity="ACCOUNTING CONTROL" name="ProvisionResourceACCOUNTING CONTROL" xsi:schemaLocation="http://www.oracle.com/schema/oim/request">
    <AttributeReference available-in-bulk="true" length="20" widget="*checkbox*" type="*Boolean*" attr-ref="Instance" name="Instance" required="true">
    <lookupValues encoded-value="Dev" decoded-value="ACCOUNTING CONTROL (DEV)"/>
    <lookupValues encoded-value="QA" decoded-value="ACCOUNTING CONTROL (QA)"/>
    <lookupValues encoded-value="PRD" decoded-value="ACCOUNTING CONTROL (PRD)"/>
    </AttributeReference>
    </request-data-set>
    Thanks!!!

    What are you trying to achieve here? If you are using checkboxes than you can't have multiple options to it but would rather have to put static values.
    Something like:
    <AttributeReference name="Field1" attr-ref="Dev" available-in-bulk="false" type="Boolean" length="30" widget="checkbox" required="false"/>
    <AttributeReference name="Field2" attr-ref="QA" available-in-bulk="false" type="Boolean" length="30" widget="checkbox" required="false"/>
    <AttributeReference name="Field3" attr-ref="PRD" available-in-bulk="false" type="Boolean" length="30" widget="checkbox" required="false"/>
    AFAIK OIM does not allow for a multiselect box in dataset.
    -BB

  • How to create popup window with radio buttons and a input field

    Hi Guys,
    Can somebody give some directions to create a stand alone program to create a window popup with 2 radio button and an input field for getting text value. I need to update the text value in a custom table.
    I will call this stand alone program from an user exit. 
    Please give me the guidance how go about it or please give any tutorial you have.
    Thanks,
    Mini

    Hi,
    There are multiple aspects of your requirements. So let's take them one at a time.
    You can achieve it in the report program or you can use a combination of the both along.
    You can create a standalone report program using the ABAP Editor (SE38). In the report program you can call the SAP Module pool program by CALL Screen <screen number>. And then in the module pool program you an create a subscreen and can handle the window popup with 2 radio button and an input field for getting the text.
    For help - Module Pool programs you can search in ABAP Editor with DEMODYNPRO* and you will ge the entire demo code for all dialog related code.
    For Report and other Module pool help you can have a look at the following:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/a1ff9b8d0c0986e10000000a42189c/frameset.htm
    Hope this helps. Let me know if you need any more details.
    Thanks,
    Samantak.

  • How to use checkboxes in jtable ?

    I am trying to use checkboxes in
    JTable,I set the property in the jtable column to boolean.The proplem is that i do no know how to use this property in java program.My intension is that,I will have a java form and a java button on it,by clicking the button, i will have to write a code,for example a code that fetches records from a table and displays them on the jtable(on the user interface),when I select the check box corresponding to any row,It should let me either delete or edit that row and this modification has to be reflected to the table in the database. At this time,i can fetch and display but i can not delete or modify any row because I do no know how to use the check box inside the jtable.
    Thank you for your help!

    Multi-post: http://forum.java.sun.com/thread.jspa?threadID=5273661&tstart=0

Maybe you are looking for

  • The essential guide to DW cs4... by D. Powers: when from wamp to xampp+virtual host and having problems :(

    Following the book in chapter 2 I think Ivé followed everything correctly, but have encluded all the things I've edited below. I was using wamp with no problems but after trying to set up a virtual host and now using xampp im abit lost its probabsome

  • When i update to OS 5 will my contacts be erased?

    Will my contacts, photos and messages be deleted after i update to OS 5?

  • Finding the origin of a structure component

    Hi there, I want to find where are the values stored which came into BSEG_ALV-AZBET. I looked after in DD03L which tables has the AZBET component, but only structures use it. I can't see where are the values come from into BSEG_ALV-AZBET. Is any idea

  • No audio with avchd clips

    Hi, My video camera produces .mts files - avchd. Wanting a good editor I downloaded a Trial version of Premiere Pro CC  , BUT no matter what I tried - including many suggestions from on line users- could not get audio with any of my clips.  Prelude w

  • How to learn oim

    Hi All, i am currently working in sun identity manager. i am planning to move in to oim. in oim i see the many tech is there, which i need to learn. and what is easy way to learn. is it only oracle documentation or can i get any videos or something.