Radio Button , enabled

Hi All,
I have some problem with the radio button concept
i will tell u what i did so that u can help me out ,
I have an emp table , which has deptno, two radio buttons(name of radio button : Enter Directly", "Enter thro Database",), name , salry , the deptno is an lov and the there are two radio buttons which has the yes or no , so that the user can enter the details and the condition is such,
when the lov button is pressed , it will populate the dept no such as ,"10","20","30"etc...
when the deptno "10" is selected, both the radio buttons gets enabled , so that the user can choose the mode of entering , if the user selects the mode as enter thro Database , then the fields name and salry should be disabled, whereas when the user select the the vive versa radio button it should enable both the fiields , so that the user can enter via this form it self
when the dept 20 is selected the first radio button gets diabled
i have tried many steps , but could not do what i need , excatly
plz do tell me how can i solve this
can any one send me a sample code , so that i can undersatnd wat is to be done
eagerly waiting for u r reply
Bye

Hi Raja ,
Sending u the code ...
DECLARE
CURSOR C1 IS
SELECT DEPTNO
FROM DEPT
WHERE DEPTNO = :DEPTNO;
V_DEPTNO DEPT.DEPTNO%TYPE;
BEGIN
IF :DEPT IN (10) AND :MODE = 2 THEN
Set_Radio_Button_Property('MODE','M_MANUAL',VISIBLE,PROPERTY_TRUE);
Set_Radio_Button_Property('MODE','M_AUTOMATIC',VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('NAME',VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',VISIBLE,PROPERTY_TRUE);
Set_Radio_Button_Property('MODE','M_MANUAL',ENABLED,PROPERTY_TRUE); Set_Radio_Button_Property('MODE','M_AUTOMATIC',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('NAME',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('NAME',NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',NAVIGABLE,PROPERTY_TRUE);
ELSIF :EFNG_FORM_TYPE IN (10) AND :MODE = 1 THEN
SET_ITEM_PROPERTY('NAME',ENABLED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('SEX',ENABLED,PROPERTY_FALSE);
ELSIF :EFNG_FORM_TYPE IN (20,30) THEN
     : MODE := 2;
Set_Radio_Button_Property(‘MODE','M_MANUAL',VISIBLE,PROPERTY_TRUE);
Set_Radio_Button_Property(‘MODE','M_AUTOMATIC',VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(‘NAME’,VISIBLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY(SEX',VISIBLE,PROPERTY_TRUE);
Set_Radio_Button_Property(MODE','M_MANUAL',ENABLED,PROPERTY_FALSE); Set_Radio_Button_Property(MODE','M_AUTOMATIC',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY(‘NAME',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY(‘NAME’,NAVIGABLE,PROPERTY_TRUE);
SET_ITEM_PROPERTY('SEX',NAVIGABLE,PROPERTY_TRUE);
END IF ;
IF C1%ISOPEN THEN
     CLOSE C1;
     END IF;
     OPEN C1;
     FETCH C1 INTO V_DEPTNO;
     IF C1%NOTFOUND THEN
     CLOSE C1;
          END IF;
     CLOSE C1;
END;

Similar Messages

  • Re: About radio button enable by using selection screen

    Hi,
       this is suresh babu.i am doing one report on Competency table. About details of the report..
    there are four text feilds and 3 radio buttons in main screen.if we select one of the radio button then i want screen to required table..
    text feild:
    Division:----
    personnal area:----
    employee group:----
    Year:----
    select the type of report you wiish to execute.
    radio button1: low competency
    radio button2: low KPI
    radio button3: low competeny and KPI
    *this is my main screen of the report.my requirement is when we click any of the radio buttn i have to go for the required table in my program.
    so i want how to enable radio buton and how to generate New T-code in ABAP.

    HI create program inwhich u hav only 3 radio buttons as parameters
    parameters : p1 radiobutton group rg1,
                     p2 radiobutton group rg1,
                 p3 radiobutton group rg1.
    if p1 = 'X'.
    submit Zprogram1 VIA SELECTION-SCREEN .
    ***Zprogram1 is program to b called for radiobutton 1.
    elseif p2 = 'X'.
    submit Zprogram2 VIA SELECTION-SCREEN
    else if P3 = 'X'.
    submit Zprogram3 VIA SELECTION-SCREEN
    endif.
    goto SE93..
    and create new tcode and assign this program name der...

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

  • Disable checkbox lists while clicking Radio button

    Hi ,
    I have a checkbox list come from LOV based on a select from database table.
    I have added a Radiobutton only (not redirect not submit since I have to restrict the option as this is based on requirement).Now I want to disable the checkbox while I am clicking the radio button .
    Is it any way possible .
    Thanks in advance .
    Cheers,
    Debashis.

    ok, I create two radio buttons (Enable and Disable)(P8_RADIO). I created a LOV of users with checkboxes (P8_CHECK). When I click on disable all the checkboxes are disabled and enabled when I click on enable.
    First add this to your radio
    P8_RADIO's HTML Form Element Attributes
    onclick="disable(this)"
    Then, add this to the page HTML Header
    <script language="JavaScript" type="text/javascript">
    <!--
    function disable(pThis)
    var trigger = document.wwv_flow.p_v02.value ;
    var rads = document.wwv_flow.p_v02 ;
    if (pThis.value == 'ENABLE')
    for(var i=0; i<rads.length;i++ )
    { document.wwv_flow.p_v02[i].disabled = false; }
    } //end of if
    else
    for(var i=0; i<rads.length;i++ )
    { document.wwv_flow.p_v02[i].disabled = true; }
    } //end of else
    } //end of disable funtion
    //-->
    </script>
    **note**p_v02 is the name of the checkboxes.
    Hopefully this will help you and i explained it better than I did last time

  • How to use a radio button in enabling/disabling a text box in report progra

    Hi,
        Could any please let me know, how to use a radio button in enabling/disabling a text box in report program.

    *& Report  ZMR_RADIO_BUTTONS
    REPORT  ZMR_RADIO_BUTTONS.
    PARAMETERS : R1  RADIOBUTTON GROUP G1,
                 R2  RADIOBUTTON GROUP G1.
    PARAMETERS : A1 TYPE I,
                 A2 TYPE I.
    AT SELECTION-SCREEN OUTPUT.
    *initialization.
    IF R1 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    IF R2 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    modify screen.
    ENDLOOP.
    ENDIF.
    START-OF-SELECTION.
    *IF R1 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 1.
    ENDIF.
    *ENDLOOP.
    *ENDIF.
    *IF R2 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 0.
    ENDIF.
    *ENDLOOP.
    *ENDIF.

  • How to enable a disabled radio button????

    Hi here is the problem i have, i have a number of radio buttons contained in a buton group, all the buttons bar the first one are disabled. The buttons are all drawn on a JPanel. What i want to be able to do is once the enabled button has been selected, I want to enable the next button in the gropu and also then disable the one that was previously enabled. Is there any way i can do this, below is the code i have for setting the group up, and trying the above probelm. Any help much appreciated Thanks.
    /* Function creates a radio button and adds it to the button group */
         public JRadioButton getRadioButton(String myString, boolean val)
              JRadioButton myButton=new JRadioButton(myString);
              myButton.setActionCommand(myString);
              myButton.addActionListener(myListener);
              myButton.setEnabled(val);
              group.add(myButton);
              return myButton;
    //adds the radio buttons to the panel, for each transition */
         public void addTranPan()
                   for(int i = 0; i < dCreate.char2.size(); i ++)
                   if (i == 0) mPanel.add(getRadioButton(dCreate.char2.elementAt(0).toString(),true));
                   else
    mPanel.add(getRadioButton(dCreate.char2.elementAt(i).toString(),false));
    public void ChangeButtonState()
    Component [] components = getContentPane().getComponents();
              for (int i = 0; i < components.length; i++)
                   Component c = components;
                   if (c instanceof JRadioButton)
                   JRadioButton rb = (JRadioButton) c;
                   rb.setEnabled(false);
                   if (c.getName().equals(ch)) //find button to enable
                   JRadioButton rb = (JRadioButton) c;
                   rb.setEnabled(true);
                   break;
              mPanel.repaint();

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class sol21 extends JFrame implements ItemListener {
    JRadioButton
       radio1 = new JRadioButton("One"),
       radio2 = new JRadioButton("Two"),
       radio3 = new JRadioButton("Three"),
       radio4 = new JRadioButton("Four");
      JRadioButton[] radios = {
        radio1, radio2, radio3, radio4
      int INITIAL_ENABLED = 0;
      public sol21() {
        ButtonGroup group = new ButtonGroup();
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.insets = new Insets(5,0,5,0);
        gbc.anchor = gbc.WEST;
        gbc.gridwidth = gbc.REMAINDER;
        for(int j = 0; j < radios.length; j++) {
          radios[j].addItemListener(this);
          group.add(radios[j]);
          panel.add(radios[j], gbc);
          if(j == INITIAL_ENABLED)
            continue;
          radios[j].setEnabled(false);
        setContentPane(panel);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(300,200);
        setLocation(300,200);
        setVisible(true);
      public void itemStateChanged(ItemEvent e) {
        JRadioButton button = (JRadioButton)e.getItemSelectable();
        if(e.getStateChange() == ItemEvent.SELECTED) {
          int index = 0;
          for(int j = 0; j < radios.length; j++)
            if(radios[j] == button)
              index = j;
          radios[(index + 1) % radios.length].setEnabled(true);
          if(index == 0)
            index = radios.length;
          radios[(index - 1) % radios.length].setEnabled(false);
      public static void main(String[] args) {
        new sol21();
    }

  • Radio buttons on form are not always Re-enabling when i Tell them to re-ena

    I have a game setup where there is 1 server and 2 clients. The 2 clients each have a gui where they have 3 radio buttons to select from. Once they make their choice then their buttons are re-enabled when the server sends the message "#newround" to the 2 clients.
    this.sendToAllClients("#NewRound");
    when the clients receive this message:
    else if(copyMessage.startsWith("#NewRound")){
    //Re-enable the radio button choices and the play button.
    jButtonPlay.setEnabled(true);
    jRadioRock.setEnabled(true);
    jRadioPaper.setEnabled(true);
    jRadioScissors.setEnabled(true);
    newRound();
    It works 90% of the time but sometimes it doesn't re-enable any of the radio buttons on 1 of the 2 forms and sometimes it only re-enables 2 of the 3 radio buttons on the forms.
    Anyone know why this would be?

    Are you executing this code in a separate thread? If so, Try enabling them from the event dispatch thread. Refer to SwingUtilities.invokeLater() and SwingUtilities.invokeAndWait() for more info.

  • When radio button is enabled the block should be enable

    I have a 4 radio buttons and a four blocks in a same single canvas , and when ever i enable a radio button the related block should get enable .. pls help me with coidng

    Use the when-radio-changed trigger. There is a RADIO BUTTON VALUE property per radio item. You can place in the trigger...
    IF CONTROL.TEMP_RADIO_BUTTON = 1 THEN
    SET_BLOCK_PROPERTY ('BLOCK1', ENABLED, PROPERTY_TRUE);
    ELSIF...
    END IF;
    Hope this helps...

  • Enable radio buttons of Item Category

    Hello Experts
    How can I enable the Item Category radio buttons from Item Group-setup form in SAP 8.81?
    Thanks & Regards,
    Prashant Muke

    HI
    Check via manager user whether it is enabled or not. If enabled means issue is based on Professional user rights or limited logistics user rights or any authorization missing...
    Regards,
    Sudhir B.
    Edited by: B.sudhir on Dec 1, 2011 8:27 AM

  • Jquery - enable/diable form textbox on radio button selection

    Hi,
    I can't seam to get my jquery to work.
    I have a male & female radio button and I want the maiden name textbox to be disabled when male is selected and enabled when female is selected.
    By default male is checked and maiden name text box is disabled.
    Here is what i have http://jsfiddle.net/MmgAT/.
    Nothing happens when i select female.
    Also I want to add and remvoce a class with this. e.g add class when male is selected and remove when female is selected.
    thanks is advanced.

    hey,
    seams to be working in jsfiddle but not when i implement it. Not even sure if jquery is working now.
    i have this in the head
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
    and then added your input
    <script type="text/javascript">
    $(document).ready()
    $("input[name=GenderRadio]").click(function(e) {
                if($("input[name=GenderRadio]:checked").val() == "Female") {
                     $("#maiden-name-input").removeAttr("disabled");
                     // do your removeClass
                } else {
                    $("#maiden-name-input").attr("disabled", "disbled");
                    // do your addClass
    </script>
    but nothing seams to working. any ideas

  • Enable disable toolbar items on click on any checkbox,radio button,text box.

    Hi Friends,
    I am create application in eclipse RCP E4 and now i am trying to Enable disable toolbar items on click on any checkbox, radio button, text box .
    Please Help me friends....

    Hello friend my proble is solve and now i am sharing my solution ....
    I am create RCP application and view side any listener click event fire time apply this code
    IEvaluationService evaludationService = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    evaludationService.getCurrentState().addVariable("noOfRowsChecked", noOfRowsChecked);
    evaludationService.requestEvaluation("com.jobsleaf.propertytester.canDeleteItem");
    and add plug in extension and create property tester class means listener property tester class side apply this code
    IEvaluationService ws = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    Integer integer = (Integer) ws.getCurrentState().getVariable("noOfRowsChecked");
    if (integer != null)
    if (integer.intValue() > 0)
    return true;
    I hope useful above code when use property tester in eclipse RCP

  • Enable/Disable a radio button

    Hi All,
    We have a requirement as below:
    Freezing the radio buttons:Ex: Q.No.6 has 2 radio buttons as "Yes" and "No" and has a sub question say Q.NO# 6A.
    Q.NO# 6A also has 2 radio button as "Yes" and "No" and these should be freezed when ans---"NO" is selected for Q.No.6 and should get unfreezed when ans--> "YES" is selected for Q.No.6.
    For this I am created a VO with a transient variable of type Boolean.
    and using SPEL approach to disable radio buttons of Q.NO# 6A.
    Setting FirePartialAction on radio buttons of Q.NO# 6.
    I am facing some problem in coding:
    My CO is as below:
    In PR:
    DisableradBtnVOImpl vo_radio =(DisableradBtnVOImpl)am.findViewObject("DisableradBtnVO1");
    //vo_radio.executeQuery(); getting NUll pointer exception here as there is no query
    // Row requestRow_radio = vo.createRow();
    // vo.insertRow(requestRow_radio);
    requestRow_radio.setNewRowState(Row.STATUS_INITIALIZED);
    requestRow_radio.setAttribute("disableRadioButton5",Boolean.TRUE);
    OAMessageRadioButtonBean radio6= (OAMessageRadioButtonBean)pageContext.getPageLayoutBean ().findChildRecursive("rad61");
    oracle.cabo.ui.action.FirePartialAction FireAction_radio = new oracle.cabo.ui.action.FirePartialAction ();
    FireAction_radio.setEvent("enable6");
    FireAction_radio.setUnvalidated(true);
    radio6.setPrimaryClientAction(FireAction_radio);
    how will I use setAttribute().
    please guide me.
    Akshata

    Hi Prince,
    My PR code is below:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    System.out.println("****Wel come Page 2******");
    boolean isLoggingEnabled = pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT);
    String custName = pageContext.getParameter("customerName");
    String custNumber = pageContext.getParameter("customerNumber");
    String custId = pageContext.getParameter("customerId");
    Number numValue=null;
    try
    numValue = new Number(custId);
    catch(SQLException e)
    e.printStackTrace();
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    checkListVOImpl vo =(checkListVOImpl)am.findViewObject("checkListVO1");
    if(!vo.isPreparedForExecution())
    vo.executeQuery();
    // DisableradBtnVOImpl vo_radio =(DisableradBtnVOImpl)am.findViewObject("DisableradBtnVO1");
    OAMessageRadioButtonBean radio6= (OAMessageRadioButtonBean)pageContext.getPageLayoutBean().findChildRecursive("rad61");
    oracle.cabo.ui.action.FirePartialAction FireAction_radio = new oracle.cabo.ui.action.FirePartialAction ();
    FireAction_radio.setEvent("enable6");
    FireAction_radio.setUnvalidated(true);
    radio6.setPrimaryClientAction(FireAction_radio);
    String pageSave=pageContext.getParameter("OnClickSave");
    if((pageSave== null)|| "".equals(pageSave))
    Row requestRow = vo.createRow();
    vo.insertRow(requestRow);
    requestRow.setNewRowState(Row.STATUS_INITIALIZED);
    requestRow.setAttribute("CustomerName", custName);
    requestRow.setAttribute("CustomerNumber", custNumber);
    requestRow.setAttribute("CustomerId", numValue);
    requestRow.setAttribute("EnableRadio6",Boolean.TRUE);
    System.out.println("**************r1**********************");
    OAMessageRadioButtonBean yesRadio1 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad11");
    yesRadio1.setName("Resp1");
    yesRadio1.setValue("Y");
    OAMessageRadioButtonBean noRadio1 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad12");
    noRadio1.setName("Resp1");
    noRadio1.setValue("N");
    noRadio1.setSelected(true);
    System.out.println("**************r2**********************");
    OAMessageRadioButtonBean yesRadio2 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad21");
    yesRadio2.setName("Resp2");
    yesRadio2.setValue("Y");
    OAMessageRadioButtonBean noRadio2 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad22");
    noRadio2.setName("Resp2");
    noRadio2.setValue("N");
    noRadio2.setSelected(true);
    System.out.println("**************r3**********************");
    OAMessageRadioButtonBean yesRadio3 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad31");
    yesRadio3.setName("Resp3");
    yesRadio3.setValue("Y");
    OAMessageRadioButtonBean noRadio3 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad32");
    noRadio3.setName("Resp3");
    noRadio3.setValue("N");
    noRadio3.setSelected(true);
    System.out.println("**************r4**********************");
    OAMessageRadioButtonBean yesRadio4 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad41");
    yesRadio4.setName("Resp4");
    yesRadio4.setValue("Y");
    OAMessageRadioButtonBean noRadio4 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad42");
    noRadio4.setName("Resp4");
    noRadio4.setValue("N");
    noRadio4.setSelected(true);
    System.out.println("**************r5**********************");
    OAMessageRadioButtonBean yesRadio5 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad51");
    yesRadio5.setName("Resp5");
    yesRadio5.setValue("Y");
    OAMessageRadioButtonBean noRadio5 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad52");
    noRadio5.setName("Resp5");
    noRadio5.setValue("N");
    noRadio5.setSelected(true);
    OAMessageRadioButtonBean yesRadio5A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5A1");
    yesRadio5A.setName("Resp5A");
    yesRadio5A.setValue("Y");
    OAMessageRadioButtonBean noRadio5A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5A2");
    noRadio5A.setName("Resp5A");
    noRadio5A.setValue("N");
    noRadio5A.setSelected(true);
    OAMessageRadioButtonBean yesRadio5B = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5B1");
    yesRadio5B.setName("Resp5B");
    yesRadio5B.setValue("Y");
    OAMessageRadioButtonBean noRadio5B = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5B2");
    noRadio5B.setName("Resp5B");
    noRadio5B.setValue("N");
    noRadio5B.setSelected(true);
    OAMessageRadioButtonBean yesRadio5C = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5C1");
    yesRadio5C.setName("Resp5C");
    yesRadio5C.setValue("Y");
    OAMessageRadioButtonBean noRadio5C = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5C2");
    noRadio5C.setName("Resp5C");
    noRadio5C.setValue("N");
    noRadio5C.setSelected(true);
    OAMessageRadioButtonBean yesRadio5D = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5D1");
    yesRadio5D.setName("Resp5D");
    yesRadio5D.setValue("Y");
    OAMessageRadioButtonBean noRadio5D = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5D2");
    noRadio5D.setName("Resp5D");
    noRadio5D.setValue("N");
    noRadio5D.setSelected(true);
    // requestRow_radio.setAttribute("disableRadioButton5",Boolean.TRUE);
    System.out.println("**************r6**********************");
    OAMessageRadioButtonBean yesRadio6 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad61");
    yesRadio6.setName("Resp6");
    yesRadio6.setValue("Y");
    OAMessageRadioButtonBean noRadio6 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad62");
    noRadio6.setName("Resp6");
    noRadio6.setValue("N");
    noRadio6.setSelected(true);
    OAMessageRadioButtonBean yesRadio6A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad6A1");
    yesRadio6A.setName("Resp6A");
    yesRadio6A.setValue("Y");
    OAMessageRadioButtonBean noRadio6A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad6A2");
    noRadio6A.setName("Resp6A");
    noRadio6A.setValue("N");
    noRadio6A.setSelected(true);
    System.out.println("**************r7**********************");
    OAMessageRadioButtonBean yesRadio7 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad71");
    yesRadio7.setName("Resp7");
    yesRadio7.setValue("Y");
    OAMessageRadioButtonBean noRadio7 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad72");
    noRadio7.setName("Resp7");
    noRadio7.setValue("N");
    noRadio7.setSelected(true);
    System.out.println("**************r8**********************");
    OAMessageRadioButtonBean yesRadio8 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad81");
    yesRadio8.setName("Resp8");
    yesRadio8.setValue("Y");
    OAMessageRadioButtonBean noRadio8 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad82");
    noRadio8.setName("Resp8");
    noRadio8.setValue("N");
    noRadio8.setSelected(true);
    if (isLoggingEnabled)
    pageContext.writeDiagnostics(numValue, "customerId", OAFwkConstants.STATEMENT);
    if (isLoggingEnabled)
    pageContext.writeDiagnostics(custName, "customerName", OAFwkConstants.STATEMENT);
    if (isLoggingEnabled)
    pageContext.writeDiagnostics(custNumber, "customerNumber", OAFwkConstants.STATEMENT);
    }

  • Acrobat Forms - javascript to hide/unhide text box if any one of a number of radio buttons is enable

    I have a form which I am designing in Acrobat 9 which has a section where there are three questions, each with a pair of radio buttons - one for 'yes' and one for 'no'. They are in the style of a check box (with a tick). I need some help to write some code which will unhide a single field (or multiple fields if I need to use something similar at a later date) if any one of the 'yes' radio buttons is checked. So if all three radio buttons were checked, the field would be hidden but if you then changed your mind and clicked a yes button, the field would be visible.
    I am new to this so any help would be greatly appreciated. Many thanks in advance! I hope that i have explained this clearly btw.

    For ease of maintenance you might want to make the above script into 2 doucment level JavaScript function. One could set a return value to the result of the caparison and the other could show/hide the text field based on the result. Then a call to the show/hide function could control the show and display of the field(s) and and a call to the function for the results of the comparison could be used anywhere else and not change the field display property.
    funciton Test3RB() {
    // set logical result based on result of test
    var bReslut = ((this.getField("rb1").value == "Y")|(this.getField("rb2").value == "Y") |(this.getField("rb3").value == "Y"));
    return bResult; // return value of logical test
    } // end funciton
    function ShowText() {
    // assume field not to be shown
    this.getField("textbox").display=display.hidden;
    if (Test3RB() ) {
    this.getField("textbox").display=display.visible;
    } // end if true
    return;
    } // end ShowText function
    You mouse up action for each button could be:
    ShowText();
    And if you could test the logical value returned by the function somewhere else and did not want to modify the display field:
    if(Test3RB() ){
    // action for true
    } else {
    // action for false

  • How to enabling or disabling a layout panel by a radio button

    Hello, I am new in JFS. Can any one help me that i have a layout panel which property set to visible= false initially. And i have a radio button. i would like that when i click the radio button then the layout panel will appear. please help me...............
    regards,
    S. M. Taibur Rahman

    TaiburRahman wrote:
    Hello Dear,
    As your advice i do this but i failed. I don't know what's the problem. As you know i am new in JSF & wed development also. I send you the source code which i compiled here. Please suggestion me the problem.
    Best Regards,
    S. M. Taibur Rahman
    SOURCE CODE:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Document : Page1
    Created on : Feb 18, 2009, 1:22:23 AM
    Author : Taibur
    -->
    <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <webuijsf:page id="page1">
    <webuijsf:html id="html1">
    <webuijsf:head id="head1" title="Form1">
    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
    <SCRIPT LANGUAGE="JavaScript">
    function Disab ()
            document.getElementById("form1:lp1").style.visibility="visible";
            //OR based upon your requirement
            //document.getElementById("form1:lp1").style.visibility="hidden";
    }>
    </SCRIPT>
    </webuijsf:head>
    <webuijsf:body id="body1" style="-rave-layout: grid">
    <webuijsf:form id="form1">
    <webuijsf:radioButton id="rb3" label="2" name="radioButton-group-form1" onClick="Disab()" style="left: 216px; top: 96px; position: absolute"/>Make sure you are passing the right id to your javascript. You can perform a small test on your panel layout by adding onclick="alert(this.id)" to your webuijsf:panelLayout component and use the same id in your javascript function.
    <webuijsf:panelLayout id="lp1" style="border-width: 3px; border-style: dotted; border-color: rgb(102, 204, 255) rgb(102, 204, 255) rgb(102, 204, 255) rgb(102, 204, 255); height: 186px; left: 216px; top: 240px; position: absolute; width: 354px">
    <h:inputText id="textField1" style="left: 123px; top: 51px; position: absolute"/>
    </webuijsf:panelLayout>
    </webuijsf:form>
    </webuijsf:body>
    </webuijsf:html>
    </webuijsf:page>
    </f:view>
    </jsp:root>~SirG

  • Disable an Input field with the help of a radio button selection.

    Hi Guys,
    I know it is a very basic question and also has many threads for the mentioned query. None of the threads gave me a real clue about the problem. It is as follows:
    Simply, I have an input field and there are two more radio buttons on the screen, say rd1, and rd2.
    Initially Rb_gtgr is active and input field is blank and disabled, and when i select Rb_selgr, input field should be active and mandatory. It means when i try to execute the code with out entering any value after it is enabled, an error message should appear. For this the code is as follows:
    AT SELECTION-SCREEN OUTPUT.
      PERFORM screen_grace_on.
    AT SELECTION-SCREEN ON p_grace.
      PERFORM check_grace_days.
    FORM screen_grace_on .
      DATA: l_v_grace TYPE char2.
      CONSTANTS: l_c_grace TYPE char7 VALUE 'P_GRACE'.
    l_v_grace = p_grace.
    CLEAR p_grace.
      IF rb_selgr EQ c_x.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-required = 1.
           screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-input = 0.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " SCREEN_GRACE_ON
    FORM check_grace_days.
      IF rb_selgr EQ c_x AND  p_grace EQ 0.
        PERFORM screen_grace_on.
        MESSAGE e492(/ams/ramfcmess1).          " Enter the number of Grace days
      ELSEIF rb_selgr EQ c_x AND p_grace GE 0.
        PERFORM screen_grace_on.
      ENDIF.
    ENDFORM.
    Ideally this code should work since in the PBO i.e., At selection screen output i am enabling the fields, and also when i select the second radio button i am also checking for the value too..
    I am working on 4.7 version of SAP. The Most interesting observation is it works fine for few variants, and not with others.
    Thank you

    Hi,
    Go through this following code,
    selection-screen begin of block B2 with frame title TEXT-005.
    selection-screen begin of line.
    parameters:     P_BIRPT type C radiobutton group RAD1 default 'X' user-command UCOMM.
    selection-screen comment 3(20) TEXT-002 for field P_BIRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_COLRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-003 for field P_COLRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_PAYRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-004 for field P_PAYRPT.
    selection-screen end of line.
    selection-screen end   of block B2.
    selection-screen begin of block B1 with frame title TEXT-001.
    select-options: SO_KTOKD for  KNA1-KTOKD modif id M4,
              SO_BLART for  BSIS-BLART modif id M2.
    parameters:     P_PAID   type ZCLEAR     modif id M3 as listbox visible length 20.
    selection-screen end   of block B1.
    at selection-screen output.
      loop at screen.
        if P_BIRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2' or SCREEN-GROUP1 = 'M3' .
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_COLRPT eq 'X'.
          if SCREEN-GROUP1   = 'M3'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_PAYRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
          if SCREEN-GROUP1   = 'M4'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        endif.
      endloop.
    Thanks
    Anil D

Maybe you are looking for

  • Attachments will not work in yahoo e-mail

    Have previously had no problems with this but since downloading version 4 attachments will not work so have returned to internet express where there is no problem.

  • [Solved] Internal Hard Drive Automount withount Password?

    I have a 1TB internal hard drive used for storage And I want it to automount and also without having to type in a password. Note: I am using Dolphin in KDE. And i selected the option "to remember forever" .. but each time it asks for the password aga

  • How to create compostite attributes in Sap bw

    Assume that my master table has the foll columns cust_mast cust_acct                   number cust_acct_seq_no      number primary key -- [ cust_acct & cust_acct_seq_no.] Please let me know on how to implement the same.

  • Draft PDF link not working?

    OK, this is happening now for someone using both Contribute CS4 and Contribute CS3 (we're also using the Contribute Publishing Server, if that matters). We've tried sending a PDF as a draft to someone else by using the "Send File from My Computer" op

  • Exception Occurred while running CVM: java.lang.Exception: Invalid AD_TOP

    Hi Everyone, Database is up, while running adcfgclone.pl on Application Tier and getting below error. Any help is highly appreciated. Tech Stack details 10gR2 - database E-Business Suite 12 ==================== Error in /oraapp01/oracle/DFIN/inst/app