Radio button action

Hi all,
How should i create an interactive report with two radio buttons?.
When i clicks the radio button it should retrive the corresponding row and display that in SQL report(should be editable-with in same page)- Should i use tabular form instead of SQL report.
Thanks.

Hi,
>
SELECT apex_item.radiogroup(1,category,'unchecked') " ",
apex_item.radiogroup(2,category,'unchecked') " ",
"CATEGORY"."CATEGORY" "CATEGORY",
"CATEGORY"."DESCRIPTION" "DESCRIPTION",
"CATEGORY"."CREATED_DATE" "CREATED_DATE",
"CATEGORY"."CREATEDBY" "CREATEDBY"
FROM "CATEGORY"
>
This query looks very fuzzy!
>
Your query contains duplicate alias names, queries used for reports require unique alias names
>
This is because of:
apex_item.radiogroup(1,category,'unchecked') " "and
apex_item.radiogroup(2,category,'unchecked') " "having same alias!
Here I am not getting the idea about using two radio groups based on category column of your table category !
The question you originally posted is also not clear(what you want to achieve).
Update your forum profile with a real handle instead of *864990*.
Please read the FAQs for proper formatting of your post so that its readable:
http://wikis.sun.com/display/Forums/Forums+FAQ
Hope it helps!
Regards,
Kiran

Similar Messages

  • How can we have a column having text and radio button in the same line?

    Hi,
    I have a column which needs to have data with a radio button. Was able to achieve this by using <trh:tableLayout>. But when i select the radio button it shifts to the next line. Want to stop this behavior of radio button of shifting to the next line. This column also includes a hyperlink.So the text and hyperlink are made visible invisible based on radio button action.
    Adding one more doubt. Can a particular columns horizontalgrid can be made invisible?
    Any help would be appreciated.
    sample code:
    <trh:cellFormat id="cf8" halign="start">
    <af:activeOutputText value="#{row.Actions}" id="aot2"/>
    <af:goLink text="#{row.Actions}" id="gl1"
    clientComponent="true" visible="false"
    targetFrame="_blank" destination="http:// + #{row.BUTTON_URL}">
    </af:goLink>
    <af:selectBooleanRadio text="" id="sbr1">
    <af:clientListener method="selectCheckBox" type="click"/>
    </af:selectBooleanRadio>
    </trh:cellFormat>
    Thanks,
    Nita

    Remove the <trh:> components. Put the other components as direct children of the PanelGroupLayout:
    <af:column id="c2" headerText="Actions">
      <af:panelGroupLayout id="pgl6" layout="horizontal">
        <af:activeOutputText value="#{row.Actions}" id="aot2"/>
        <af:goLink text="#{row.Actions}" id="gl1"
                   clientComponent="true" visible="false"
                   targetFrame="_blank" destination="http:// + #{row.BUTTON_URL}">
        </af:goLink>
        <af:selectBooleanRadio text="" id="sbr1">
          <af:clientListener method="selectCheckBox" type="click"/>
        </af:selectBooleanRadio>
      </af:panelGroupLayout>
    </af:column>If you need to add some horizontan space between the components, you can put <af:spacer>(s) between the components.
    Dimitar

  • Radio buttons with dropdowns?

    I'm creating a form for my company's HR department, and I need some radio buttons with dependent dropdowns.
    In other words, I'd like (for example) three radio buttons. No dropdowns appear until one of the buttons is selected, and then the appropriate dropdown appears. Is this possible? Or is there a better way to do this? I don't want the unselected dropdowns to be available.
    I have Pro 9 for Windows and Pro X for Mac. I know virtually nothing about scripting, but I know that it can be done.
    Thanks in advance for any help!
    Theresa

    Do I add this code to the group's action, or to individual radio button actions?
    To each individual radio-button.
    Do I make the dropdowns visible or hidden?
    Their visibility will be determined by the state of the radio-buttons. As default you can set them to be hidden, when no radio button is selected.
    Do I put any code in the dropdown properties, or just in the radio button properties?
    Just in the radio buttons.
    And when you say "embed this code at the doc-level," what does that mean?
    Go to Advanced - Document Processing - Document JavaScripts...
    Create a new script, remove the default text that appears in the window and paste the code I provided instead.

  • 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.

  • 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

  • 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

  • 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

  • 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.

  • 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?

  • How can I set a radio button to a be checked using an action script?

    Acobat X: I have two radio buttons called EnrollmentType with different values. "New Student" and "Returning Student". I need to set 160 forms to returning student, Please
    will this work?
    getField("EnrollmentType").value = "Returning Student"

    This is Adobe X Pro:
    Ok when I click the properties of the radio button. Both have the same
    "Enrollment type".
    But each has a different "Radio Button Choice" under the  Options TAB.
    It does work when I process the forms and save the data.
    The field "Enrollment type" contains either "New Student" or "Returning
    Student" depending on which option they picked.
    I am sending these forms back to the parents to edit any new/changed info
    and want it to have "Returning Student" checked since they are in fact
    returning and not new anymore.

  • 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 !

  • Collection binding to radio button: No command button action

    Hi,
    I bound a List collection to radio buttons as below.
    <h:selectOneRadio disabledClass="selectOneRadio_Disabled"
                   styleClass="selectOneRadio" id="radio1" layout="pageDirection" value="#{param.selectedChoideId}">
    <f:selectItems value="#{PollBean.choices}" />
    </h:selectOneRadio>
    I also added a command button to send the value of selected radio item. The item labels and values are displayed properly on run time.
    But when the button is clicked, the JSF lifecycle is started but the execution thread cannot enter phase 4 called "Update Model Value" after phase 3 "Process Validations" and directly jump to phase 6 called "Render Response". By this way, navigation rule is not applied and the execution gets back to the starting page.
    Is there anyone have encountered this problem ever before ? What can cause this problem ?
    Regards.
    UmutRR

    It might be a typical problem of SelectOne/Many.
    Check the types of param.selectedChoideld and PollBean.choices.
    My post will help you:
    http://forum.java.sun.com/thread.jspa?threadID=604798

  • Radio button affecting dynamic action

    Hi
    I am trying to implement Radio Button in apex 4.1.1 , on selecting radio button , it show and hide regions. I got that working
    I was wonder if , i include more static value to radio groups and which are only shown , when authenticated user is logged in or is not a public user and then on selecting same non public radio button it show authenticated region only.
    All in same radio groups
    radio 1 show this to public user
    radio 2 (shown on logged in) when selected show this region.
    thanks in advance

    Hi,
    >
    I am trying to implement Radio Button in apex 4.1.1 , on selecting radio button , it show and hide regions. I got that working
    I was wonder if , i include more static value to radio groups and which are only shown , when authenticated user is logged in or is not a public user and then on selecting same non public radio button it show authenticated region only.
    All in same radio groups
    radio 1 show this to public user
    radio 2 (shown on logged in) when selected show this region.
    >
    Radio buttons are complex HTNL elements. While it is theoretically possible to manipulate then with JavaScripts it is simpler and better to have 2 separate items and hide/show them conditionally.
    If you must use one group then you will need to use jQuery selectors to get hold of the buttons individually. Look up the element in HTML DOM using browser "inspection" utilities, e.g. FF+Firebug, and you can work out the selector.
    Cheers,

Maybe you are looking for

  • How can I save a file (text).....,

    ......then edit some text and save file with a new file name. Thus having both versions saved? I think the question is straight forward to anyone using lion. If not:- I write a simple text file This is a simple text file save and name as text_file_1

  • Mapping in XI - cannot access Global Container parameters

    Hi all, we have the following problem in graphical XI mapping. Trying to retrieve the run-time value of a global parameter, we cannot access the value itself (e.g. test using "display queue" menu). We use 2 simple user-defined functions (getIdoc and

  • Connecing 40' Dynex Tv to Panasonic Bluray

    I'm having issues connecting my Panasonic bluray player to my 40' Dynex TV. There are three outlets for HDMI - HDMI1 HDMI2 HDMI3 I purchased a Dynex HDMI cord, and connected in the correct spot on the bluray player for HDMI. My issue is that under my

  • Is there a way to be able to select all mail on iPad/iPhone?

    Is there a way to be able to select all mail on iPad/iPhone all together as opposed to one at a time?

  • BEx Query in Browser - decimals and thousand separators switched

    I have a BEx query that I open up in a regular IE browser.  I connect to the BW system and my query appears. However, for all the Key Figures, the decimals and thousand separators are switched.  Example, $323,67 $2.893,54 10,0 EA 12,60% Any suggestio