Problem with Radio Buttons disappering

I am running windows 2008 server and JDeveloper10.1.2. When I add Radio Buttons to a screen and then create a button group and add the buttons when I click Yes the No button disapprears

Hi,
For this requirement you have to use the following FM's
<b>DYNP_VALUES_READ </b>  and DYNP_VALUES_UPDATE
The one highlighted is the one you need to call in the selection screen events to get the values. Do a where used list on this FM and see how its being used.
  DATA : W_REPID    LIKE D020S-PROG,
         W_DYNNR    LIKE D020S-DNUM,
         I_DYNPREAD LIKE DYNPREAD OCCURS 0 WITH HEADER LINE.
  REFRESH: I_DYNPREAD.
  CLEAR  : I_DYNPREAD,
           W_FILE    .
  I_DYNPREAD-FIELDNAME = C_UXPATH.
  APPEND   I_DYNPREAD.
  CLEAR  : I_DYNPREAD.
  W_REPID = SY-REPID.
  W_DYNNR = C_1000.
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            DYNAME               = W_REPID
            DYNUMB               = W_DYNNR
       TABLES
            DYNPFIELDS           = I_DYNPREAD
       EXCEPTIONS
            INVALID_ABAPWORKAREA = 1
            INVALID_DYNPROFIELD  = 2
            INVALID_DYNPRONAME   = 3
            INVALID_DYNPRONUMMER = 4
            INVALID_REQUEST      = 5
            NO_FIELDDESCRIPTION  = 6
            INVALID_PARAMETER    = 7
            UNDEFIND_ERROR       = 8
            DOUBLE_CONVERSION    = 9
            OTHERS               = 10.
  IF SY-SUBRC EQ 0.
Successfully read screen. GET the values
    LOOP AT I_DYNPREAD.
      CASE I_DYNPREAD-FIELDNAME.
        WHEN C_UXPATH .
          W_FILE   = I_DYNPREAD-FIELDVALUE.
      ENDCASE.
    ENDLOOP.                "LOOP AT i_dynpread.
  ENDIF.                    "IF sy-subrc EQ 0.
Cheers
VJ
Message was edited by:
        Vijayendra  Rao

Similar Messages

  • Problem with Radio Button

    Dear Expert,
                 I had a problem while using the syntax SUBMIT.
    I created a report which displays in Grid. In output we have Material Number, Plant, Storage Location, Date.
    By clicking the Material Number, I am submitting to RM07MLBD (MB5B) with material number, plant, storage location and selection date. But some times when clicking the material number, its going to dump giving as "More than one radio button active"
    I can call the Transaction by Call Transaction MB5B, But i need to send the Date also. When sending the Storage Location, in MB5B Transaction we had to activate the Stock Type (Storage Locatin/Batch Lock) Radio Button.  But giving the dump.
    Please help me to solve this issue.
    Kindly give me any other way to call MB5B transaction.
    Thanks & Regards,
    Srini

    Hi,
    you will find something related infor at,
    Submit with exorting list to memory and return
    also in program RM07MLBD, below is the decalaration of the radio buttons. check if you are passing correct values etc..
    using clear statement properly etc...
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS LGBST LIKE AM07M-LGBST RADIOBUTTON GROUP BART DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 4(50) TEXT-010 FOR FIELD LGBST.
    Text-010: Lagerort-/Chargenbestand
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS BWBST LIKE AM07M-BWBST RADIOBUTTON GROUP BART.
    SELECTION-SCREEN COMMENT 4(50) TEXT-011 FOR FIELD BWBST.
    Text-011: bewerteter Bestand
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS SBBST LIKE AM07M-SBBST RADIOBUTTON GROUP BART.
    SELECTION-SCREEN COMMENT 4(50) TEXT-012 FOR FIELD SBBST.
    Text-012: Sonderbestand
    SELECTION-SCREEN END OF LINE.
    Thanks,
    Chandra

  • Problem with Radio Buttons: At Selection-Screen

    Hi,
    i have two radio-buttons in my screen with coding
    PARAMETERS:
                      ST RADIOBUTTON GROUP rad1 DEFAULT 'X',         "stock transport
                      PR RADIOBUTTON GROUP rad1.                     "purchase return
    at selection-screen output.
    if PR = 'X'.
    perform f_selection_request_po_ret.
    endif.
    if ST = 'X'.
    perform f_selection_request_stck_trans.
    endif.
    at selection-screen on value-request for s_ebeln-low.
    perform f_f4_values.
    at selection-screen on value-request for s_ebeln-high.
    perform f_f4_values.
    I need to provide different values in drop-down of select-options according to the radio-button selected.
    Like if PR is selected s_ebeln-low and s_ebeln-high displayed will be different.
    and if ST is selected s_ebeln-low and s_ebeln-high displayed will be different.
    My problem is that the program is taking the values of that radio button which is set to Default. While running the program, if I click on the other radio-button, it is showing the same values, not different.
    Kindly, tell me where I am going wrong in the coding.
    Regards,
    Priyanka.

    Hi,
    For this requirement you have to use the following FM's
    <b>DYNP_VALUES_READ </b>  and DYNP_VALUES_UPDATE
    The one highlighted is the one you need to call in the selection screen events to get the values. Do a where used list on this FM and see how its being used.
      DATA : W_REPID    LIKE D020S-PROG,
             W_DYNNR    LIKE D020S-DNUM,
             I_DYNPREAD LIKE DYNPREAD OCCURS 0 WITH HEADER LINE.
      REFRESH: I_DYNPREAD.
      CLEAR  : I_DYNPREAD,
               W_FILE    .
      I_DYNPREAD-FIELDNAME = C_UXPATH.
      APPEND   I_DYNPREAD.
      CLEAR  : I_DYNPREAD.
      W_REPID = SY-REPID.
      W_DYNNR = C_1000.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME               = W_REPID
                DYNUMB               = W_DYNNR
           TABLES
                DYNPFIELDS           = I_DYNPREAD
           EXCEPTIONS
                INVALID_ABAPWORKAREA = 1
                INVALID_DYNPROFIELD  = 2
                INVALID_DYNPRONAME   = 3
                INVALID_DYNPRONUMMER = 4
                INVALID_REQUEST      = 5
                NO_FIELDDESCRIPTION  = 6
                INVALID_PARAMETER    = 7
                UNDEFIND_ERROR       = 8
                DOUBLE_CONVERSION    = 9
                OTHERS               = 10.
      IF SY-SUBRC EQ 0.
    Successfully read screen. GET the values
        LOOP AT I_DYNPREAD.
          CASE I_DYNPREAD-FIELDNAME.
            WHEN C_UXPATH .
              W_FILE   = I_DYNPREAD-FIELDVALUE.
          ENDCASE.
        ENDLOOP.                "LOOP AT i_dynpread.
      ENDIF.                    "IF sy-subrc EQ 0.
    Cheers
    VJ
    Message was edited by:
            Vijayendra  Rao

  • Problem with Radio Buttons

    I am trying to get information from a radio button when a button is clicked. When it runs and I click the Add button, it doesn't recognize that a radio button is selected. The Large button is supposed to add 10 dollars to your price and the Regular is supposed to add 7 dollars. Each toppin adds .75 to your price. Any ideas or help would be great.
    import java.awt.* ;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.ButtonGroup;
    import javax.swing.JRadioButton;
    import java.text.DecimalFormat;
    import java.lang.Math;
    public class PizzaGUI extends JFrame implements ActionListener
        DecimalFormat dec = new DecimalFormat("0.##");
      JLabel lblOrder     = new JLabel("Order number:");
      JLabel lblSize  = new JLabel("Pizza size");
      JLabel lblToppings = new JLabel("Toppings:");
      JLabel lblPrice = new JLabel("");
      JTextField OrderNum = new JTextField(10);
      JPanel OrderNumberPanel = new JPanel();     
      JPanel SizePanel = new JPanel();
      JPanel ToppingsPanel = new JPanel();
      JPanel PricePanel = new JPanel();
      JTextField Price = new JTextField(10);
      JRadioButton BRegular = new JRadioButton ("Regular", true);
      JRadioButton BLarge = new JRadioButton ("Large", false);
      ButtonGroup SizeGroup = new ButtonGroup();
      //JCheckBox Mushrooms, HotPeppers, Pepperoni, Onions;
    JCheckBox Mushrooms = new JCheckBox("Mushrooms");
    JCheckBox HotPeppers = new JCheckBox("Hot Peppers");
    JCheckBox Pepperoni = new JCheckBox("Pepperoni");
    JCheckBox Onions = new JCheckBox("Onions");
      JTextField Answer = new JTextField(15 );
      JButton    doit   = new JButton("Add");
      double regular = 7;
      double large = 10;
      double topping = 0.75;
      int OrderNumber= 0;
      String Ordernumstring;      
      double price;
      public PizzaGUI()  
        setTitle( "-Pizza Order-" );
         SizeGroup.add( BRegular);
            SizeGroup.add( BLarge);
            OrderNumberPanel.add(lblOrder);
            OrderNumberPanel.add(OrderNum);
            SizePanel.add(lblSize);
         SizePanel.add(BRegular);
         SizePanel.add(BLarge);
            ToppingsPanel.add(lblToppings);
            ToppingsPanel.add(Mushrooms);
            ToppingsPanel.add(HotPeppers);
            ToppingsPanel.add(Pepperoni);
            ToppingsPanel.add(Onions);
            PricePanel.add(lblPrice);
            PricePanel.add(Price);
        getContentPane().setLayout(
            new BoxLayout( getContentPane(), BoxLayout.Y_AXIS )); 
        getContentPane().add( OrderNumberPanel );
        getContentPane().add( SizePanel ); 
        getContentPane().add( ToppingsPanel );  
        getContentPane().add( PricePanel );
        getContentPane().add( doit );
        Price.setEditable( false );   
        OrderNum.setEditable( false );
        doit.addActionListener( this );
      public void actionPerformed( ActionEvent evt) 
      // The application
      Object source = evt.getSource();
         OrderNumber++;
         OrderNum.setText("#"+ OrderNumber);
            if(evt.getActionCommand() == "Regular"){
                    price+=7;}
            else{
                    price+=10;}
                 if(Mushrooms.isSelected()){
                         price+=.75;}
                 if(HotPeppers.isSelected()){
                         price+=.75;}
                 if(Pepperoni.isSelected()){
                         price+=.75;}
                 if(Onions.isSelected()){
                         price+=.75;}
         Price.setText("$"+price);
      public static void main ( String[] args )
        PizzaGUI PizzaApp  = new PizzaGUI() ;
        WindowQuitter wquit = new WindowQuitter();
        PizzaApp.addWindowListener( wquit );
        PizzaApp.setSize( 500,300 );    
        PizzaApp.setVisible( true );        
    class  WindowQuitter  extends WindowAdapter
      public void windowClosing( WindowEvent e )
        System.exit( 0 );  

    Have you tried printing out the ActionCommand you are comparing to in your ActionEvent method? Since the event is thrown from your doIt buttton, it will never be "Regular"...
    You have to test to see if the BRegular JRadioButton is selected with BRegular.isSelected().
    /D

  • Problem with radio Button(urgent)

    hai friends
    (sub:- deselecting radio buttons(2 radio buttons) at a time. ie. no one is selected at any point of time. whenever he/she cliks it is going to select.)
    In my form, i have 2 radio buttons. if i click one radio button it opens one canvas and enter some data and when i press OK button there, it will come back to original canvas.at this movement selected radio button should be deselected.
    If i click 2nd radio button it also opens another canvas and enter some data and when i press OK button there, it will come back to its original canvas.at this movement selected radio button should be deselected.
    when come back to its original canvas, is there any chance of deselecting both radio buttons at a time. ie. at any point of time customer may select any one. no one is default . i need that methodology. it is possible? if so, give me code for it.
    regards
    madhava

    Hi,
    you can use a third radio button and set it to be invisible. Whenever you want your two visible buttons to be deselected simply set the value to your third button value.
    Achim

  • Dialog Programming: Problem with Radio Buttons in a dialog screen.

    Removed - Duplicate posting.
    Edited by: miniSAP on May 14, 2009 9:05 AM

    Hi,
    go to se51 screen layou and select the four radio button and right click there is a option called assigned group name..
    enter the group name..
    from now onwards it allows you to select only one radio button at a time..
    Regards,
    Prabhudas

  • Problem with Radio Button using JDeveloper 10.1.2 and Windows 2008

    When adding Radio Buttons ("Yes and "No") to a swing application and putting them under a button group. Selecting "Yes" the "No" choice diappears

    JDev 10.1.2 is quite old, and was never certified for Windows 2008.
    No need to post multiple threads - same question as {thread:id=2271522}

  • Problem with radio button and labels

    Hi Team,
    I have defined the LOV for a form field as STATIC:yes;y,no;n and in 2 columns.
    This is what I get at runtime
    <table>
    <tr><td nowrap="nowrap"><input type="radio" name="p_v07" value="n" id="P18_USED_PRODUCTS_0" />
    <label for="P18_USED_PRODUCTS_0">no</label></td>
    <td nowrap="nowrap"><input type="radio" name="p_v07" value="y" id="P18_USED_PRODUCTS_1" />
    <label for="P18_USED_PRODUCTS_1">yes</label></td>
    </tr>
    </table>
    I want Yes to be the first button. How can I do that? I can with a LOV, but "static" is easier for trivial things like y/n etc.

    Raymond,
    You can use the keyword STATIC2 instead of STATIC to render the options in the order you code them.
    - Scott

  • How to render  radiogroup with radio buttons spread out across 2 columns

    Hi,
    I would like to render the following html using JSF (Renderer ??). How do I do that ?
    Basically it has a radiogroup with radio buttons spread out across 2 columns. and with an
    attached input text box along with
    the label for each radiobutton in the radio group.
    Any pointers or examples I can look at to do something like this is appreciated.
    <selectOneRadio does not achieve my functionality nor does MyApacheFaces with a layout="spread" option.
    TIA,
    Vijay
    Here is the html source for what i want to achieve:
    <TABLE border="0" cellpadding="0" cellspacing="1">
         <TBODY>
              <TR>
                   <TD></TD>
                   <TD><span id="searchForm:searchText1">Application Number</span></TD>
                   <TD></TD>
                   <TD><span id="searchForm:searchText2">Agreement Number</span></TD>
              </TR>
              <TR>
                   <TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="applicationNumber"/></TD>
                   <TD><input type="text" id="searchForm:applicationNumberId" value=""/></TD>
                   <TD ><input type="radio" id="searchForm:customerSearchRadioGroupId" value="agreementNumber"/></TD>
                   <TD><input type="text" id="searchForm:agreementNumberId" value=""/></TD>
              </TR>
              <TR>
                   <TD></TD>
                   <TD><span id="searchForm:searchText3">Infolease Cust.#</span></TD>
                   <TD></TD>
                   <TD><span id="searchForm:searchText4">eCredit Cust.#</span></TD>
              </TR>
              <TR>
                   <TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="infoLeaseCustNumber"/></TD>
                   <TD><input type="text" id="searchForm:infoLeaseCustNumberId" value=""/></TD>
                   <TD ><input type="radio" id="searchForm:customerSearchRadioGroupId" value="eCreditCustNumber"/></TD>
                   <TD><input type="text" id="searchForm:eCreditCustNumberId" value=""/></TD>
              </TR>
              <TR>
                   <TD></TD>
                   <TD><span id="searchForm:searchText7">Client Number</span></TD>
                   <TD></TD>
                   <TD><span id="searchForm:searchText8">Customer Name</span></TD>
              </TR>
              <TR>
                   <TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="clientNumber"/></TD>
                   <TD><input type="text" id="searchForm:clientNumberId" value=""/></TD>
                   <TD style="color:red"><span id="searchForm:searchText9">  AND  </span></TD>
                   <TD><input type="text" id="searchForm:custNameId" value=""/></TD>
              </TR>
         </TBODY>
    </TABLE>

    Yeah, I would love to know about this too.
    What I did is (you will hate this solution) I hacked my designers design to make the first column (the radio column) to be one big column. In side this column, I did
    <h:selectOneRadio id="customerSearchRadioGroupId" layout="pageDirection">
    <f:selectItem ..... />
    <f:selectItem .... />
    </h:selectOneRadio>
    this is wack, but I can't think of any other solution. in ASP.NET you get a groupName attribute, which make thigns a lot flexible.
    The problem with this solution is the layout of the output (a table of radio button) didn't line up with the next column of textbox, so I had to go to my designer and have her modify her css.
    If anybody have a solution for this, please let us know.

  • Problems with home button on iPhone 4

    problems with home button on iphone 4

    If its due to sensitivity issues, these self help guides might help.
    http://www.youtube.com/watch?v=zNwr_mxgs9Q
    http://www.youtube.com/watch?v=lSqPC1V0PPg&feature=related
    By the way, alcohol based hand sanitisers work too.
    Don't overapply it in one go though. You'll have to allow the alcohol to evaporate.
    One final tip, after its dried, I'd recommend you to leave your iPhone's home button facing a laptop's vent just to bake it a little drier.

  • How do I move a table with radio buttons to another page?

    I created a document in Word, converted to PDF, added a page (which was created in Adobe Forms Central, only way to get a table with radio buttons - see below for example).
    The issue I have is whilst using the Trial of Adobe XI Pro I was able to move this table up a page and place it under the header.  Now that the trial has run out I cannot complete this task with other documents.
    I started to edit using LiveCycle but it won't let me move the table.
    We have Acrobat X Pro but when I go to edit, it directs me to edit in LiveCycle.  I have tried moving the table using all of these programs.  Can anyone help/guide please? 

    Thank you for your reply.  I am new to editing a pdf and using these programs. I have subscribed to Acrobat XI Pro.  When I try to edit the document it directs me to LiveCycle.  I cannot move the table in LiveCycle.  It won't let me, and I cannot make changes in XI Pro as I did in the trial as it directs me to edit in LiveCycle.  Am going in circles.

  • How do I change the text in a field with radio buttons or check box?

    Hi All:
    I have a form that has a list of things with check boxes (could be done with radio buttons) at the bottom. The client wants a single field at the top of the form that repeats the text next to the checkboxes. For example if a user checks the box next to the words "You did thing 1 wrong" the client wants "You did thing 1 wrong" to appear in this text box at the top of the form. If the user checks the box next to the words "You did thing 2 wrong" the client wants the words "You did thing 2 wrong" to appear in the magic box at the top of the page. There are 10 different check box options, so the box at the top would need to be able to have 10 different things in it.
    Client is not interested in a drop down menu. I asked.
    I am in a bit over my head here, so my question is twofold.
    1. Can you do this in Acrobat Pro 10 on a Mac?
    2. Can you supply me with code?
    Thanks in Advance,
    Amy W.

    Create a text field and make this script its custom calculation script :
         var a ="";
         if (this.getField("Check1").value == "Yes"){
         a="You did thing 1 wrong";
         event.value = a;
    Also, replace "Check1" with the name of your check box or radio button, and give it an export value of "Yes".

  • How to define  parameters with radio button

    HI
      How to define  parameters with radio button, but that radio button should display in front of the variable name not after variable name. and under that radio button variable I hve to define parameters, select-options and some other radiobutton varibles.
            I don't know how to paste figures here, otherwise i will provied u the figure for more details.
    Regards.

    PARAMETERS : r1 RADIOBUTTON GROUP radi.
    Go to --> text elements --> selection text
    R1    <your text>
    You can change the program selection screen lay out in screen painter (se51) .
    screen number for your selection screen is 1000.
    Regards,
    Santosh reddy
    Edited by: Santosh Reddy on Dec 9, 2008 11:21 AM

  • Dynamic table with radio buttons

    I need to load a dynamic table with radio buttons that allow
    the user to select an item in the table. I need to have it add a
    radio button with a unique identifier for each table item.
    For example: the table will load all of the seminars
    locations available in a certain state, the radio button will allow
    the user to select the city in which they would like to attend and
    that value will get passed to the registration page. The value of
    each radio button would be equal to the location_id in the database
    for each of the locations in the table (The table includes the
    date, day, venue, address, hotel info, etc. details for each city.)
    When I add dynamic radio buttons and set the value to the
    location_id in the database, it allows the user to select multiple
    radio buttons. I cannot find any information on how to
    resolve.....??
    Any help is appreciated.

    beanieboo wrote:
    > I need to load a dynamic table with radio buttons that
    allow the user to select
    > an item in the table. I need to have it add a radio
    button with a unique
    > identifier for each table item.
    >
    > For example: the table will load all of the seminars
    locations available in a
    > certain state, the radio button will allow the user to
    select the city in which
    > they would like to attend and that value will get passed
    to the registration
    > page. The value of each radio button would be equal to
    the location_id in the
    > database for each of the locations in the table (The
    table includes the date,
    > day, venue, address, hotel info, etc. details for each
    city.)
    >
    > When I add dynamic radio buttons and set the value to
    the location_id in the
    > database, it allows the user to select multiple radio
    buttons. I cannot find
    > any information on how to resolve.....??
    > Any help is appreciated.
    Give each radio button the same name
    <input type="radio" name=theLocation" value="<?php
    $recordset['location_id'] ?>">
    Mick

  • Problems with parameter button in Crystal Report Server  2008

    Dear all,
    I have problems with parameter button in Crystal Report Server 2008.
    when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button'  on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter'  First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
    Could any one help me with this?
    I appreciate looking forward to your reply
    Ketya

    Try posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server

Maybe you are looking for

  • HP Photosmart Plus B209 - will not print photos - tray is not picking up the paper

    The printer will not grab the photo paper when I attempt to print a picture.  It works just fine when printing other things, such as text from WORD or something from the internet.  Photo paper says "single sheet feed" on it, so I place one sheet in t

  • 23" external display not working

    My 2009 i7 2.8 iMac used to connect great to my 23" cinema display. Now, after a few OS updates, the 23" screen won't turn on. I had been using it for a year on another computer at work. My iMac worked fine with the 24" yesterday, but now swapping th

  • Good flash photo slideshow app, FYI

    FYI, I've found & have been using a very impressive flash slideshow app (and have abandoned Slideshowpro), Imagevue X. Easy to use, no need to use macromedia flash app, etc. Nice fullscreen images, music, thumbnails, etc. Example: http://www.gpmalone

  • Unexpected end-of file encounterd

    I need help: when I open an image in Photoshop I get this error "could not import the clip board because of an unexpected end-of-file was encountered" how do I fix this?

  • CC applications keep saying it is Trial software when I am a subscriber

    I am a Creative Cloud for teams subscriber, and some of the applications ask me to sign in and (seemingly randomly) tell me that the software is Trial. The Acrobat XI Pro (which I installed via the Creative Cloud app) consistently gives this message,