How do I give the radio buttons a buttongroup and id dynamically as the datagrid is populated?

I am using the following component as an item renderer for a
<mx:DataGridColumn>
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
>
<mx:HBox horizontalAlign="left" left="10">
<mx:RadioButton />
<mx:RadioButton />
<mx:RadioButton />
<mx:RadioButton />
<mx:RadioButton />
</mx:HBox>
</mx:Canvas>
How do I give the radio buttons a buttongroup and id
dynamically as the datagrid is populated?

"nikos101" <[email protected]> wrote in
message
news:g83gfl$m8o$[email protected]..
>I am using the following component as an item renderer
for a
><mx:DataGridColumn>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
>
> <mx:HBox horizontalAlign="left" left="10">
> <mx:RadioButton />
> <mx:RadioButton />
> <mx:RadioButton />
> <mx:RadioButton />
> <mx:RadioButton />
> </mx:HBox>
> </mx:Canvas>
>
> How do I give the radio buttons a buttongroup and id
dynamically as the
> datagrid is populated?
What is your actual goal?

Similar Messages

  • How do I disable the reload on the back button of Firefox and have it display the cached/prior page version?

    Every time I click the "back" button, Firefox reloads the previous page I was on. How do I disable the reload and have Firefox display the cached/prior page version? The whole point of going "back" is to see what we were just looking at.. I don't want a refreshed version of it. Any help would be greatly appreciated! I am running version 3.6.12.

    No problem. It's not a request that's been seen much if at all to be honest. I rely on them myself.
    You can always feel free to provide feedback to Apple though.
    http://www.apple.com/feedback/

  • How do I include the radio-button items on a second column as possible answers to the question?

    Using Adobe Acrobat Pro X, we created a fillable PDF from an existing PDF.
    One question can be answered by choosing one of four choices (radio buttons). The answers are laid out in a 2-by-2 arrangement.
    When Acrobat Pro converted the PDF into fillable format, it thought that the radio-button answers on the second column are not part of the question.
    How can I manually override Acrobat and make choices 3 and 4 part of the question.
    Please click attached screenshot for better zoom.

    George,
    i am the OP. I mistyped my email address and cannot log in to my original account.
    Thanks for your reply.
    How do I give each radio button the same name but unique button values?
    I right-clicked the first radio button, chose Properties (Ctrl+I).
    I copied the name: "What is your personal net worth in Canadian dollars including spousecommon law partner if applicable".
    I clicked Close.
    I then went into the Properties dialog window of the third radio button, which is one of the ungrouped choices. I pasted the name [What is your personal net worth in Canadian dollars including spousecommon law partner if applicable]. I then clicked Close.
    I get an error message pop up:
    A field of a different type already uses this name. Please choose a new name for the field, or change the field type to match the existing field with this name.
    What must I do now?
    Thanks.

  • How to default the radio button confirmation and invoice in shopping cart

    Hi Guys,
    In the shopping cart for a limit item I need to default the radio button for CONFIRMATION AND INVOICE as it is now defaluted to INVOICE ONLY .
    Please let me know how to change as I could not achieve it through UI badi.
    Thanks & Regards
    Arun

    Did you try the suggestions mentioned here: To make the field for Display only on the Shopping Cart Portal
    I'm looking for a way to restrict the "Invoice Only" option depending on the product category selected.  Do you know I would do this?
    For example only allow "Invoice Only" to be selected if Product Category X is selected.  If product category Y is selected then grey-out "Invoice Only".
    Matt

  • Enable/disable/defaulting the radio button in tabular Form

    Hi friends,
    I have one radio button column in my tabular form with 3 values for it.
    <li>FC
    <li>BC
    <li>EC
    I need to enable/disable the radio buttons according to the position of the user.
    If the position of the user is CEO means,
    then FC radio button has to be checked defaultly and also for him he needs to have BC and EC radio buttons to be enabled.
    If the position of the user is between(1-4) grades means,
    then FC radio button has to be disabled, but BC radio button has to be checked defaultly and also for him he needs to have EC radio buttons to be enabled.
    If the position of the user is between(4-6) grades means,
    then FC, BC radio button has to be disabled, but EC radio button has to be checked defaultly.
    How i can achieve this radio button enabling/disabling and defaulting it dynamically according to the user.
    Where i need to specify this kind of restriction inorder to work for me in my application.
    Brgds,
    Mini

    Hi Bob,
    thanks for your reply first, and your suggestion too.
    I tried in the below manner on the lov definition of my radio button and it hide/shown according to the user who logs into the application.
    SELECT 'FC' d, 'FC' r FROM DUAL WHERE lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO')
    UNION ALL
    SELECT 'BC' d, 'BC' r FROM DUAL WHERE lower(:APP_USER) IN (select lower(user_name) from apps.xxhy_ams_details_v where grade_name
    BETWEEN 1 and 4 OR lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO'))
    UNION ALL
    SELECT 'EC' d, 'EC' r FROM DUALBut how i can check the radio button defaultly according to the user who logs in .
    <li> If the employee with the position CEO logs into the application means, he needs to have FC to be checked defaultly.
    <li> If the employee with the grade between(1-4) logs into the application means, he needs to have BC to be checked defaultly.
    <li> If the employee with the grade between(5-12) logs into the application means, he needs to have EC to be checked defaultly.
    Note:
    Instead of hide/show the radio buttons defaultly whether it is possible to enable/disable the radio button according to the user who logs into the application.
    Brgds,
    Mini...

  • Why does is not show the radio buttons

    I want to display the buttons in a row then radio button in a row under the button and then log scroll pane under the radio buttons. This is my code:
            //Add the buttons and the log to this panel.
            add(buttonPanel, BorderLayout.PAGE_START);
            add(radioPanel, BorderLayout.CENTER);
            add(logScrollPane, BorderLayout.CENTER);When i run it it display the buttons and the logsrollpane. Why does it not display the radio buttons?

    Thanks guys.
    This is my problem. We have a big system that produce lots of log files and the software testers have to manually have to go through the logs file and look for a certain XML tags in the log file.
    What I want to do is help the software testers my developing a small tool that will allow them to open a log file and then click on a radio button corresponding to a xml tags that they are looking for and automatically highlight the tags in the file in yellow color .
    I am not sure how feasible this is and I am stuck.
    This is what I have done so far.
    Can you please guys help me go forward.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class FileChooserDemo extends JPanel
                                 implements ActionListener {
        static private final String newline = "\n";
        JButton openButton;
        JButton clearButton;
        JTextArea log;
        JFileChooser fc;
        // Radio Buttons
        static String em01 = "EM01";
        static String em07 = "EM07";
        /*static String dogString = "Dog";
        static String rabbitString = "Rabbit";
        static String pigString = "Pig";*/
        public FileChooserDemo() {
            super(new BorderLayout());
            //Create the radio buttons.
            JRadioButton em01Button = new JRadioButton(em01);
            em01Button.setMnemonic(KeyEvent.VK_B);
            em01Button.setActionCommand(em01);
            em01Button.setSelected(true);
            JRadioButton em07Button = new JRadioButton(em07);
            em07Button.setMnemonic(KeyEvent.VK_C);
            em07Button.setActionCommand(em07);
            //Group the radio buttons.
            ButtonGroup group = new ButtonGroup();
            group.add(em01Button);
            group.add(em07Button);
            //Register a listener for the radio buttons.
            em01Button.addActionListener(this);
            em07Button.addActionListener(this);
            //Put the radio buttons in a column in a panel.
            JPanel radioPanel = new JPanel(new GridLayout(0, 1));
            radioPanel.add(em01Button);
            radioPanel.add(em07Button);       
            //Create the log first, because the action listeners
            //need to refer to it.
            log = new JTextArea(40,60);
            log.setMargin(new Insets(5,5,5,5));
            log.setEditable(false);
            JScrollPane logScrollPane = new JScrollPane(log);
            //Create a file chooser
            fc = new JFileChooser();
            //Uncomment one of the following lines to try a different
            //file selection mode.  The first allows just directories
            //to be selected (and, at least in the Java look and feel,
            //shown).  The second allows both files and directories
            //to be selected.  If you leave these lines commented out,
            //then the default mode (FILES_ONLY) will be used.
            //fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            //fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
            //Create the open button.  We use the image from the JLF
            //Graphics Repository (but we extracted it from the jar).
            openButton = new JButton("Open File");
            openButton.addActionListener(this);
            //Create the save button.  We use the image from the JLF
            //Graphics Repository (but we extracted it from the jar).
            clearButton = new JButton("Clear Text Area");
            clearButton.addActionListener(this);
            //For layout purposes, put the buttons in a separate panel
            JPanel buttonPanel = new JPanel(); //use FlowLayout
            buttonPanel.add(openButton);
            buttonPanel.add(clearButton);
            //Add the buttons and the log to this panel.
            add(buttonPanel, BorderLayout.PAGE_START);
            add(radioPanel, BorderLayout.LINE_START);
            add(logScrollPane, BorderLayout.CENTER);
        public void actionPerformed(ActionEvent e) {
            //Handle open button action.
            if (e.getSource() == openButton) {
                int returnVal = fc.showOpenDialog(FileChooserDemo.this);
                if (returnVal == JFileChooser.APPROVE_OPTION) {
                     log.setText("");
                    File file = fc.getSelectedFile();
                    try{
                         BufferedReader in = new BufferedReader(new FileReader(file));
                             String data;
                             while ((data = in.readLine()) != null) {
                                  log.append(data + newline);
                    }catch(IOException ioe){
                log.setCaretPosition(log.getDocument().getLength());
            //Handle save button action.
            }else if (e.getSource() == clearButton) {
                  log.setText("");
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("PROGRESS Message Viewer");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            JComponent newContentPane = new FileChooserDemo();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • Sub screen: Handling the Radio button selection?

    Hi,
    Scenario:
    I have a Main screen and a sub screen. From the main screen I am calling the sub screen. On the Sub screen, I have 2 radio button. On the selection of the Radio buttons, I am activating/deactivating few of the screen elements on the sub screen.
    I have grouped the radio button and also tried assigning Function code to it, but in vain..:(
    Issue
    I am not able to handle the event triggered by the selection of the radio buttons?
    Kindly suggest.
    Regards
    s@k

    Hi,
    Are you still have any Issue, Let us know
    In the Main Screen Element List there is a field OK_CODE pass an entry into it
    in the TOP Include
    DATA : OK_CODE type SY-UCOMM. " This captures the OK_CODE from the Screen.
    Since SUb Screen cant have their Own OK_CODE this can be handled in the Main Screen only
    Try in PAI of Sub Screen using OK_CODE if it is not working then Implement the same in PAI of Main Screen
    The system will generate UCOMM for Radio Button since they are in One Group only. Each Radio button cannt have a separate UCOMM assigned. In Screen Painter (if It is Module Pool) assign a FCode for the Radio Button.
    Even if try changing the FCODe Value they still will have the New Changed Value but cannot be changed.
    This automatically triggers PAI . only way to capture it is check
    case ok_code. " Optionally you can omit this
    when  ok_code = 'RAD'.  " This is common for all the Radio BUttons but cant be different
    if r1 = 'X'.
    elseif r2 'X' " Etc.
    endif.
    endcase.
    Ram
    Edited by: Ramchander Krishnamraju on Feb 26, 2010 10:37 AM

  • How can I select a radio button in a table regarding the data in the cells?

    Hi everyone
    This is the issue: I need to select the RadioButton which is in a table with data related to transfers in the cells next to it, so I need to select the correct radio regarding the data next to it.
    This is the whole process: First I go to the Add Recurring Transfer section and select the parameters of the transfer (Accounts, date, amount, months etc), then with VB code I capture those parameters from the page and store them into Global variables for further usage on my E-tester script.
    Right after that I need to select the radiobutton regarding the data of the transfer that I already created in order to delete it or modify it (Please see Attachment selectradio1.jpg)
    So How can I move along the table and compare each cell with the variables that I created with the transfer information, so when I finish comparing a row cell by cell and if all the comparison match well in that row, I could select the radiobutton of the row.
    Note: Second Attachment selectradio2.jpg shows the source code of the table...If you need more info please let me know
    Could you please help me with this problem?? I'm Kind of frustrated with this issue jejeje

    Here is an example. I uploaded mock html so that you can actually try this code. I think this does exactly what you are asking.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    Dim rButton As HTMLInputElement
    ' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
    strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
    ' Strip out the ; for inner text comparison
    strValue = Replace(strValue, ";", "")
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    ' then clicks the radio button. Findelements allows you to specify a root element
    ' once the correct root row is found, FindElemets can get the correct radio button
    For Each tblRow In tbl.rows
      If tblRow.innerText = strValue Then
        Set rButton = RSWApp.om.FindElement("account", "INPUT", "NAME", , , tblRow)
         rButton.click
       End If
    Next
    End Sub
    I also uploaded the script I created. You should be able to run it and see how it works.
    This should get you going.

  • How to check the radio buttons in JSP

    Hi All,
    I am very new to JSP,
    I have two forms( addform and deleteform), in addform i have a table which fetch the records from database,
    and at the same time I created a radio button for each and every record(eg: If I have 10 records in database, 10 radio button will be created automaticallty).
    now I want to delete a row , by selecting correspondig radio button.
    how can i get the value of radio button in deleteform, which they checked in the addform,
    could anybody help me!!!!!!!
    with regards
    suresh

    Something like javascript
    <html>
    <head>
    <script>
    function add() {
    for(var i=0;i<document.forms[0].radio.length;i++) {
    if(document.forms[0].radio[i].checked) {
    document.forms[0].txtName.value = document.forms[0].radio.value;
    </script>
    </head>
    <body>
    <form name="form1">
    <input type="radio" name="radio" value="Radion 1">Radion 1
    <input type="radio" name="radio" value="Radion 2">Radion 2
    <input type="radio" name="radio" value="Radion 3">Radion 3
    <input type="text" name="txtName">
    <input type="button" value="Add" name="b2" onClick="add()">
    </form>
    </body>
    </html>
    or take a look a this  [link|http://www.java2s.com/Code/Java/JSP/SubmittingRadioButtons.htm]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to combine the radio buttons in different panels

    Hello everyone.I have to have some form of panels, each of which I want to put a radio button. How to make sure that when you select one of the radio buttons, the second was not selected ? Now both are selected. For convenience, made a small example.
    var w = new Window('dialog', '');
        p3 =  w.add("panel", undefined, " panel1 ", {borderStyle:"r"});
        p3.orientation = "column";
        p3.alignment='left';
        p3.preferredSize = [200,107];
        p3.spacing=0;
            var etProd = p3.add('edittext',undefined,'');
            etProd.preferredSize = [170,20];
            etProd.alignment = "top";
        grProd1 =p3.add('group');
        grProd1.orientation = 'row';
        grProd1.alignment="left";
            btnProd_add = grProd1.add('button',undefined,"Add");
            btnProd_del = grProd1.add('button',undefined,"Del");
            rb1 = p3.add('radiobutton',undefined,'import');
            rb1.alignment='left';
        p2 =  w.add("panel", undefined, " panel2 ", {borderStyle:"r"});
        p2.orientation = "column";
        p2.alignment='left';
        p2.preferredSize = [200,107];
        p2.spacing=0;
            var etProd2 = p2.add('edittext',undefined,'');
            etProd2.preferredSize = [170,20];
            etProd2.alignment = "top";
        grProd2 =p2.add('group');
        grProd2.orientation = 'row';
        grProd2.alignment="left";
            btnProd_add = grProd2.add('button',undefined,"Add");
            btnProd_del = grProd2.add('button',undefined,"Del");
            rb2 = p2.add('radiobutton',undefined,'import');
            rb2.alignment='left';
    w.show();

    If you are wanting a toggle them then you could that in the call backs… add above show();
    rb1.onClick = function() {
         rb2.value = false;
    rb2.onClick = function() {
         rb1.value = false;

  • I updated my iOS to 7 yesterday. But my music app doesn't show the 'Radio' button as the online videos and Apple website claims. What could be the reason and how to fix it. All other apps, swipe up/down seem to be working fine.

    I updated my iOS to 7 yesterday. But my music app doesn't show the 'Radio' button as the online videos and Apple website claims. What could be the reason and how to fix it. All other apps, swipe up/down seem to be working fine.

    Try to connect in recovery mode, explained in this article:
    iOS: Unable to update or restore
    Before that, back up your device, explained here:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    How to back up your data and set up as a new device
    You can check your warranty status here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • How to deselect the Radio button from htmlb.table.TableView

    Hi Experts,
    Could you please help me, how to seselect the Radio button from htmlb.table.TableView?
    <hbj:tableView
                                       id="tbvCustomer"
                                       model="mcBean.csModel"
                                       design="ALTERNATING"
                                       headerVisible="TRUE"
                                       footerVisible="TRUE"
                                       navigationMode="BYPAGE"
                                       selectionMode="SINGLESELECT"                               
                                       fillUpEmptyRows="FALSE"
                                       headerText="Searchresults"
                                       visibleRowCount="10"
                                       onNavigate="CustomerSearchNavigate"
                                       visibleFirstRow="<%=mcBean.getCsVisibleFirstRow() %>">
    Problem: After searching and selecting the Customer in the table, then again we are searching for another customer. After that the searched customer is displaying in the Table. By default the table Radio button is selected. Because for first Customer we have selected the Radio button. How we can deselect the FRadio button while searching for another Customer.
    Thanks In Advance.
    Regards,
    Vijay.

    I think it is <2095>.
    In SmartForms, go to your text window. 
    Use the icon on the top left of the text window to switch to the old editor.
    INSERT -> CHARACTERS -> SAP ICONS. 
    Do a FIND on "radio".  It's called ICON_WD_RADIO_BUTTON_EMPTY.

  • How do I make each Radio button appear in the tab order?

    When users tab through the form, the tab only highlights the first radio button of a group before moving to the next field or group of fields.
    Example: the user is asked for the following information:  LastName, Gender (M/F radio buttons), and BirthDate.
    When tabbing through the form, users are taken from from the LastName field to the Male radio button, to the Birthdate Field. Never does the tab allow them to select Female unless they click it with the mouse.
    It seems like this should be a simple fix, but I can't find it anywhere!
    Thanks for your help.

    That's the way they work. Think of a radio button group as a dropdown or list box. When any of these types of fields receives the focus, you can use the arrow keys to move through the options and the tab key moves to the next field.
    If you set up the group using check boxes instead, giving each in the group the same name but different export value, they will behave as you want. A group of checkboxes will behave a bit different than a group of radio buttons, but it's close.

  • How do I globally change the Radio Button style to "checkmark" in Adobe Acrobat X

    There is nothing in Preferences/Forms for this.
    And I want this as a persistent change untill I otherwise change it back.
    Thanks
    Second Post Here

    Make the change to one of the radio buttons, then right-click it and select
    Use Current Properties as New Defaults.

  • WPF: How to change the radio button text background?

    Is there a simple way that we can change the radio button text background? thx!
    JaneC

    If you literally mean the text background.
    It's a contentcontrol.
    You can put whatever you like in it to hold the text.
    As illustrated by my article:
    http://social.technet.microsoft.com/wiki/contents/articles/30173.wpf-tips-radiobutton-alignment.aspx
    Thus:
    <RadioButton Name="rbnIsolated">
    <TextBlock Text="Isolated Storage" Margin="0,-10,0,0" FontSize="22" Background="Pink"/>
    </RadioButton>
    Makes just the text background pink
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

Maybe you are looking for