How to disable a lead selected item in a radio button group ?

Hi,
I have a radio button group and there are entries to create radio buttons dynamically. means there is only one radio button group in the UI design and in runtime I will be having two radio buttons (For ex: Yes and No ) . Now If I want to disable either Yes or No radio button, I am unable to do so. because If I disable the radio button group it disables both.  So, I can have lead selected item for ex: Yes which I want to disable. I want to know specifically how this Yes button to be disabled by taking lead selected index item.
Please help.
Thanks
Praveen

Try setting the radio button value of the lead selected button to abap_false/space.

Similar Messages

  • How to Disable the Lead selection Action on aTable n How to Refreh a Page

    HI....
    1)How to Disable the Lead selection Action on aTable n How to Refreh a Page r web dynpro application.
    In my case i have a table n user enters data on multiple rows in table , n i have some input fields outside of table for those Inputs fields am settiing the data  at the screen initilization(in Init() moethod by hard code).the problem is whenever the is clicking in th 2nd row of a table the Lead Selection is triggerig and the data in the Input Fields outside the table is not displayinig.
    So by removing the lead Selection Action of a table i thought i can reslove this,
    2) How to refresha page(like we click F5 on key board),is it can be done thru code in web dynpro application
    Regards
    Rajesh

    Hi,
    You did not explained what is your functionality or coding in leadselection. Is that action on leadselection is necessary for you?.
    1)If you just want to remove the action then go to table properties and remove the action for leadselection.
    2)If you still want to continue with your leadselect action, then what you can do is.. write the code in leadselection action to again set the input fields which are out from table.  That is what you did in your init method.
    Page Refreshing
    3) What do you mean by page refreshing? is that refreshing your table only or both the table and input fields. 
         What I understood is you are allowing the user to enter values in table and soon after pressing a button the values should be saved and the data in input fields shld be deleted.  For this if you only invalidate the node then the user entered data will be lost. 
    So what you do is after getting the input data from the user add it to a ArrayList and then invalidate the node which clears the data in input field. Finally bind the Arraylist to your node.  see the following code. This is a concept make changes according to your requirement
    ArrayList list1=new ArrayList();
    wdContext.nodeAbc().bind(list1);
    IPrivateExcelviw.IAbcElement ele = wdContext.createAbcElement();
      ele.setNo(wdContext.currentAbcElement().getNo());
      ele.setName(wdContext.currentAbcElement().getName());
      ele.setMarks(wdContext.currentAbcElement().getMarks());
      list1.add(ele);
      wdContext.nodeAbc().invalidate();
    wdContext.nodeAbc().bind(list1);
    Revert me if you have any doubts
    Regards
    Raghu
    Edited by: Raghunandan Madarikuruva on Oct 16, 2008 8:07 AM

  • Creation of selection screen with 2 radio button groups

    Hi All,
    I have following selecton screen to be created:
    1. Radio Button for File
       A. Radio Button for PC File
           - Parameter for PC File Input
       B. Radio Button for UNIX File
           - Parameter for Unix File Input
    2. Radio Button for Material
        - Material Select-Option
    As per above Either of Radio Buttons 1/2 File/Material will be selected.
    If 1(File) Selected Radio Button for PC File/Unix File will be selected, No other radio buttons will be active.
    If 2(Material) Selected Material Select-option input will be given, No other radio buttons will be active.
    How can we write the selection screen code for above design.
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    go through the following example-----
    **************************************INTERNAL TABLE DECLERATION**************************************
    DATA: BEGIN OF ITAB2 OCCURS 0,
             VALUE(250) TYPE C,
             END   OF ITAB2.
    **************************************DATA DECLERATION************************************************
    DATA: PATH LIKE DYNPREAD-FIELDNAME.
    DATA : P TYPE STRING,
           D TYPE STRING.
    DATA : V_DATASET    LIKE FILENAMECI-FILEEXTERN.
    **************************************SELECTION SCREEN***********************************************
    PARAMETERS: V_PATH TYPE RLGRAP-FILENAME DEFAULT 'C:\Documents and Settings\vchaturvedi\Desktop\vijay.txt'.
    PARAMETERS: D_PATH TYPE RLGRAP-FILENAME.
    SKIP 5.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    PARAMETERS: PC_ONE    RADIOBUTTON GROUP RAD1 DEFAULT 'X',
                PC_OTHER    RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR V_PATH.
    HELP FOR SEARCHING FILES PATH************************************************
      IF PC_ONE = 'X'.
        CALL FUNCTION 'F4_FILENAME'
         EXPORTING
      PROGRAM_NAME        =  'Z8VIJAY_SHADOWER_COVERSIONDATA'
      DYNPRO_NUMBER       = SYST-DYNNR
           FIELD_NAME          = PATH
         IMPORTING
           FILE_NAME           = V_PATH.
    *******CONVERT IN TO STRING************
        P = V_PATH.
      ENDIF.
    **************************************SELECTION SCREEN VALIDATION***********************************
    AT SELECTION-SCREEN.
      IF V_PATH = ''.
        MESSAGE E014.                    "FILE PATH NOT FOUND!!!!!!!
      ENDIF.
      IF D_PATH = ''.
        MESSAGE E016.                "TARGET FILE NOT FOUND!!!!!!!
      ENDIF.
    *******************FOR DOWNLOAD**********
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR D_PATH.
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
      PROGRAM_NAME        = 'Z8VIJAY_SHADOWER_COVERSIONDATA'
      DYNPRO_NUMBER       = SYST-DYNNR
         FIELD_NAME           = PATH
       IMPORTING
         FILE_NAME           = D_PATH.
    ***************CONVERT INTO STRING***********
      D = D_PATH.
    *******************************************MAIN LOGIC************************************************
    START-OF-SELECTION.
      IF P = ''.
        P = 'C:\Documents and Settings\vchaturvedi\Desktop\vijay.txt'.
      ENDIF.
    ******************UPLOAD DATA FROM OTHERS TO INTERNAL TABLE****************
      CALL FUNCTION 'GUI_UPLOAD'
              EXPORTING
                FILENAME                      = P
             FILETYPE                      = 'ASC'
             HAS_FIELD_SEPARATOR           = ' '
             HEADER_LENGTH                 = 0
             READ_BY_LINE                  = 'X'
             DAT_MODE                      = ' '
             CODEPAGE                      = ' '
             IGNORE_CERR                   = ABAP_TRUE
             REPLACEMENT                   = '#'
             CHECK_BOM                     = ' '
           IMPORTING
             FILELENGTH                    =
             HEADER                        =
              TABLES
                DATA_TAB                      = ITAB2
             EXCEPTIONS
               FILE_OPEN_ERROR               = 1
               FILE_READ_ERROR               = 2
               NO_BATCH                      = 3
               GUI_REFUSE_FILETRANSFER       = 4
               INVALID_TYPE                  = 5
               NO_AUTHORITY                  = 6
               UNKNOWN_ERROR                 = 7
               BAD_DATA_FORMAT               = 8
               HEADER_NOT_ALLOWED            = 9
               SEPARATOR_NOT_ALLOWED         = 10
               HEADER_TOO_LONG               = 11
               UNKNOWN_DP_ERROR              = 12
               ACCESS_DENIED                 = 13
               DP_OUT_OF_MEMORY              = 14
               DISK_FULL                     = 15
               DP_TIMEOUT                    = 16
               OTHERS                        = 17
          IF sy-subrc = 1.
           MESSAGE E014.                    "FILE PATH NOT FOUND!!!!!!!
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    ******************************DOWNLOAD DATA FROM INTERNAL TABLE TO OTHERS******************************
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    =
          FILENAME                        = D
      FILETYPE                        = 'ASC'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
        TABLES
          DATA_TAB                        = ITAB2
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF PC_OTHER = 'X'.
    ****************************8FOR ONE SERVER TO ANOTHER************************************************
      OPEN DATASET V_DATASET FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        IF SY-SUBRC = 0.
          DO.
            READ DATASET V_DATASET INTO ITAB2.
            IF SY-SUBRC <> 0.
              EXIT.
            ENDIF.
            APPEND ITAB2.
          ENDDO.
        ENDIF.
      ENDIF.
    *********************************PRINTING DATA *********************************************************
      LOOP AT ITAB2.
        WRITE :/5 ITAB2-VALUE.
      ENDLOOP.
    ****do reward if usefull
    Regards,
    vijay

  • How do I disable one item in a radio buttons control at run time

    I need to disable one item in a radio buttons control. At design time
    this is possible, but how do I do this at run time? Is this possible? I
    cannot find a property per item

    Use the property "Controls[ ]" - this gives you an array with references of each single button in the radio buttons control. These you can access with property nodes too.
    Hope this helps.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How to read the Lead Selection in Search UIBB

    Hello,
    I have a Search UIBB implementation with the list from Search UIBB.
    When the user double click any line in the List we want to call another program.  Not sure how to read the Lead selection. I see the event ID FPM_RESULT_LEAD_SEL  in Process_Event method and GET_DATA method but not sure how to get the actual line.
    Thanks in advance for any help.
    Regards,
    PK

    Hi ,
    method IF_FPM_GUIBB_SEARCH~PROCESS_EVENT.
    CASE IO_EVENT->MV_EVENT_ID.
    WHEN  IF_FPM_GUIBB_SEARCH=>FPM_RESULT_LEAD_SEL.
      READ TABLE   IT_RESULT_LIST  into  IS_RESULT_LIST index IV_LEAD_INDEX.
    ENDCASE.
    Where  IT_RESULT_LIST -> is the internal table of   ET_RESULT_LIST( This can be declared in attributes section and assigned value in GET_DATA method )
      IS_RESULT_LIST-> is a structure of type  table  IT_RESULT_LIST.
    IV_LEAD_INDEX has to be created at attributes section and the value of the selected row of type I can be assigned in IF_FPM_GUIBB_SEARCH~FLUSH method for the same event.
    Regards,
    Harsha

  • How to find out the selected item in the lsit

    Hi all,
    How to find out the selected item in the list,can any please post some examples which easy to understand,because iam not a good programmer

    This sample program uses a checkbox as selection,  you could also use a HOTSPOT.
    report zrich_0002 no standard page heading.
    data: imara type table of mara with header line.
    data: check_box(1) type c,  
       report_lines type i.
    start-of-selection.
    * Create the gui status with BACK button in standard place
    * and a READ button in the application toolbar
      set pf-status 'CHECK'. 
    select * into corresponding fields of table imara           from mara up to 100 rows.
    loop at imara.   
    write:/ check_box as checkbox, imara-matnr, imara-matkl.  
    hide imara-matnr. 
    endloop.
      report_lines  = sy-linno - 1.
    top-of-page. 
    write: 'List of materials'.  uline.
    top-of-page during line-selection.  write:  'Material.....'.  uline.
    at user-command. 
    case sy-ucomm.  
    when 'READ'.   
      check_box = space.    
    set pf-status 'CHECK' excluding 'READ'.
          do report_lines times.       
    read line sy-index field value check_box.    
       if check_box = 'X'.        
    write:/  'You have selected material',
    imara-matnr.       
    endif.   
      enddo. 
    endcase.
    Regards,
    Rich Heilman

  • How to make a listbox selected item highlight color from code the same as if user click on item?

    Hi all,
    I have a listbox that gets filled with data when my program starts. I save the last selectedItem value so I set it when the program start again. But the color that the selected item has is not the same as if the user click on it (pictures below).
    The color when I set the selectedIndex=someItem is black on light grey (background)
    The color when the user clicks on the item is white on blue (background)
    Any way to make them both white on blue (background)?
    Thanks
    This is the user clicking on it:
    This is the code:

    I think the difference is focus.  When you use the mouse to select it also sets focus to the listbox so you would have to set focus to the listbox when you set the selected item.  How are you setting your selected item?  I think that by
    using a property to hold the selected item rather than setting the index that might also fix the problem.
    Lloyd Sheen

  • How to disable a default selection checkbox in the tableview

    Hi All,
             How to disable a default selection checkbox in the tableview ???
    I have  a tableview  with a iterator class mentioned on the iterator attribute of the table view. Table is a MULTISELECT tableview . Is it possible to disable or make it invisible a particular row selection check box?.
    For my scenario I have Currency values on all the columns and I want to do a sub total overall total for all the price column fields in the last row of that table. I archived this functionality using Iterator class method. But I don't want the user to delete that last row in any case.
    Thanks for your help in advance.
    Thanks,
    Greetson

    Hi,
      You can NOT disable the "Checkbox" of particular row using HTMLB. I had the same requirement. I achieved using <b>2 Tableviews</b>, one after another. 1st tableview will show all the rows and 2nd Tableview(without Table Header) and without any row. The <b>total</b> will be displayed as <b>Column title</b> of 2nd Tableview.
    Here is the code of 2nd tableview which we used to display the Total:
              <htmlb:tableView id                  = "tv2"
                               headerVisible       = "false"
                               keyColumn           = "appid"
                               footerVisible       = "false"
                               selectionMode       = "SINGLESELECT"
                               design              = "ALTERNATING"
                               fillUpEmptyRows     = "false"
                               visibleRowCount     = "0"
                               width               = "100%"
                               table               = "<%= tot_header %>" >
                <htmlb:tableViewColumns>
                  <htmlb:tableViewColumn columnName = "empno"
                                         title      = "Total"
                                         width      = "50"
                                         type       = "TEXT" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "ename"
                                         title      = "  *      "
                                         width      = "90"
                                         type       = "TEXT" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "appamount"
                                         title      = "   <%= tot_appamt %> "
                                         width      = "60" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "ugjr_amt"
                                         width      = "60"
                                         title      = "<%= tot_ugjr %>" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "apprvd"
                                         width      = "50"
                                         title      = "*" >
                  </htmlb:tableViewColumn>
                </htmlb:tableViewColumns>
              </htmlb:tableView>
    Hope this will help you.
    <b>Note: Reward each useful post.</b>
    Raja T
    Message was edited by:
            Raja T

  • How to disable fields on selection screen?

    hi,
    i have two fields f1 and f2 on selection screen and two radio buttons r1 and r2.
    if i select r1, f1 should be input enable and f2 shuld be disabled.
    and if i select r2, f2 should be input enable and f1 shuld be disabled.
    i hav code like this
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: p_Pfile TYPE rlgrap-filename,      "presentation server input file
                p_afile TYPE rlgrap-filename.      "application server input file
               p_efile TYPE rlgrap-filename.                "error file
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETERS: R_ps TYPE c RADIOBUTTON GROUP rd default 'X', "radio button for presentation server
                R_as TYPE c RADIOBUTTON GROUP rd .            "radio button for application server
    SELECTION-SCREEN END OF BLOCK blk2.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF R_PS = C_X.
      IF SCREEN-NAME = P_PFILE.
       SCREEN-ACTIVE = 0.
       MODIFY SCREEN.
      ELSE.                           "IF SCREEN-NAME = P_AFILE.
       SCREEN-ACTIVE = 1.
       SCREEN-INPUT = 1.
        MODIFY SCREEN.
        ENDIF.
    ELSEIF R_AS = C_X.
      IF SCREEN-NAME = P_PFILE.
       SCREEN-ACTIVE = 0.
       MODIFY SCREEN.
      ELSE.                           "IF SCREEN-NAME = P_AFILE.
       SCREEN-ACTIVE = 1.
       SCREEN-INPUT = 1.
        MODIFY SCREEN.
        ENDIF.
    ENDIF.
    ENDLOOP.
    but i could not get that .
    plz help me

    Hi ,
    This is my test code look at "at selection screen output" part you will get it.
    data: g_user_has_auth(1) TYPE c,
           v_key LIKE sy-pfkey,
           it_ucomm TYPE TABLE OF sy-ucomm.
    CONSTANTS : c_yes TYPE c VALUE '1' ,
                c_no TYPE c VALUE '0' .
    INITIALIZATION.
    Code to remove standard execute button from selection screen.
      v_key = sy-pfkey.
      APPEND : 'ONLI' TO it_ucomm.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
        EXPORTING
          p_status  = v_key
          p_program = ' '
        TABLES
          p_exclude = it_ucomm.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS:      r_iobj  RADIOBUTTON GROUP rb1 USER-COMMAND OP1.
    PARAMETERS:      r_ods  RADIOBUTTON GROUP rb1.
    PARAMETERS:      r_cubes  RADIOBUTTON GROUP rb1.
      SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02 .
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-t02 FOR FIELD p_info MODIF ID OP1.
    PARAMETERS: p_info TYPE string MODIF ID OP1.
    SELECTION-SCREEN: PUSHBUTTON 68(10) but1 USER-COMMAND cli1 MODIF ID OP1.
    SELECTION-SCREEN : END OF LINE.
      SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t04.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-t02 FOR FIELD p_ods MODIF ID OP2.
    PARAMETERS: p_ods TYPE string MODIF ID OP2.
    SELECTION-SCREEN: PUSHBUTTON 68(10) ods1 USER-COMMAND cli3 MODIF ID OP2.
    SELECTION-SCREEN : END OF LINE.
    *SELECTION-SCREEN SKIP 1.
    *PARAMETERS:      r_exe  RADIOBUTTON GROUP rb2.
    *PARAMETERS:      r_st1  RADIOBUTTON GROUP rb2.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN: PUSHBUTTON /1(20) ods_cr USER-COMMAND cli4 MODIF ID OP2.
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'OP1'.
          IF R_IOBJ = 'X'.
            SCREEN-INVISIBLE = C_NO.
            SCREEN-ACTIVE = C_YES.
            ELSE.
              SCREEN-INVISIBLE = C_YES.
              SCREEN-ACTIVE = C_NO.
              ENDIF.
              MODIFY SCREEN.
              ENDIF.
              IF SCREEN-GROUP1 = 'OP2'.
                IF R_ODS = 'X'.
                  SCREEN-INVISIBLE = C_NO.
                  SCREEN-ACTIVE = C_YES.
                  ELSE.
                    SCREEN-INVISIBLE = C_YES.
                    SCREEN-ACTIVE = C_NO.
                    ENDIF.
                    MODIFY SCREEN.
                    ENDIF.
                    ENDLOOP.

  • How to get the items of a radio button under each other?

    I want to place the items of a radio button : selectOneRadio under each other, but it doesn't work..
    The code I am using is :
                                                 <h:panelGrid columns="1" cellspacing="0" cellpadding="2"
                                                      border="0" styleClass="subitems">
                                                      <h:selectOneRadio value="#{travelerDataBean.travelParty}" >
                                                                <f:selectItems value="#{travelerDataBean.travelParties}" />
                                                      </h:selectOneRadio>
                                                 </h:panelGrid>
    Can someone help me?
    Thanks

    Use-
    .............layout="pageDirection"....................-- raju

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

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

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

  • Two radio button groups merging into one, and I don't want that. How do I fix it?

    I have two sets of radio buttons that I want to be independent of each other. How do I do that?  Just to be clear... I have one set with two buttons.  The second set has six buttons.  They are independent of each other - they just happen to fall in line one right after the other.  LiveCycle keeps putting them together. 
    I have very limited knowledge and am learning as I go.  Thanks for any help that you can give me.

    Select the Radio button that you want to be independent of the other radio buttons, RIGHT click and choose Wrap in New Radio Button Group.
    This way it can be selected along with other radio buttons..
    One question here. If you want each radio button to be independent of each other, why not change them to Check Boxes instead of Radio Buttons.
    Thanks
    Srini

  • How i can set the selected item of a dropDown component from java code

    Hi
    Thank you for reading my post
    How i can set the slected item of a DropDown component from backing beans java code ?
    it is binded with a database , so one field determine its display and one other field determine its value , I want to set the selected item of this combobox
    In back code i have both value and display values to use them .
    can some one give me some help ?
    Thanks ,

    See code sample 3 at http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    See also, the selection components row in the table under http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    It says
    One way to preselect items is to call setSelectedValue(Object[]) or setSelectedValue(Object) from the prerender() method. You pass in the return values of the items that you want preselected. Be sure to verify that getSelected() returns null before setting the default options, or you will overwrite the user's selections on a post-back.

  • How to Disable field in Selection-screen

    Hi All,
    I want to disable Screen field in my seelction screen. Below is my Code, but it is not working.
    I want to perform.
    If RB1 = X
    Then Parameter P_VBELN should get disabled. Please suggest, find below my code.
    *....Selection Screen
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_vbeln like vbak-vbeln.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-002.
    parameter: rb1 radiobutton group radi default 'X',
               rb2 radiobutton group radi.
    selection-screen end of block b2.
    *....At Selection Screen
    AT Selection-screen.
      if p_vbeln = ''.
        MESSAGE ID 'ZID' TYPE 'E' NUMBER '000'.
      endif.
    *....At selection screen output
    AT Selection-screen output.
      if rb1 = 'X'.
        Loop at screen.
          if screen = 'P_VBELN'.
            screen-input = '0'.
          endif.
          modify screen.
        endloop.
      endif.
    *....Start of selection
    Start-of-Selection.
      select *
      from vbak into table itab1
       where vbeln = p_vbeln.
      if itab1 is initial.
        select *
        from vbap into table itab2
        for all entries in itab1
        where vbeln = itab1-vbeln.
      endif.

    Hi Kamaljeet ,
    In the code below..see the lines in BOLD..explanation is given as to why they are required
    Code----
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_vbeln like vbak-vbeln.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-002.
    parameter: rb1 radiobutton group radi default 'X' user-command ucomm,
    rb2 radiobutton group radi.
    selection-screen end of block b2.
    AT Selection-screen output.
    if rb1 = 'X'.
    Loop at screen.
    if screen-name = 'P_VBELN'.
    screen-input = '0'.
    endif.
    modify screen.
    endloop.
    else.
    Loop at screen.
    if screen-name = 'P_VBELN'.
    screen-input = '1'.
    endif.
    modify screen.
    endloop.
    endif.
    Explanation----
    If the user command is not given,the system will not trigger on the click of radio button..
    Once triggered it comes to "At selection screen output"..where we must also mention the case when
    radio button 2 is selected RB2 ..the p_vbeln must be input and when RB1 is selected the field
    p_vbeln must be display only..Paste the code and see how it works
    Then use the logic as desired...
    Hope it helps
    Regards
    Byju

  • How to disable a standard selection screen of LDB?

    Hi Friends,
       My requirement is to disable a standard selection screen of a standard LDB and use my own Selection screen instead.How to go about it?.
    Prompt replies would be rewarded.
    Regards,
    Tamilarasan.

    Hi Tamilarasan,
      U can hide LDB field, in the following way.
    1.In tables statement remove the table name for the fields
      you done require.
    2.You can modify the screen fields. LOOP AT SCREEN
    3.In the program attributes you can choose the SAP defined
      selection screen if provided.
    Add can add new field, in the following way,
    1.If it is Customer program then as normal way like
    SELECTION-SCREEN: BEGIN OF BLOCK 1
    SELECT-OPTIONS:
    SELECTION-SCREEN END OF BLOCK 1.
    2. Goto SE36 and modify the selection views by creating  'CUS'.
    All LBD will not have dynamic selection. If you want you can copy to Z* version and add the following statement to have dynamic selction
    "SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE" XXXX
    Regards,
    Prabhu Rajesh.

Maybe you are looking for