Help on radio buttons

I have a radio group as follows STATIC2:;Yes;No;No
default is No
the name is P1_MSD1 and the label is MSD LEVEL 1 BUILT.
I simply want to change this to yes after a process runs.
I am using
select 'Yes' into :P1_MSD1 from dual;
But it is not working, please help.
Thanks,
Doug

Hi Doug,
Make your radiogroup source:STATIC:Yes,NoThen make your process be a PL/SQL anonymous block with code as follows:
:P1_MSD1 := 'Yes';
Set to conditions of this process being executed to however you want.
Edit: Oh I misread...place this statement at the end of your process...that way you can be sure it happens whenever the process runs :)
Mike
Edited by: Dird on Nov 23, 2009 2:30 PM

Similar Messages

  • NEED HELP IN RADIO BUTTON QUERY

    Hi, Friends
    I like to query to extract data from my table with the help of radio button but I am not able to think what I should write to query. Plz help.
    The radio button select jsp page code is-
    <form action="queryservice.jsp" method="post">
    <h3><strong>Services Available</strong></h3>
      <p>
        <label>
          <input type="radio" name="service" value="si"  />
          Institutions</label>
        <br />
        <label>
          <input type="radio" name="service" value="sc" />
          Corporate_Offices</label>
        <br />
        <label>
          <input type="radio" name="service" value="sr" />
          Restaurent_Cafe</label>
        <br />
        <label>
          <input type="radio" name="service" value="sb" />
          Bus_Stop</label>
        <br />
        <label>
          <input type="radio" name="service" value="sa" />
          Apartment</label>
        <br />
        <label>
          <input type="radio" name="service" value="sh" />
          Hotels</label>
        <br />
      </p>
      <label>
        <input type="submit" value="Submit" />
      </label>
    </form>And queryservice.jsp page is
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <sql:query var="xyz" scope="request">
       <% String var = request.getParameter("service"); %>
             if(var.equals("si")){ SELECT si FROM serviceTable}
          else if(var.equals("sc")){ SELECT sc FROM serviceTable}
          else if(var.equals("sr")){ SELECT sr FROM serviceTable}
          else if(var.equals("sb")){ SELECT sb FROM serviceTable}
          else if(var.equals("sa")){ SELECT sa FROM serviceTable}
          else if(var.equals("sh")){ SELECT sh FROM serviceTable}
    </sql:query>Please correct it.
    Thanking you

    Error Report-
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException:
           if(var.equals("si")){ SELECT si FROM serviceTable }
          else if(var.equals("sc")){ SELECT sc FROM serviceTable}
          else if(var.equals("sr")){ SELECT sr FROM serviceTable}
          else if(var.equals("sb")){ SELECT sb FROM serviceTable}
          else if(var.equals("sa")){ SELECT sa FROM serviceTable}
          else if(var.equals("sh")){ SELECT sh FROM serviceTable}
    : Non supported SQL92 token at position: 57: SELECT
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException:
           note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
    Apache Tomcat/6.0.14

  • Want to create F1 Help for radio button in my report

    Hi All,
          I want to create F1 Help for radio button in my report program. Which function module should i call in <b>at selection screen on help-request</b>
          Also do I need to define the texts somewhere or I can pass it directly to the function module.

    Try DYN_FIELD_F1_HELP,
    ~Suresh
    that is only for Dic fields..
    Pl take alook at this<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a243d9b511d1950e0000e8353423/frameset.htm">SAP Help</a>
    ~Suresh
    Message was edited by: Suresh Datti

  • Help with Radio Buttons in Form

    Hi. I have inherited a website that has a simple form. I have
    been asked to edit the form adding 4 radio buttons to collect the
    consumer's satisfaction with the content of the website. I have
    added the radio buttons using Dreamweaver MX, however, they do not
    work as I expected them to. I was under the impression that radio
    buttons did not allow the user to select more than one option
    because when the user selected a different option, the first option
    was unselected. My form is currently allowing all four options to
    be selected at the same time. The code for the form is below. I
    have changed the @ in the email address of the form to prevent
    possible spam. Any help would be greatly appreciated.

    It looks like you need to change the name= to the same on
    each radio button, if they all have the same name then you can only
    check one. Then click the form in the behaviors panel and be sure
    the radio button name is inserting into the proper db
    column.

  • F1 help for radio buttons

    Hello All,
       I am getting F1 help when the radio buttons are in display mode but i am not getting F1 help when the buttons are in input mode. what cud be the problem?
    can anyone please help me. required urgerntly
    Thanks & Regards
    Amarender Reddy B

    Hi,
        use  event
       at selection-screen on  HELP-REQUEST FOR 
       rb_radio                                                                               
    As with the addition ON VALUE-REQUEST the field psel_low_high  
    is either the name of a report parameter or of the form sel-LOW
    or sel-HIGH, where sel is the name of a selection criterion.   
    When the user presses F1 on the relevant field, the subsequent 
    processing block is executed. You can thus implement a         
    self-programmed help for the input/output fields of the        
    selection screen. If the program contains such an event and the
    user presses F1, the system processes this rather than         
    displaying the documentation of the Dictionary field - even if 
    the report parameter or the selection option with LIKE or FOR  
    points to a Dictionary field.                                  
    Regards
    amole

  • Help With Radio Buttons -- URGENT!!

    Hi i am new to using UI compents in flash.
    Basically i havnt a clue where to start.
    Just some simple action script will help and be much
    appreciated if someone can give me it.
    Basically i have a question to ask which requires radio
    buttons to answer the question.
    I have a question and the answers are A, B, C, D.
    I want:
    A to equal 1
    B to equal 2
    C to equal 3
    D to equal 4
    E to equal 5
    Would someone be able to tell me how to set up the radio
    button so that the value of the radio button is stored into an
    array called SCORE.
    i dont need a tutor for arrays, i can do them, i just need
    help with the radio buttons so a reference to an array would be
    enough, eg how to store the answer from the radio button in an
    array.
    Thank you

    Place the radio buttons on the stage and set their parameters
    to what you need. Make sure that for each group of radio buttons
    you give them the same group name. Then you could use something
    like this:
    var listenerObject:Object = new Object();
    var answerArr:Array = new Array();
    listenerObject.click = function(eventObj:Object) {
    answerArr.push(eventObj.target.selectedData);
    trace(answerArr);
    radioGroup.addEventListener("click", listenerObject);
    radioGroup refers to the group name for the buttons.
    eventObj.target will refer to the actual radio button
    clicked.
    Tim

  • Help with radio buttons

    Hi, I am new to forms and and want to create several radio button fields each with two choices, I want the field to be required so that the recipient has to choose either choice 1 or choice 2.
    Problem I am having is that when I set the field to required it sets both choices to required and when testing the form I cannot submit it because one or more required fields are incomplete. Is there a work around or should I be using another type of check box?

    Thank you for your prompt response - I have no experience or knowledge about writing script although from what you wrote this would seem to be the remedy to my problem. For the time being I will have to uncheck the required field option and rely on the recipients completing the form correctly.
    Hopefully over a period of time I will learn how to write the appropriate script.
    Thanks for your help and advice

  • Help with Radio Buttons & Combo Box for Flash Form that sends email

    I'm having a bit of a hard time with a Flash form that I'm working on.
    I've got the basic text fields working fine, but I'm not sure how to retrieve the values from the Radio Button and Menu List components.
    The PHP script pulls the values from the text fields with:
    $contact_name = $_POST['name'];
    $contact_email = $_POST['email'];
    $contact_subject = $_POST['subject'];
    but using
    $radioGroup = $_POST['radioGroup'];
    doesn't retrieve the selected radio button value.
    The radio buttons have a groupName of "radioGroup". The combo box component doesn't even show up in the HTML version, but does in the .swf.
    Can anyone point me in the correct direction to pull these values from these components and get them passed to the PHP form? The native .FLA and the php file are here for reference:
    http://dl.getdropbox.com/u/21984/flashform.zip
    My solution needs to be ActionScript 2.
    Thanks!

    again, you assign a variable.  the selected radiobutton's data and/or label isn't going to magically be sent to the php file.
    for example, if you have sendLV and receiveLV loadvars instances, you can use:
    sendLV.rbData=yourradiogroup.selection.data;
    sendLV.yourothervariables=yourothervariables;
    sendLV.sendAndLoad("yourphp.php",receiveLV,"POST");

  • Help on Radio Buttons - Retreiving the value in a Servlet

    I am trying to use a Servlet to get values of list of Radio buttons in from a JSP. The problem is that I am getting a "null"
    My JSP has the following:
    <form name="AddNewClient" action="AddNewClient" method="POST">
    <input type="radio" name="TypeOfBusiness" value="Permanent Guarding" />Permanent Guarding (24/7)
    <input type="radio" name="TypeOfBusiness" value="Night Guarding" />Night Guarding
    <input type="radio" name="TypeOfBusiness" value="Interval Patrolling" />Interval Patrolling
    <td><input type="submit" value="Submit" name="Submit" /></td>
    </form>
    My Servlet has following:
    out.println (request.getParameter ("TypeOfService"));
    Anybody with an idea of what I am missing here. The drop-down list works just fine...but i dont want to use it
    Thanks in advance

    Gusha wrote:
    I am trying to use a Servlet to get values of list of Radio buttons in from a JSP. The problem is that I am getting a "null"Edited Code
    Please read it carefully its a simplest thing i can provide you :)
    function setSelection(choice)
         var select=0;
         select=choice;
         if(select=="Permanent Guarding")
              document.AddNewClient.Permanent Guarding.checked=true;
                                    document.AddNewClient.Night Guarding.checked=false;
              document.AddNewClient.Interval Patrolling.checked=false;
                                    document.AddNewClient.TypeOfBusiness.value="Permanent Guarding";
         if(select=="Night Guarding")
                                    document.AddNewClient.Permanent Guarding.checked=false;
                                    document.AddNewClient.Night Guarding.checked=true;
              document.AddNewClient.Interval Patrolling.checked=false;
                                   document.AddNewClient.TypeOfBusiness.value="Night Guarding";
         if(select=="Interval Patrolling")
                                    document.AddNewClient.Permanent Guarding.checked=false;
                                    document.AddNewClient.Night Guarding.checked=false;
              document.AddNewClient.Interval Patrolling.checked=true;
                                   document.AddNewClient.TypeOfBusiness.value="Interval Patrolling";
    </script>
    <form name="AddNewClient" action="AddNewClient" method="POST">
    <input type="radio" name="Permanent Guarding" value="Permanent Guarding"  onclick='setSelection(Permanent Guarding )'/>Permanent Guarding (24/7)<br />
    <input type="radio" name="Night Guarding" value="Night Guarding"  onclick='setSelection(Night Guarding)'/>Night Guarding<br />
    <input type="radio" name="Interval Patrolling" value="Interval Patrolling" onclick='setSelection(Patrolling)' />Interval Patrolling<br />
    <input type="hidden" value="" name="TypeOfBusiness" />
    <input type="submit" value="Submit" name="Submit" />
    </form>And get on the next page
    request.getParameter("TypeOfBusiness");Hope you get it
    Try and if any problem get back
    Sachin Kokcha

  • Help with radio buttons and show/hide javascript

    Hi. I'm new working with LiveCycle and also pretty much at a basic/beginner level of javascripting. I'm creating a pdf fillable form and one of the tasks I've been given is to add a function where if Option A is chosen by the user, then the correspondng table will appear, and if Option B is chosen another table will appear. After some searching I Iearned more about how radio buttons can be used, so I created a set of radio buttons. I have tried several different things, the latest was making both tables "hidden", and then taking to the radio button list group and applying the show/hide script to each of the radio buttons in the group. Still nothing seems to be working as I want it to. The table remains hidden when I click on the . This is what the code looks like right now. I know I'm obviously doing something wrong, this seems like such a basic thing to code. Getting to the frustration point, if you can sort me out with what I am missing/overlooking please let me know. Many thanks!
    Note. The radio buttons are not in the same table, they are higher up in the form outside of the tables that I am trying to show/hide, but they are in the same subform. I don't know if that might be an issue?
    form1.#subform[0].RadioButtonList::click - (JavaScript, client)
    form1.#subform[0].RadioButtonList.#field[0]::click - (JavaScript, client)
       if ( RadioButtonList.#field[0].selectedIndex == 1)
         form1.#subform[0].Table1_Work.presence = "visible"
       else
       form1.#subform[0].Table1_Work.presence = "hidden"
    form1.#subform[0].RadioButtonList.#field[1]::click - (JavaScript, client)
       if ( RadioButtonList.#field[1].selectedIndex == 2)
        form1.#subform[0].Table1_Official.presence = "visible"
      else
         form1.#subform[0].Table1_Official.presence = "hidden"

    Hi,
    For starters you have unnamed pages, which is not a good idea. This makes it more difficult to reference objects. In your JavaScript you would have to resolve the node, however the simpliest route would be to name the page first. Something like "page1". Have a look at this example for referencing objects: http://assure.ly/kUP02y.
    Next I would not place the script in each of the radio buttons, as this is likely to cause conflicts and is doubling the script. The best place to put the script is in the click event of the radio button exclusion group. This contains all of the radio buttons. See an example here: http://assure.ly/h7whb8 and https://acrobat.com/#d=ALebgueDXjewHjGyYRdrmw.
    You syntax for JavaScript if/else statements is potentially incorrect. The script within the statements should be wrapped in curly brackets. While you can get away with it for single lines, I would not be inclined to take that approach. So:
    if (a test) {
         // do something
    else {
         // do something else
    With the radio button exclusion group you can use its rawValue, just specify it in the Object > Binding palette. So on the basis of chaning the page name:
    if (this.rawValue == "1") {
         page1.Table1_Work.presence = "visible";
    else {
         page1.Table1_Work.presence = "hidden";
    There is a syntax checker button in the Script Editor that should highlight errors.
    Niall

  • Help with radio buttons in jsp

    I have a form with 6 radio button sets with each set containing three radio buttons. User can select different combination of the radio buttons.. Once the user is finshed selecting the radio buttons I need to pass a message to back end on the selection criteria. The format of the message is to put the same kind of radio buttons in together so say ....
    I have radio buttons like this ...
    N/A Verify NotVerify
    rb rb rb (set 1)
    rb rb rb (set 2)
    rb rb rb (set 3)
    rb rb rb (set 4)
    rb rb rb (set 5)
    rb rb rb (set 6)
    Not if they click verify for 1 and 3 sets and NotVerify for 2,4,6 and N/A for 5 then the String I need to pass to the back end should look like this.....
    ;set2, set4; set6 (set1, set3) i.e group together I type of selection ....
    any ideas how can I do it I will greatly appreciate it.
    Sorry I post it on the wrong message board before
    Thanks

    Okay, let's say you had this HTML code
    <tr>
    <td><radio name="set1" value="na">N/Z</td>
    <td><radio name="set1" value="verify">Verify</td>
    <td><radio name="set1" value="notverify">Not Verify</td>
    </tr>
    <tr>
    <td><radio name="set2" value="na">N/Z</td>
    <td><radio name="set2" value="verify">Verify</td>
    <td><radio name="set2" value="notverify">Not Verify</td>
    </tr>
    ... and so on.
    Why not create 3 vectors, one for each case, and add the necessary string to the vector (or whatever object you need in the backend).
    You could get use request.getParameterNames to get the names of all the sets, loop through that getting the values, and then check to see which it is and add to the vector. I would, thinking about it, use ints instead of strings as the value of the buttons, so you could actually use a switch statement to determine which vector add to. Not saying by any means this is the most effective way, but just one off the top of my head that might lead you in the right direction.

  • Modifying selection screen with help of radio buttons

    Hi,
      In my program am using three parameters to download a three different files and I have to use radiobuttons for that.
    I want to download only one file at a time.
    I have used MODIF ID but it is not working for 3 Parameters but it is working for only two parameters.
    Please help me out!!!!!!!!!

    Hi,
    check with the following code
    * Parameters and Selection Options
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_lifnr FOR  lfm1-lifnr .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS:
       r_asn RADIOBUTTON GROUP rad1 USER-COMMAND uc1 DEFAULT 'X',
       r_ers RADIOBUTTON GROUP rad1  ,
       r_830 RADIOBUTTON GROUP rad1,
       r_850 RADIOBUTTON GROUP rad1,
       r_862 RADIOBUTTON GROUP rad1,
       r_810 RADIOBUTTON GROUP rad1,
       r_820 RADIOBUTTON GROUP rad1,
       r_824 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECT-OPTIONS: s_bstae   FOR lfm1-bstae MODIF ID sd1.
    PARAMETERS:
       p_ekorg   TYPE lfm1-ekorg   MODIF ID md1,
       p_evcode  TYPE edp21-evcode MODIF ID md2,
       p_kappl   TYPE nach-kappl   MODIF ID md3,
       p_parvw   TYPE nach-parvw   MODIF ID md4,
       p_kschl   TYPE nach-kschl   MODIF ID md5,
       p_vakey   TYPE nach-vakey   MODIF ID md6,
       p_werks   TYPE werks_d      MODIF ID md7,
       p_bukrs   TYPE lfb1-bukrs   MODIF ID md8.
    SELECTION-SCREEN END OF BLOCK b3.
    *eject
    * Initialization
    INITIALIZATION.
    *  PERFORM check_authorization.
    *eject
    * at selection screen
    *AT SELECTION-SCREEN.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF r_asn EQ 'X'
          AND ( screen-group1 = 'MD3' or screen-group1 = 'MD4'
             or screen-group1 = 'MD5' or screen-group1 = 'MD6'
             or screen-group1 = 'MD7' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_ers EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD3'
             or screen-group1 = 'MD4' or screen-group1 = 'MD5'
             or screen-group1 = 'MD6' or screen-group1 = 'MD7'
             or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_830 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD6'
             or screen-group1 = 'MD7' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_850 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD6'
             or screen-group1 = 'MD7' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_862 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_810 EQ 'X'
          AND ( screen-group1 = 'MD3' or screen-group1 = 'MD4'
             or screen-group1 = 'MD5' or screen-group1 = 'MD6'
             or screen-group1 = 'MD7' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_820 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD3'
             or screen-group1 = 'MD4' or screen-group1 = 'MD5'
             or screen-group1 = 'MD6' or screen-group1 = 'MD7' ).
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_824 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD3'
             or screen-group1 = 'MD4' or screen-group1 = 'MD5'
             or screen-group1 = 'MD6' or screen-group1 = 'MD7'
             or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    *eject
    * Event top of page
    TOP-OF-PAGE.
    *eject
    * event Start of Selection
    START-OF-SELECTION.
    *eject
    *EVENT End-of selection
    END-OF-SELECTION.
    *eject
    *EVENT  End-of page
    END-OF-PAGE.
    Regards,
    Vikas.
    plz reward if helpful..

  • ValueChangeListener in Radio Button not acting after first time

    Hi,
    I am using ADF-BC-JSF in Jdev 10.1.3.3. I have a page on which there are 2 radio buttons which show blank at first. As soon as a user selects a radio button, the valueChangeListener calls up a method in the backing bean that opens a dialog for the user. User enters some text in to the dialog and clicks OK after which the window closes. If the user clicks Cancel on the dialog page, the window is still closed but radio button value is reset to blank through javascript. the problem is that it works only first time. second time it tries to autosubmit but only the constructor of the backing bean is called and not the actual function to open the window. Following is the code snippet that may be helpful.
    Radio Buttons
    <af:selectOneRadio value="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.inputValue}"
    layout="horizontal"
    id="metallurgistRadioBtn"
    autoSubmit="true"
    valueChangeListener="#{UploadDownloadBean.exampleOpenDialog}"
    disabled="#{ !UserInfo.metallurgist || bindings.SP11WarrantDetailsViewMetallurgistReviewStatus !=''}">
    <af:validator binding="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.validator}"/>
    <af:selectItem label="Approved" value="Approved"/>
    <af:selectItem label="Rejected" value="Rejected"/>
    </af:selectOneRadio>
    Function to Open the Window
    public void exampleOpenDialog(ValueChangeEvent valueChangeEvent)
    // Add event code here...
    FacesContext context = FacesContext.getCurrentInstance();
    // Create the dialog UIViewRoot
    ViewHandler viewHandler = context.getApplication().getViewHandler();
    UIViewRoot dialog = viewHandler.createView(context,"/sp11/warrant/MetallurgistNotes.jspx");
    HashMap properties = new HashMap();
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.launchDialog(dialog,
    null, // not launched from any component
    null, // no particular parameters
    true, //show in dialog
    properties);
    Javscript for resetting the Radiob button
    function closeWindowOnCancel()
    if(parent.window.opener.document.getElementById("notesValueHolder").value == '' )
    parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[0].checked = false;
    parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[1].checked = false;
    Please suggest what can be the possible cause.
    Regards,
    Neeraj

    Hi,
    I am using ADF-BC-JSF in Jdev 10.1.3.3. I have a page on which there are 2 radio buttons which show blank at first. As soon as a user selects a radio button, the valueChangeListener calls up a method in the backing bean that opens a dialog for the user. User enters some text in to the dialog and clicks OK after which the window closes. If the user clicks Cancel on the dialog page, the window is still closed but radio button value is reset to blank through javascript. the problem is that it works only first time. second time it tries to autosubmit but only the constructor of the backing bean is called and not the actual function to open the window. Following is the code snippet that may be helpful.
    Radio Buttons
    <af:selectOneRadio value="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.inputValue}"
    layout="horizontal"
    id="metallurgistRadioBtn"
    autoSubmit="true"
    valueChangeListener="#{UploadDownloadBean.exampleOpenDialog}"
    disabled="#{ !UserInfo.metallurgist || bindings.SP11WarrantDetailsViewMetallurgistReviewStatus !=''}">
    <af:validator binding="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.validator}"/>
    <af:selectItem label="Approved" value="Approved"/>
    <af:selectItem label="Rejected" value="Rejected"/>
    </af:selectOneRadio>
    Function to Open the Window
    public void exampleOpenDialog(ValueChangeEvent valueChangeEvent)
    // Add event code here...
    FacesContext context = FacesContext.getCurrentInstance();
    // Create the dialog UIViewRoot
    ViewHandler viewHandler = context.getApplication().getViewHandler();
    UIViewRoot dialog = viewHandler.createView(context,"/sp11/warrant/MetallurgistNotes.jspx");
    HashMap properties = new HashMap();
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.launchDialog(dialog,
    null, // not launched from any component
    null, // no particular parameters
    true, //show in dialog
    properties);
    Javscript for resetting the Radiob button
    function closeWindowOnCancel()
    if(parent.window.opener.document.getElementById("notesValueHolder").value == '' )
    parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[0].checked = false;
    parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[1].checked = false;
    Please suggest what can be the possible cause.
    Regards,
    Neeraj

  • Module pool : Radio Buttons

    Hi experts,
    Need Small help on radio buttons in module pool..
    my requirement is i have r1 and r2 radiobuttons.
    If i select r1. field1 and field2 has display and field3 and field 4 has to be not to display.
    and viceversa ..
    how to do pls send some code.....
    Urjent please....

    In-order for your radiobuttons to work correctly you need to group them together so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons you what in the same group and then right click on them, Now choose define group. Once you have done this your radiobuttons will work as they should and only allow one to be selected at any one time.
    Highlight individual table control field
    The example below sets the EBELN field on the 3rd row of the table control to not be an input field. This is a fairly simple process which involves firstly calculating which row of the internal table is displayed at the top of the table control. From this you can work out which itab row is on the 3rd row and set its attributes using the LOOP AT SCREEN command.
    Based on the example table control the ABAP code for this will be as follows, resulting in a modified version of the PBO MODULE 'populate_screen'.
       MODULE populate_screen OUTPUT.
        DATA: ld_line TYPE i.
      Set which line of itab is at the top of the table control
        IF sy-stepl = 1.
          tc100-lines =
            tc100-top_line + sy-loopc - 1.
        ENDIF.
      move fields from work area to scrren fields
        MOVE-CORRESPONDING wa_ekko TO ztc_ekko.
        ld_line =  sy-stepl + tc100-top_line - 1.
      Changes individual field attributes of table control,
      Sets EBELN field on 3rd row of TC to not be an input field!
        LOOP AT SCREEN.
          IF ld_line EQ 3.
            IF screen-name EQ 'ZTC_EKKO-EBELN'.
              screen-input = 0.
              MODIFY SCREEN.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDMODULE.                 " populate_screen  OUTPUT
    reward  points if it is usefull ....
    Girish

  • Radio buttons questions

    hi gurus. can someone help on radio buttons?? does abap have on action performed events, like in java??? i only ask this because i have a screen with 2 radio buttons and i want to deactivate some fields when one radio its choosed and vice versa ...
    Thk, Regards

    Hi,
    you can use AT SELECTION-SCREEN OUTPUT event.
    Example:
    PARAMETERS: CLIENTE RADIOBUTTON GROUP RADI DEFAULT 'X',
                            FICHEIRO RADIOBUTTON GROUP RADI.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF CLIENTE = 'X'.
            SCREEN-INPUT = 0.
        ELSE.
            SCREEN-INPUT = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    SCREEN is a system  table that contain information of all the fields in the screen.
    it as some atributes like:
    Field          Length Type Meaning
    SCREEN-NAME       30   C Field name
    SCREEN-GROUP1      3   C Analysis of
    Modif group 1
    SCREEN-GROUP2      3   C Analysis of
    Modif group 2
    SCREEN-GROUP3      3   C Analysis of
    Modif group 3
    SCREEN-GROUP4      3   C Analysis of
    Modif group 4
    SCREEN-REQUIRED    1   C Required field
    SCREEN-INPUT       1   C Field ready for input
    SCREEN-OUTPUT      1   C Displayed field
    SCREEN-INTENSIFIED 1   C Field intensified
    SCREEN-INVISIBLE   1   C Field invisible
    SCREEN-LENGTH      1   X Field length
    SCREEN-ACTIVE      1   C Field active
    Valuea '1' or '0' means true/false
    regards,
    Message was edited by:
            Pedro Rosa

Maybe you are looking for

  • Battery backup is getting worse in my N82

    Hi all, I have used my N82 for 3 months now. earlier the battery used be alive for 2 days at a minimum. but nowadays i must charge my cell atleast once a day to its maximum. Can some one suggest me how to get rid of this prob.

  • Split Message Error

    Hi, I'm doing a split message without BPM, but I have found a weird error. When I change the ocurrences to unbounded (1:N) in target structure I am finding this error. http://picasaweb.google.es/hose86/SapXi#5324222633504070658 In the picture above a

  • Queries on pl/sql tables within a function

    hi, how can i execute regular sql-queries within a function on a pl/sql table which the function has recieved as a parameter ? i have tried quite a bit and always get type mismatches or internal errors. anybody has a good example on this ? thanks in

  • Apple 22" cinema display suddenly became high contrast

    Suddenly my display became high -contrast (the only way I can explain it) with ragged edges to everything and the type light and fading and with bluish shadows on most of the letters. I've tried changing the resolution -- which "knocked" it right yes

  • Business Objects on SAP R3 or BW data..

    Hello to all. I am looking for an architecture proposal for my company. Our company has SAP R3 source system set up. They also purchased BW licenses but havent done anything with them yet. We are looking to get into Business Objects My question is: w