Radio button loose focus on action='true'

Hi guys
I have a dynamic list based on which i create a table , This table holds a search result.
against each employee id in the table i have a radio button to select, i have made the action='true' for the radio button, so that based on the selection i can further calculate other attributes of the employee.
but when i select the radio button the user form is refreshed, the daynmic list and table are recalculated, the radio button slection is lost, all together a fresh result is displayed.
how can i solve this
Thanks in advance
Cva

tried all of the things u said.
Changed to requestFocusInWindow().
And added:
        try {
            EventQueue.invokeAndWait(new Runnable() {
                public void run() {
                    Information.getComponentInitiator().showPlayingField();
        } catch(Exception e) {
            e.printStackTrace();
        }On the part that initiates the panel that should get focus.. tried with SwingUtilities.invokeAndWait aswell..
Also, the correct panels are focusable, visible and displayable..
Any other ideas?
EDIT:
Found a solution.
    public void showPlayingField() {
       try {
            EventQueue.invokeAndWait(new Runnable() {
                public void run() {
                    JPanel_GameStarted_PlayingField playingField = new JPanel_GameStarted_PlayingField();
                    Information.getMainFrame().addComponent(playingField,0);
                    playingField.requestFocusInWindow();
        } catch(Exception e) {
            e.printStackTrace();
    }Swapped the invokeAndWait to the method showPlayingField, and called the requestFocusInWindow after the panel had been added to the jframe.
Edited by: Lgeee on Jul 2, 2010 3:46 AM

Similar Messages

  • Form UIBB: Radio Button Group: How to set default value?

    Hello,
    i've added a Radio Button Group in Forum UIBB (FPM_FORM_UIBB) with 3 possible values. How can I set the default value for this group? When starting the application, no radio button is selected..
    Thanks & Regards
    Christopher

    Hi Christopher,
    i've the same requiremnt for adding a Radio Button Group and 3 Radio buttons under it in Forum UIBB (FPM_FORM_UIBB) with 4 possible values..
    I have added 3 custom fields for 3 Radio buttons in the structure. In the desin time, I have added these 3 fields and taken as Radion button Group. But, Only label is coming on the output...
    I totally stuck here. Can you please guide me on this in details as to how to add the Radio buttons and how its action can be handled?
    It's bit urgent for me.
    Thanks in advance,
    Sumesh 

  • Grouping Radio Buttons on a Dialog Box

    Hi,
    Sorry to post this, I could not get any doc that could help.
    I have three groups of  radio buttons in a dialog box and, I set the Group property of each of the first radio button in a group to true. But it does not seem to work. Did I miss something?
    Thanks for your help.

    Found the solution:
    I Used 'ADMRadioGroupSuite1' Suite - RadioGroupSuite ("ADM Radio Group Suite") to group them. 

  • HIdidng input field depeding on radio button selected

    Hello Experts,
    Can any let me know  or point to a tutorial ?
    how I can hide a input field another input field depending on the selected radio button.
    The radio button I have are fax and email.
    If Fax is selected I want to dispaly input field for fax and vice versa.
    Thanks,
    Raj

    Hi raj,
    (1)Create two context attribute of type "Visibility".
        (a) faxVisible
        (b) emailVisible
    (2)And bind the "visible" property of inputfields to these attributes.
    (3)On radio button selection in the action handler do following thing  for fax selection and vice versa.
    wdContext.currentContextElement().setFaxVisible(WDVisibility.VISIBLE);
    wdContext.currentContextElement().setEmailVisible(WDVisibility.NONE);
    Regards,
    Praveen

  • Help using a dynamic action to update tabular form items (specifically radio button) based on collection

    Hi Everyone, I have posted this question in the past and made huge progress with Denes Kubicek's help:  https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365::::: based on my earlier question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494
    I am struggling with one item in my tabular form.  It is a radio button.  The choices all appear properly, but the value is not saved in the collection (and hence, not saved in the table).  All other items in the tabular form save properly.
    here is what I have for the query.   It is item c024 (which maps to ;'f03'), which is defined as a radio LOV based on an existing LOV.
    Currently I have:
    2 page items:
    P110_ID
    P110_VALUE
    Dynamic action called CHANGE COLUMN:
    event: CHANGE
    selection type: jQUERY Selector
    jQuery:
    jQuery Select = input[name='f03'],select[name'f08'],select[name='f09'],input[name='f10'],input[name='f11'],input[name='f12'],select[name='f40'],input[name='f21'],input[name='f22'],input[name='f23'],input[name='f50']
    event scope: Dynamic
    true action#1: set value P110_ID javascript expression this.triggeringElement.id
    true action#2: set value P110_VALUE javascript expression this.triggeringElement.value
    true action#3: execute pl/sql code
    declare
      v_member number;
      v_seq number;
    begin
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    true ation#4 refresh region :LANDINGS_COLLECTION
    the tabular form is based on the query:
    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
    where collection_name = 'SPECIES_COLLECTION' order by seq_id
    I have noticed the following:
    when I change column C011 (price) the following values are set in the dynamic action:
    P110_ID = f11_1
    P110_VALUE = whatever I change the price to.
    when I change the column C024 (hms_flag), the following values are set:
    P110_ID = f03_0001
    P110_VALUE = whatever I change hms_flag to.
    the region is refreshed in my dynamic action, and the change for hms_flag does not hold.  I have tested the SQL query that generates the value for v_SEQ in the dynamic action.   In both a change to price and HMS_FLAG it appears valid
    select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
    if f11_1, v_seq:= 1
    if f03_0001, v_seq := 1
    thank you!

    solved.  sort of. 
    field c024 references f03.
    the Dynamic ACtion, step 4 calculates v_member by taking a substring of P110_ID...and in all other fields, the column and the field (fxx) are the same value....except for c024.
    I am not certain exactly how to resolve, but see the problem.

  • Disable only one radio button in a Radiogroup using Dynamic Actions.

    Hello everyone,
    I'm using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit with Application Express 4.1.1.00.23
    I have a radio group which has 3 radio buttons. Now in certain situations I want only one of the radio buttons to be disabled.
    I don't want to resort to Javascript for this as that would mean another piece of code that can go wrong and introduce bugs.
    Is this possible using a Dynamic Action? Although DA is also JS, I feel its much easier to maintain.
    Regards,
    Arijit

    I know, you did ask for DA
    Try to put this code in DA and run this code on page load
    =-==========================================
    var pOption = 3;
    var nameArray = $('input[name=p_v01]').map(function(){
                        return this.getAttribute('value');
                    }).get();
    for (i=0;i<nameArray.length;i++){
        if(pOption == nameArray[i]){           
            $("#P2_CHECK1_"+i).attr("disabled", true);
    ==========================================
    Plain Javascript
    <script type ="text/javascript">
    function disableCheckBox(pOption){
        var nameArray = $('input[name=p_v01]').map(function(){
                            return this.getAttribute('value');
                        }).get();
        for (i=0;i<nameArray.length;i++){
            if(pOption == nameArray[i]){           
                $("#P2_CHECK1_"+i).attr("disabled", true);
    $(document).ready(function(){
        var chkOption = 3;
        disableCheckBox(chkOption);
    </script>
    Thanks,
    Ramesh P.

  • Fn+F5 wifi switch not working. X301: win 7 pro 64: Radio button highlit no action when pressed.

    Can't turn wifi radio on. Hardware slider switch OK, Fn+F5 shows radio button, illuminates when focus on button, does not operate when button pressed. So no wifi available. X301 Intel 5300 AGN: driver version 13.1.1.1. /1-13-10 Device working properly : do not allow PC to turn off device: media state enabled. Windows network diagnostics - 'There might be a problem with the wifi driver' Lenovo toolbox - diagnostics :- available and capable to send and receive data. (obviously not true!) PCI express status test passed, no other tests can run because no network can be seen. Other laptops adjacent to X301 can see the wifi network signal. Tried, disable and uninstall drivers and device. Latest updates from Microsoft, Lenovo and Intel. Rolling back and restore have become corrupted and trying these fails. Has anyone any other ides to try please? Thanks

    damn ! that was it ... you wouldn't believe how long i was struggling with that strange error
    chrome-remote-desktop is actually  a pretty cool tool to remotely control your pc from your mobile.
    well, but it had to go now ... thanks for your help !

  • Radio Button Focus

    I've had this on the GUI forum all day but have not had any help. (sorry)
    I have a form that loads empty. I then grab data from the DB and populate the form. I have 3 radio buttons that are part of the radio group. I set one of these after gathering data by calling setSelected(true).
    The focus (rectangular dotted line) does not move to the element that is selected. I have tried requestFocus() but it does not change. The focus moves when I press tab. It seems like the focus is set to the first focusable element.
    What do I need to do to solve this? Should I try changing the order of focusable elements to have my selected item as the first element?
    BTW - I have also tried the following to correct this.
    doClick()
    grabFocus()
    I have made sure that I am requesting focus after show() is called. I've also tried it before show is called. The form is in a dialog window. I have tried it as modal and non modal.
    Any help would be greatly appreciated.
    Thanks

    What do I need to do to solve this?so far, the 'common guesses' have not solved your problem.
    do you want more guesses, or a solution?
    if a solution, you need to post a small demo program that illustrates the problem.
    that way, everyone can see how you have your program structured.

  • Disabling actions on a radio button

    Hello,
    I need your help for implementing this behavior on a radio button:
    disable any actions on a radio button (no selection is possible) until an event is generated.
    It means that this radio buttib still waits for an event for being activated on for another for being desactivated another time?
    Any help?

    This works fine for me:
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.RadioButton;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class DisabledRadioButtonExample extends Application {
        @Override
        public void start(Stage primaryStage) {
            final RadioButton choice1 = new RadioButton("Choice 1");
            final RadioButton choice2 = new RadioButton("Choice 2");
            final ToggleGroup tg = new ToggleGroup();
            tg.getToggles().addAll(choice1, choice2);
            choice2.setDisable(true);
            final Button enableButton = new Button("Enable");
            enableButton.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent event) {
                    choice2.setDisable(false);
                    // enable button has no use any more:
                    enableButton.setDisable(true);
            final VBox root = new VBox(5);
            root.getChildren().addAll(choice1, choice2, enableButton);
            primaryStage.setScene(new Scene(root, 300, 200));
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);
    Can you post a short, complete example which demonstrates the problem?

  • ADF AutoSubmit True column Loosing Focus after hitting Tab

    Hi,
    I am on 11.1.2.2.0. I have implemented af:table component and inside table on few columns I have autoSubmit="true" immediate="true" . After entering values into those columns when I hit Tab (To go to next field in table) , it goes to next field and looses focus. Is there any work around or fix to overcome this issue ?
    Thanks and Regards,
    Jit

    Hi,
    Thanks for the links. My requirement is to set focus inside af:table. Inside table I have say 5 fields.
    3rd Field is LOV and 4th fields is Text. After entering LOV info in Field3 focus should go to field4(which is inputText).
    I tried
    Frank's Blog
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus
    AMIS Blog
    http://technology.amis.nl/2008/01/04/adf-11g-rich-faces-focus-on-field-after-button-press-or-ppr-including-javascript-in-ppr-response-and-clientlisteners-client-side-programming-in-adf-faces-rich-client-components-part-2/
    This works for ADF Form entry. When I tried implement this in table the field id(eg it4) is not picked.
    I found other blog for where it is mentioned field id dwill be different in case of Table.
    http://www.bartkummel.net/2009/11/oracle-adf-set-focus-to-input-field-in-data-table/#respond
    Do you have any idea how to get Table id or help in building this field id in Table ?
    Thanks and Regards,
    Jit

  • Calling an action on Click of Radio Button

    Hi,
    We have a form in which we need to display two radio buttons and two dropdown lists. Depending on the selection of Radio Button the drop down list should change.
    To get the different data in the dropdown based on the selection of radio button, what would be the best method?

    a.If the data is fairly static and little, then you could get it all at once and use standard javascript (or a toolkit like jquery)
    b. If the data is potentially large, then you could use javascript + ajax + dhtml using a toolkit like jquery
    c. If you cant use javascript , then you would have to first change the UI to have a submit button , then its like any other pageflow action.
    what would be the best methodDepends on what attributes you wish to measure best , development time, accessibility, response times etc.
    regards
    deepak

  • Display Yes / No instead of True or false for radio buttons in SSRS 2008R2

    Hi All,
    I have one report with two radio buttons as parameters. In the report display I see True / false beside the radio buttons. Is there a way where I can display it as
    YES instead of True and NO for False beside radio buttons?
    Thanks,
    RH
    sql

    Hi sql9,
    According to your description, you want to show "Yes" and "No" in Boolean parameter instead of "True" and "False". Right?
    In Reporting Services, it doesn't has any property for the text of radio button in a Boolean parameter. So we can't modify the "True" and "False" into "Yes" and "No". For your requirement, a workaround is changing the type into drop down
    list and put the "Yes" and "No" into values.
    Reference:
    SSRS boolean
    parameter Yes and NO instead of True and False in prompt area
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Assigning Actions to Radio Button Widget

    I'd like to be able to use the radio button widget as a way to jump to slides. I created a variable for each option (assigning a value of 1 to each) and tied it to an advanced action I've attempted to create. I then added a button that executes that advanced option once the radio button is selected. It doesn't seem to be working.
    Does anyone know how to do this, by chance?
    My advanced action script looks like this:
    Check if [var1 is equal to 1]
    begin
    Jump to slide Slide 4
    end
    Or Else
    begin
    end
    Check if [var 2 is equal to 1]
    begin
    Jump to slide Slide 5
    begin
    end
    Etc, etc.

    Hi,
    Only one variable is sufficient to acheive this.I tried the following steps and it worked.
    1. Create a variable say var1
    2. Create advanced actions
    Check if [var1 is equal to 1]
    begin
    Jump to slide Slide 4
    end
    Or Else
    begin
    end
    Check if [var1  is equal to 2]
    begin
    Jump to slide Slide 5
    begin
    end
    3. Insert the Radio Button widget
    4. In Widget Parameters provide the comma seperated values like 1,2,3
    5. Provide the variable name (var1)
    6. Insert a button and call the above script.
    thanks
    ravi

  • Keep Radio Button selected after action

    Hi All - This is a strange situation.
    I have 3 context node for Radio Buttons
    the 1st context node is for 2 radio buttons
    the 2nd context node is for 6 radio buttons
    the 3rd context node is for 4 radio buttons
    Scenario: 1st Context node has "DEFAULT VALUE" so is initially selected, the other two context node doesn't have DEFAULT VALUE.
    I select a radio button (that belongs to the second node) and also select a radio button (that belongs to the 3rd context node) now I click a custom button that will trigger an ACTION.
    1st & 3rd Radio buttons keep the RADIO BUTTON SELECTED but 2nd Radio Button now is like INITIAL, WHY??? if everything is designed the same way.
    I want to keep the selected value so the user can see which options they selected.
    A1          B2            C3      <----
    First time (after initialization)
    X
    A1         B2            C3      <----
    I selected values
    X            X              X
    A1         B2             C3     <----
    After Action is trigger
    X                             X
    thanks!
    Jason PV

    Hi,
    I dont see any reason other than selected value getting lost in wddomodify method or in action event handler.
    Check in WDDOMODIFYVIEW or in Action Handler method you are not playing modifying the context node bound to 2 group of radio buttons .
    Or you can fetch the selected value in your action handler store it in some view attribute and bind the node back again with same value on wddomodifyview.
    Regards
    Manas Dua

  • Dynamic-actions/expressions for Radio button in VC

    Hi,
    I would like to know whether dynamic actions for radio-buttons are possible in VC??
    I have a situation where, i have to display/hide an input-field according to the radio-button that i select.
    Is this possible in VC??
    Because, i do not find any place where i can write expressions for a radio-button so that it can take actions accordingly.

    Actually its possible.
    Here is the sample code for this.
    tables : kna1.
    parameters : chk1 radiobutton group g1 user-command abc,
                 chk2 radiobutton group g1.
    parameters : chk3 type kunnr.
    at selection-screen output.
    loop at screen.
      if chk1 = 'x' and screen-name = chk3.
          chk3-active = '0'.
      endif.
    endloop.
    In this way you can hide a input-field on the screen.

Maybe you are looking for

  • Runtime exec freezes: exec target is a executable .jar that requires stdin

    I am having a problem with the Runtime.getRuntime().exec methodology in the following scenerio: -- Exec.class is a program that uses a StreamGobbler to display stdout to the screen -- ReadInput.class is a program that requires the user enter informat

  • SAP Tables  for Open Customer Orders and Sales History

    Dear Experts. I am looking to get SAP SD related tables for the following, 1) SAP tables for Open Customer Orders      From SAP, I need to get all tables that Contain all open customer orders for products. 2) Sales History From SAP, I need to get all

  • My iPhone 4S battery was on 1% and won't turn back on - what to do?

    And I've already tried holding the home button and the power button for about 10-20 seconds, but it keeps showing the red charging symbol. I've tried three different chargers. I've never had a problem with the battery before, it's always been working

  • Email notification not received

    We have a incident that user and admin is not received the email notification to lotus notes id.other users receiving the notifications from the same application.Same user and admin receiving mails from other applications SWI1 no error but in SOST th

  • JDBC Driver error when working in command prompt.

    I have a swing program that connects to MySql Database. When run within the Netbeans IDE, there are no errors. But when I run through the command prompt, I get the User Interface screen but does not connect to the database. I have also added the "mys