Hide SUbscreen depending on Radio buttons

i have 2 radio buttons in one screen. and  a subscreen in another screen.
i need to hide this subscreen depending on which radiobutton is being selected.
my code is as follows :
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0010.
  CALL SUBSCREEN SUB1 INCLUDING SY-REPID '100'.
PROCESS AFTER INPUT.
  MODULE EXIT_0009 AT EXIT-COMMAND.
  FIELD: WA_PRINT-EXIDV MODULE VAL_EXIDV ON REQUEST.
  CALL SUBSCREEN SUB1.
  MODULE USER_COMMAND_0010.

Hi,
Check the bellow link for your requirement.
how to hide subscreen in module pool
Regards,
Goutam Kolluru.

Similar Messages

  • How to hide Approve and reject radio buttons at item level.

    Hi All,
    On the HOME screen of EBP click Approval link ---> Under Appoval tab under Action Column click the magnifying glass icon ---> a table is displayed with Approve and Reject as two columns which contain radio buttons at item level .
    How can we hide these two columns and the radio buttons?
    Thanks & Regards,
    Anubhav

    Hi Daniel,
    As you said the template bbp sc ui its 120 is to be modified, i also located the code to be changed but when i comment the code for displaying the RBs , i get "Syntax Error in Tempate" dump in IE.
    <!--  manager view  -->
                          `if (gt_scr_itmovr_i-DEDUCT_IND[j].disabled)`
                              `if (gt_scr_itmovr_i-DEDUCT_IND[j] != "X")`
                                  `TD(align="center",valign="middle", class=tdcellclass)`
                                     <img src="`mimeURL(~service="bbpglobal",~language="", ~name="images/icon/checkedradio.gif")`"  border="0">
                                  `TD(align="center",valign="middle", class=tdcellclass)`
                                     <img src="`mimeURL(~service="bbpglobal",~language="", ~name="images/icon/uncheckedradio.gif")`" border="0">
                              `else`                
                                  `TD(align="center",valign="middle", class=tdcellclass)`
                                     <img src="`mimeURL(~service="bbpglobal",~language="", ~name="images/icon/uncheckedradio.gif")`" border="0">
                                  `TD(align="center",valign="middle", class=tdcellclass)`
                                     <img src="`mimeURL(~service="bbpglobal",~language="", ~name="images/icon/checkedradio.gif")`" border="0">
                              `end`
                          `else`
                              `TD(align="center",valign="middle", class=tdcellclass)`
                                 <input type="RADIO" name="gt_scr_itmovr_i-DEDUCT_IND[`j`]" value=""  `if (gt_scr_itmovr_i-DEDUCT_IND[j] != "X")` CHECKED `end;
                                 if ( group_hierarchy_position > -1 ); <!-- are we in a hierarchy group ? -->
                                   if ( group_hierarchy_position != j ); <!-- are we processing a subitem? -->
                                       `on click="jav asc ript:toggleSu bItemApprovalState(`j`)";`
                                     group_last_subitem_position = j;
                                   else; <!-- we are on the top of the group (the hierarchy position) -->
                                     if (GT_SCR_ITMOVR_I-HIER_EXPANDED[j] == "X");
                                       `on click="java scr ipt:setAppro valStateAllSubItems(true, `j`)";`
                                     end;
                                     group_last_subitem_position = j;
                                   end;
                                 end`>
                              `TD(align="center",valign="middle", class=tdcellclass)`
                                 <input type="RADIO" NAME="gt_scr_itmovr_i-DEDUCT_IND[`j`]"  value="X"  `if (gt_scr_itmovr_i-DEDUCT_IND[j] == "X")` CHECKED `end;
                                 if ( group_hierarchy_position > -1 ); <!-- are we in a hierarchy group ? -->
                                   if ( group_hierarchy_position != j ); <!-- are we processing a subitem? -->
                                     `on click="javas cript:tog gleSubItemApprovalState(`j`)";`
                                     group_last_subitem_position = j;
                                   else; <!-- we are on the top of the group (the hierarchy position) -->
                                     if (GT_SCR_ITMOVR_I-HIER_EXPANDED[j] == "X");
                                       `on cli ck="javas cript:setApprovalStateAllSubItems(false, `j`)";`
                                     end;
                                     group_last_subitem_position = j;
                                   end;
                                 end`>
                          `end;
                       end;
                   end`
    I guess the above mentioned code has to be modified but how?
    Thanks a lot,
    Anubhav

  • Select first node in train depending on Radio Buttons

    I followed the document http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf
    to programmatically navigate ADF train
    now i want to select the first node in the train depending on the selected Radio Button
    let us say that i have two radio button "manual", "automatic"
    and i have train consist of 5 nodes
    if I select "manual" then the first node in the train will be node number 1
    if Is select "Automatic" the node number 3 will be the first node

    I found this example http://adfpractice-fedor.blogspot.com/2011/05/dynamic-train-adding-train-stops.html
    I download it and try to run it but it doesn't compile cause missing packages
    these packages are
    oracle.adfinternal.controller.train.TrainStopModel;
    oracle.adfinternal.controller.train.TrainUtils;
    oracle.adf.controller.internal.metadata.TrainStopContainer
    and many others from the same package oracle.adfinternal.controller.train and oracle.adf.controller.internal.metadata
    I googled for these packages and found that they r exist in jar called adf-pageflow-impl.jar
    I founded two jar one called adf-pageflow-impl.jar and the other oracle.adf-pageflow-impl.jar on my version of jdeveloper 11g R2
    i added them to my class path but the problem is still exist

  • Display Hide screen elements on radio button select

    Hi all,
    We have requirement to display some elements if radio button 1 is selected and display others elements if radio button 2 is selected .
    All elements should display/hide on radio button click not on any other button .
    <REMOVED BY MODERATOR>
    Regards,
    Edited by: Alvaro Tejada Galindo on Jun 12, 2008 5:34 PM

    Hi,
    Refer the code below:
    *Radiobuttons for selecting single material or range of BOM components
    SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
    *Radiobutton for selecting material
    PARAMETERS:rb_mat RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND com1.
    *Radiobutton for selecting BOM components
    PARAMETERS:rb_comp RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b1.
    *Enter BOM header and details
    SELECTION-SCREEN BEGIN OF BLOCK sub1 WITH FRAME TITLE text-002.
    PARAMETERS:p_matnr TYPE mara-matnr MODIF ID id1.                 "Material Number
    PARAMETERS:p_werks TYPE marc-werks MODIF ID id1.                 "Plant
    PARAMETERS:p_stlan TYPE mast-stlan MODIF ID id1.                 "BOM usage
    PARAMETERS:p_stlal TYPE mast-stlal MODIF ID id1.                 "Alternative BOM
    PARAMETERS:p_capid TYPE rc29l-capid MODIF ID id1.                "BOM Application
    SELECTION-SCREEN END OF BLOCK sub1.
    *Enter BOM components
    SELECTION-SCREEN BEGIN OF BLOCK sub2 WITH FRAME TITLE text-003.
    SELECT-OPTIONS:s_matnr FOR marc-matnr MODIF ID id2.              "Material Number(BOM component)
    SELECTION-SCREEN END OF BLOCK sub2.
    *Enter document details
    SELECTION-SCREEN BEGIN OF BLOCK sub3 WITH FRAME TITLE text-004.
    *Document number
    PARAMETERS:p_doknr TYPE draw-doknr.
    *Document Type
    PARAMETERS:p_dokar TYPE draw-dokar.
    *Document Part
    PARAMETERS:p_doktl TYPE draw-doktl DEFAULT '000'.
    *Document Version
    PARAMETERS:p_dokvr TYPE draw-dokvr DEFAULT '00'.
    SELECTION-SCREEN END OF BLOCK sub3.
    *Display screen based on selection of radio button
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF rb_mat = 'X'.
          IF screen-group1 = 'ID2'.
            screen-active = 0.
          ENDIF.
        ELSEIF rb_comp = 'X'.
          IF screen-group1 = 'ID1'.
            screen-active = 0.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.

  • Report should executed based on the radio buttons on the selection screen

    Hi everyone,
    Greets....................
    My scenario is I have 2 selection screen blocks on same screen..
    One selection screen block contains input parameters as follows
    Company Code  -  S_BUKRS
    Business Area -  S_GSBER
    Customer Code -  S_KUNNR
    Fiscal Area  -   S_GJAHR
    GL Account - S_HKONT
    Posting Date  -S_ZFBDT
    Ledger Type  -P_RLDNR
    Open Item Key Date -  P_ZFBDT
    Another selection screen block contains 2 radio buttons with the option as follows
    Collection Plan
    *Credit days summary.
    If i click Collection plan the report output should come based on the input parameters in first selection-screen block.
    If i click Credit days summary the report output should come based on the input parameters in first selection-screen block.
    Pls send me the sample code for this.
    Thanks in Advance
    Regards
    Raj kumar

    See the below folling example : it will have radio buttons and depends on radio button it will show output.
    REPORT ZPPR_BOM_INFOL_REPORT no standard page heading
                     line-size 160
                     line-count 60.
    ======================================================================
    Program Name : ZPPR_BOM_INFOL_REPORT
    Description  : This Program would be used for BOM List for a material*
                   and the component's where used list                   *
    Author       : Seshu                                                 *
    Date         : 07/24/2006                                            *
    MODIFICATION HISTORY                                                 *
    DATE    | AUTHOR   | CHANGE #   | DESCRIPTION OF MODIFICATION        *
    |----
    |----
    |----
    *12/04/06 | Seshu    | DEVK921821 | Removed new page for each material *
    ======================================================================
    Table definition                                                    *
    TABLES: mast,
            stko,
            stpo,
            T418,
            makt.
    TYPE - POOLS
    TYPE-POOLS: slis.
    Constants
    constants : c_tcode(4) type c value 'CS03',
                gc_formname_top_of_page TYPE slis_formname
                VALUE 'TOP_OF_PAGE'.
    Variables
    data : v_maktx like makt-maktx,
           wa_stko like stko.
    DATA:
    Objekttyp 'Material'
       otyp_mat(1) TYPE c VALUE '1',
       ootyp_mat(1) TYPE c VALUE 'M',
    Objekttyp 'kein Objekt'
       otyp_noo(1) TYPE c VALUE '2',
    Objekttyp 'Dokument'
       otyp_doc(1) TYPE c VALUE '3',
    Objekttyp 'Klasse'
       otyp_kla(1) TYPE c VALUE '4',
    Objekttyp 'Intramaterial'
       otyp_ntm(1) TYPE c VALUE '5'.
    maximal anzeigbare Menge
    data:   max_num(7)  TYPE p DECIMALS 3 VALUE '9999999999.999',
            ueberl_kz(1) TYPE c VALUE '*',
            min_num(7)  TYPE p DECIMALS 3 VALUE '9999999999.999-',
            b_flag(1) TYPE c VALUE 'X',
            ecfld(250) TYPE c,
            v_flag type c.
    ALV Variables
    DATA: gt_fieldcat TYPE slis_t_fieldcat_alv,
          gs_layout   TYPE slis_layout_alv,
          gs_keyinfo  TYPE slis_keyinfo_alv,
          gt_sp_group TYPE slis_t_sp_group_alv,
          gt_events   TYPE slis_t_event.
    DATA: g_repid LIKE sy-repid.
    DATA: gt_list_top_of_page TYPE slis_t_listheader,
                g_tabname_header TYPE slis_tabname,
                g_tabname_item   TYPE slis_tabname,
                g_save(1) TYPE c,
                gx_variant LIKE disvariant,
                g_variant LIKE disvariant,
                g_default(1) TYPE c,
                g_exit(1) TYPE c.
    Includes                                                             *
    INCLUDE .
    Internal Table Declaration                                           *
    DATA: t_mast LIKE STANDARD TABLE OF mast WITH HEADER LINE.
    *DATA: t_makt LIKE STANDARD TABLE OF makt WITH HEADER LINE.
    BOM Function module Related
    DATA: t_matcat  LIKE cscmat OCCURS 0 WITH HEADER LINE.
    Internal Table for Level by Level Function module
    DATA: t_stb  LIKE stpox OCCURS 0 WITH HEADER LINE.
    Get the Relevant data from FM
    DATA: BEGIN OF hd_tab OCCURS 0,
             stufe LIKE stpox-stufe,
             vwegx LIKE stpox-vwegx,
          END OF hd_tab.
    Final Output
    DATA: BEGIN OF alv_stb OCCURS 0.
            INCLUDE STRUCTURE stpox_alv.
    DATA:   info(3)   TYPE c,
          END OF alv_stb.
    DATA: BEGIN OF stb_orig.
            INCLUDE STRUCTURE stpox.
    DATA: END OF stb_orig.
    DATA: BEGIN OF stb_add.
            INCLUDE STRUCTURE stpol_add.
    DATA: END OF stb_add.
    Internal Table for STPO
    *-- BOM Line item
    TYPES: BEGIN OF ty_stpo,
           stlty TYPE stpo-stlty,
           stlnr TYPE stpo-stlnr,
           stlkn TYPE stpo-stlkn,
           stpoz TYPE stpo-stpoz,
           idnrk TYPE stpo-idnrk,
           meins TYPE stpo-meins,
           menge TYPE stpo-menge, "Component Qty
           END OF ty_stpo.
    DATA: t_stpo TYPE STANDARD TABLE OF ty_stpo WITH HEADER LINE.
    *-- BOM Header
    TYPES: BEGIN OF ty_stko,
           stlty TYPE stko-stlty,
           stlnr TYPE stko-stlnr,
           stlal TYPE stko-stlal,
           stkoz TYPE stko-stkoz,
           bmein TYPE stko-bmein,
           bmeng TYPE stko-bmeng,
           END OF ty_stko.
    DATA: t_stko TYPE STANDARD TABLE OF ty_stko WITH HEADER LINE .
    data : t_makt like makt occurs 0 with header line.
    DATA: BEGIN OF cl_clstab OCCURS 0,                          "YHG079407
             class LIKE klah-class,                             "YHG079407
             klart LIKE klah-klart,                             "YHG079407
             chked LIKE csdata-xfeld,                           "YHG079407
             noobj LIKE csdata-xfeld,                           "YHG079407
             dsply LIKE csdata-xfeld,                           "YHG079407
          END OF cl_clstab.
    *-- Header table
    TYPES: BEGIN OF ty_main_material,
           matnr TYPE mast-matnr, "Material
           werks TYPE mast-werks, "Plant
           maktx TYPE makt-maktx, "Description
           stlal TYPE mast-stlal, "Alternative BOM
           stlnr TYPE stko-stlnr, "BOM Number
           bmein TYPE stko-bmein, "UOM
           bmeng TYPE stko-bmeng, "Base Qty
           expand(1) TYPE c,      "Expanding Field
           END OF ty_main_material.
    DATA: t_main_material TYPE STANDARD TABLE OF ty_main_material WITH
          HEADER LINE.
    *-- Item (Component) Table
    TYPES: BEGIN OF ty_item_material,
           matnr TYPE mast-matnr, "Material
           werks TYPE mast-werks, "Plant
           idnrk TYPE stpo-idnrk, "Component (Material)
           maktx TYPE makt-maktx, "Description
           stlal TYPE mast-stlal, "Alternative BOM
           stlnr TYPE stpo-stlnr, "BOM Number
           meins TYPE stpo-meins, "UOM
           menge TYPE stpo-menge, "Base Qty
           END OF ty_item_material.
    DATA: t_item_material TYPE STANDARD TABLE OF ty_item_material WITH
          HEADER LINE.
    Selection Screen                                                     *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_werks LIKE marc-werks DEFAULT '1000' OBLIGATORY.
    SELECT-OPTIONS s_stlal FOR mast-stlal .
    SELECT-OPTIONS s_stlan FOR mast-stlan DEFAULT '1'.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_bomlst RADIOBUTTON GROUP g1 DEFAULT 'X'.
    SELECT-OPTIONS s_matnr FOR mast-matnr.
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_compon RADIOBUTTON GROUP g1.
    SELECT-OPTIONS: s_idnrk FOR stpo-idnrk.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF BLOCK b1.
    selection-screen begin of block b03 with frame title text-b03.
    selection-screen begin of line.
    selection-screen comment 1(40) text-005.
    parameters: p_all radiobutton group r1 default 'X'.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(40) text-006.
    parameters: p_one radiobutton group r1 .
    selection-screen end of line.
    selection-screen end of block b03.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    PARAMETERS: p_vari LIKE disvariant-variant.
    SELECTION-SCREEN END OF BLOCK b3.
    At slection screen events                                            *
    *-- Process on value request
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
      PERFORM f4_for_variant.
    Intitialisation
    INITIALIZATION.
      g_repid = sy-repid.
      g_tabname_header = 'T_MAIN_MATERIAL'.
      g_tabname_item   = 'T_ITEM_MATERIAL'.
    *-- define keyinformation
      CLEAR gs_keyinfo.
      gs_keyinfo-header01 = 'MATNR'.
      gs_keyinfo-item01   = 'MATNR'.
      PERFORM e03_eventtab_build USING gt_events[].
      PERFORM e04_comment_build  USING gt_list_top_of_page[].
      PERFORM e07_sp_group_build USING gt_sp_group[].
      PERFORM e08_layout_build   USING gs_layout.
    Set Options: save variants userspecific or general
      g_save = 'A'.
      PERFORM variant_init.
    Get default variant
      gx_variant = g_variant.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
           EXPORTING
                i_save     = g_save
           CHANGING
                cs_variant = gx_variant
           EXCEPTIONS
                not_found  = 2.
      IF sy-subrc = 0.
        p_vari = gx_variant-variant.
      ENDIF.
    S T A R T - O F - S E L E C T I O N *******************
    start-of-selection.
      if p_all = 'X'.
    Get the data from MAST and MAKT Table
        if p_bomlst = 'X'.
      Get the data Based On Material #
          perform get_data.
        else.
      Get the data Based On Component
          perform get_data_component.
        endif.
      else.
    Get the Single Level Report
    *-- Moved the fiedl catalog here inorder to change the layout based on
    *-- Selection
        PERFORM e01_fieldcat_init  USING gt_fieldcat[].
        PERFORM select_data.
      endif.
    E N D - O F - S  E  L  E  C  T  I  O  N *******************
    end-of-selection.
      if p_one = 'X'.
        perform alv.
      endif.
    User Command
    at line-selection.
    Interactive to CS03 Transaction
      case sy-ucomm.
        when 'PICK' or 'F2'.
          if not alv_stb-idnrk is initial .
            if not alv_stb-werks is initial.
              if not alv_stb-objty is initial.
                SET PARAMETER ID 'MAT' FIELD alv_stb-idnrk.
                SET PARAMETER ID 'WRK' FIELD alv_stb-werks.
                SET PARAMETER ID 'CSV' FIELD alv_stb-OBJTY.
                call transaction c_tcode and skip first screen.
              endif.
            endif.
          endif.
          clear alv_stb.
      endcase.
    *&      Form  get_data
          Get data from MAST and MAKT Table
    FORM get_data.
      data : wa_lines type sy-index.
      REFRESH : T_MAST,
                t_STB,
                t_MATCAT,
                alv_STB.
      CLEAR : T_MAST,
                t_STB,
                t_MATCAT,
                alv_STB.
    Get the data from MAST Table
    Get all the information from MAST - BOM Table
      SELECT * FROM mast INTO TABLE t_mast WHERE matnr IN s_matnr AND
                                                 werks = p_werks  AND
                                                 stlan IN s_stlan AND
                                                 stlal IN s_stlal.
      describe table t_mast lines  wa_lines.
      if wa_lines is initial.
        Write:/2 'List contains no data'.
        stop.
      endif.
      loop at t_mast.
        clear : v_maktx.
    Start of change  Seshu
    Reason - Remove the new page option
        if sy-tabix ne 1.
          skip 1.
        endif.
    End of Change  Seshu
    Get the material Description
        select single maktx from makt into  v_maktx
                                 where matnr = t_mast-matnr
                                 and   spras = 'E'.
    Get the material details from STKO Table
        select single * from stko into wa_stko
                        where STLTY = 'M'
                        and   STLNR = t_mast-stlnr
                        and   STLAL = t_mast-stlal.
    Main Header for Each Material
        format color 5 on.
        write:/2 'Material',20 'Material Description',65 'Alternative BOM',
             90 'Base Qty', 115 'Base Unit'.
        format color 5 off.
        format color 1 on.
        write:/2 t_mast-matnr,20 v_maktx,65 wa_stko-STLAL, 85 wa_stko-BMENG,
               115 wa_stko-BMEIN.
        format color 1 off.
    Use the Function Module and get the format level by level
        perform get_level_level.
      endloop.
    ENDFORM.                    " get_data
    Top of page                                                  *
    top-of-page.
      perform report_header .
    *&      Form  report_header
          text
    -->  p1        text
    <--  p2        text
    FORM report_header.
      new-page line-size 160 .
      format color col_heading intensified on.
      write:/ sy-uline(160) .
    *--- Write Company Name.
      perform calc_col_and_write using    text-h00
                                          sy-linsz.
    *--- Write Report Title.
      perform calc_col_and_write using    sy-title
                                          sy-linsz.
    *--- Write User Id, Date / Time, Program Id, Page etc.
      perform write_other_hdr_details.
      write:/ sy-uline(160) .
    ENDFORM.                    " report_header
    *&      Form  calc_col_and_write
          text
         -->P_TEXT_H00  text
         -->P_SY_LINSZ  text
    FORM calc_col_and_write USING    P_TEXT
                                     P_LINSZ.
      data: col1 type i,
             col2 type i,
              len  type i,
              str  type i.
      str  = strlen( p_text ).
      col1 = ( p_linsz / 2 ) - ( str / 2 ) .
      len  = p_linsz - col1 - 2.
      write: at  /1  '|'.
      write: at  col1 p_text,
             at  sy-colno(len) space.
      write  at  160 '|'.
    ENDFORM.                    " calc_col_and_write
    *&      Form  write_other_hdr_details
          text
    -->  p1        text
    <--  p2        text
    FORM write_other_hdr_details.
      data: col1 type i,
              col2 type i,
              len  type i.
      col1 = 3.
      write:/1 '|'.
      write: at  col1 'UserId  : ',
                      sy-uname.
      len = sy-linsz - 1.
      write at sy-colno(len) space.
      col2 = sy-linsz - 18.
      write: at col2 'Date: ',
                     sy-datum mm/dd/yyyy.
      write: at sy-linsz '|'.
      write:/1 '|'.
      write: at  col1 'ReportId: ',
                      sy-repid.
      write at sy-colno(len) space.
      col2 = sy-linsz - 18.
      write: at col2 'Page: ',
                      sy-pagno.
      write: at sy-linsz '|'.
    ENDFORM.                    " write_other_hdr_details
    *&      Form  get_data_component
          Get the data based on Component level
    FORM get_data_component.
      data wa_lines type i.
    *-- Get the BOM item details
      SELECT  stlty stlnr stlkn stpoz idnrk meins menge
              FROM stpo
              INTO TABLE t_stpo
      WHERE   idnrk IN s_idnrk.
      IF sy-subrc = 0.
        CLEAR wa_lines.
        DESCRIBE TABLE t_stpo LINES wa_lines.
        IF wa_lines > 0.
          SELECT  stlty stlnr stlal stkoz bmein bmeng
                  FROM stko
                  INTO TABLE t_stko
                  FOR ALL ENTRIES IN t_stpo
          WHERE stlnr = t_stpo-stlnr.
          CLEAR wa_lines.
          DELETE ADJACENT DUPLICATES FROM t_stko COMPARING ALL FIELDS.
          DESCRIBE TABLE t_stko LINES wa_lines.
          IF wa_lines > 0.
    *-- Get the BOM item details
            SELECT * FROM mast INTO TABLE t_mast FOR ALL ENTRIES IN t_stko
                                                WHERE werks = p_werks  AND
                                                  stlnr = t_stko-stlnr
                                                  and stlal in s_stlal.
          ENDIF.
        ENDIF.
      else.
        Write:/2 'List contains no data'.
        stop.
      endif.
      loop at t_mast.
        clear : v_maktx.
    Start of change  Seshu
    Reason - Remove the new page option
        if sy-tabix ne 1.
          skip 1.
        endif.
    End of change    Seshu
    Get the material Description
        select single maktx from makt into  v_maktx
                                 where matnr = t_mast-matnr
                                 and   spras = 'E'.
    Get the material details from STKO Table
        select single * from stko into wa_stko
                        where STLTY = 'M'
                        and   STLNR = t_mast-stlnr
                        and   STLAL = t_mast-stlal.
    Main Header for Each Material
        format color 5 on.
        write:/2 'Material',20 'Material Description',65 'Alternative BOM',
             90 'Base Qty', 115 'Base Unit'.
        format color 5 off.
        format color 1 on.
        write:/2 t_mast-matnr,20 v_maktx,65 wa_stko-STLAL, 85 wa_stko-BMENG,
               115 wa_stko-BMEIN.
        format color 1 off.
    Use the Function Module and get the format level by level
        perform get_level_level.
        clear : t_mast.
      endloop.
    ENDFORM.                    " get_data_component
    *&      Form  obj_ident
          text
    FORM obj_ident.
    weder Mat noch Doc
      CHECK: T_stb-objty NE otyp_mat,
             T_stb-objty NE ootyp_mat,
             T_stb-objty NE otyp_doc,
             T_stb-objty NE otyp_ntm.
    ?T418-WA schon ok
    nein
      IF T_stb-postp NE t418-postp.
        T418 einlesen
        PERFORM t418_lesen USING T_stb-postp.
      ENDIF.
      PERFORM cl_clstab_maint.
    ?MatNr-Eingabe bei diesem PosTyp moeglich
      und keine Textposition
    trifft zu
      IF     t418-matin NE '-'
         AND t418-txpos IS INITIAL.
        aktuelles Objekt ist Material NLAG
        T_stb-objty = '1'.
        PosKurztext in ObjKurztext uebernehmen.
        T_stb-ojtxp = T_stb-potx1.
        MODIFY T_stb.
      ELSE.
        IF T_stb-objty IS INITIAL.
          T_stb-objty = '2'.
          MODIFY T_stb.
        ENDIF.
      ENDIF.
    ENDFORM.                    " obj_ident
    *&      Form  t418_lesen
          text
         -->P_T_STB_POSTP  text
    FORM t418_lesen USING   lkl_postp LIKE stpo-postp.
    T418-WA initialisieren
      CLEAR:
         t418.
    Key angeben
      t418-postp = lkl_postp.
    PosTypDefinition lesen
      READ TABLE t418.
    ENDFORM.                    " t418_lesen
    *&      Form  cl_clstab_maint
          text
    FORM cl_clstab_maint.
    nur fuer Klassenpositionen
      CHECK t_STB-OBJTY EQ OTYP_KLA.
    Teilkey der Klassenpositionentabelle
      CL_CLSTAB-CLASS = t_STB-CLASS.
      CL_CLSTAB-KLART = t_STB-KLART.
    Klassenpositionentabelle lesen
      READ TABLE CL_CLSTAB
         WITH KEY CL_CLSTAB(21)
         BINARY SEARCH.
    aktuelle Klassenposition bereits in Klassenpositionentabelle
    nein
      IF SY-SUBRC <> 0.
        Klassenposition in Klassenpositionentabelle hinzufuegen
        INSERT CL_CLSTAB INDEX SY-TABIX.
      ENDIF.
    ENDFORM.                    " cl_clstab_maint
    *&      Form  alv_stb_prep
          Printing the data as LEVEL BY LEVEL
    FORM alv_stb_prep.
      CLEAR:
          alv_stb,
          stb_orig,
          stb_add.
      IF t_stb-hdnfo IS INITIAL.
        stb_orig = t_stb.
        IF t_stb-mngko >= max_num.
          stb_add-ovfls = ueberl_kz.
        ELSE.
          IF t_stb-mngko <= min_num.
            stb_add-ovfls = ueberl_kz.
          ELSE.
            CLEAR: stb_add-ovfls.
          ENDIF.
        ENDIF.
        IF NOT t_stb-xtlnr IS INITIAL.
          stb_add-bomfl = b_flag.
        ENDIF.
        IF    NOT t_stb-knobj IS INITIAL
           OR NOT t_stb-class IS INITIAL
           OR NOT t_stb-kzclb IS INITIAL.
          stb_add-knofl = 'X'.
        ENDIF.
      ELSE.
        CHECK t_stb-stufe > 1.
        alv_stb-info = 'C30'.
        IF t_stb-ttidx <> t_matcat-index.
          READ TABLE t_matcat INDEX t_stb-ttidx.
        ENDIF.
        stb_orig-hdnfo = t_stb-hdnfo.
        stb_orig-stufe = t_stb-stufe - 1 .
        stb_orig-ojtxp = t_stb-ojtxb.
        IF NOT t_stb-altst IS INITIAL.
          stb_orig-stlal = t_stb-stlal.
          IF stb_orig-stlal(1) EQ '0'.
            stb_orig-stlal(1) = ' '.
          ENDIF.
        ENDIF.
        stb_orig-idnrk = t_matcat-matnr.
      ENDIF.
      CLEAR:
        stb_add-dobjt,
        stb_add-objic.
      CASE t_stb-objty.
        WHEN otyp_mat.
          WRITE: stb_orig-idnrk TO ecfld.
          stb_add-objic = '@A6@'.
        WHEN 'M'.
          WRITE: stb_orig-idnrk TO ecfld.
          stb_add-objic = '@A6@'.
        WHEN otyp_noo.
          WRITE: stb_orig-potx1 TO ecfld.
          stb_add-objic = '@0Q@'.
        WHEN otyp_doc.
          write stb_orig-doknr to ecfld.                        "note 489354
          IF ecfld CP '*# '. ENDIF.                             "note 489354
          sy-fdpos = sy-fdpos + 1.                              "note 489354
          CONCATENATE
    *d      stb_orig-doknr                                      "note 489354
            stb_orig-dokar
            stb_orig-doktl
            stb_orig-dokvr
    *d      INTO ecfld                                          "note 489354
            INTO ecfld+sy-fdpos                                 "note 489354
            SEPARATED BY space.
          stb_add-objic = '@AR@'.
        WHEN otyp_kla.
          CONCATENATE
            stb_orig-class
            stb_orig-klart
            INTO ecfld
            SEPARATED BY space.
          stb_add-objic = '@7C@'.
        WHEN otyp_ntm.
          WRITE: stb_orig-intrm TO ecfld.
        WHEN OTHERS.
      ENDCASE.
    *d CONDENSE ecfld.                                          "note 515408
      stb_add-dobjt = ecfld(40).
      CLEAR: ecfld.
      WRITE stb_orig-stufe TO stb_add-dstuf NO-SIGN.
    *d  MOVE-CORRESPONDING stb_orig TO alv_stb.                 "note 331962
      MOVE-CORRESPONDING stb_add TO alv_stb.
      MOVE-CORRESPONDING stb_orig TO alv_stb.                   "note 331962
      APPEND alv_stb.
    ENDFORM.                    " alv_stb_prep
    *&      Form  get_level_level
          text
    FORM get_level_level.
      REFRESH : T_STB,
                T_MATCAT,
                ALV_STB.
      CLEAR : T_STB,
              T_MATCAT,
              ALV_STB.
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
           EXPORTING
                capid                 = 'PP01'
                datuv                 = sy-datum
                mktls                 = 'X'
                mehrs                 = 'X'
                mtnrv                 = t_mast-matnr
                stlal                 = '01'
                stlan                 = '1'
                stpst                 = 0
                svwvo                 = 'X'
                werks                 = p_werks
                vrsvo                 = 'X'
           TABLES
                stb                   = t_stb
                matcat                = t_matcat
           EXCEPTIONS
                alt_not_found         = 1
                call_invalid          = 2
                material_not_found    = 3
                missing_authorization = 4
                no_bom_found          = 5
                no_plant_data         = 6
                no_suitable_bom_found = 7
                conversion_error      = 8
                OTHERS                = 9.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CLEAR: hd_tab.
            Entry der KlassenstatusTab. initialisieren
             cl_clstab,
            Entry 'Objekte von Klassen' initialisieren
             cl_objmemo.
      REFRESH: hd_tab.
      SORT t_matcat BY index ASCENDING.
    Get the All levels
      loop at t_stb.
        IF NOT t_stb-hdnfo IS INITIAL.
          EXIT.
        ENDIF.
    Object Identification
        PERFORM obj_ident.
        READ TABLE hd_tab
            WITH KEY stufe = t_stb-stufe
                     vwegx = t_stb-vwegx
            BINARY SEARCH
            TRANSPORTING NO FIELDS.
        ?gibt es diesen Satz schon
        nein
        IF sy-subrc <> 0.
           dann in SFP-Infosatzverweistab. aufnehmen
    *d       APPEND HD_TAB.                                       "HGH054648
          hd_tab-stufe = t_stb-stufe.
                                                                "HGH054648
          hd_tab-vwegx = t_stb-vwegx.
                                                                "HGH054648
          INSERT hd_tab                                         "HGH054648
            INTO hd_tab                                         "HGH054648
            INDEX sy-tabix.                                     "HGH054648
           PosNr initialisieren
          CLEAR: t_stb-posnr.
           SFP-InfosatzKz setzen
          t_stb-hdnfo = 'X'.
            stb-objty = otyp_mat.
                                                                "HGE246532
           als SFP-Infosatz in die STB aufnehmen
          append t_stb.
        ENDIF.
    *del  ENDIF.
        clear t_stb.
      endloop.
      SORT t_stb ASCENDING BY stufe
                  index ASCENDING
    *del        POSNR ASCENDING.                                  "HGC062735
                  posnr ASCENDING                               "HGC062735
                  hdnfo DESCENDING.
      LOOP AT t_stb.
        T_stb-index = sy-tabix.
        MODIFY T_stb.
        PERFORM alv_stb_prep.
      ENDLOOP.
    Displays the Value as Level by Level
      loop at ALV_stb.
        if sy-tabix = 1.
          format color 3 on.
          write:/2 'Level',12 'Item',22 'Component',
          42 'Material Description',82 'Base Qty',
          107 'Base Unit',120 'Assembly Indicator'.
          format color 3 on.
        endif.
        if alv_stb-MEINs is initial.
          v_flag = 'X'.
        endif.
        if v_flag = 'X'.
          format color 5 on.
          write:/2 ALV_stb-STUFE,12 alv_stb-posnr,22 alv_stb-idnrk,
                 42 alv_stb-OJTXP.
          format color 1 off.
        else.
          if alv_stb-STUFE = '1'.
            format color 1 on.
            write:/2 ALV_stb-STUFE,12 alv_stb-posnr,22 alv_stb-idnrk,
                   42 alv_stb-OJTXP,72 alv_stb-mngko,
                   107 alv_stb-MEINs, 120 alv_stb-bomfl .
            format color 1 off.
          elseif alv_stb-STUFE = '2'.
            format color 2 on.
            write:/2 alv_stb-STUFE,12 alv_stb-posnr,22 alv_stb-idnrk,
                   42 alv_stb-OJTXP,72 alv_stb-mngko,
                   107 alv_stb-MEINs,120 alv_stb-bomfl.
            format color 2 off.
          elseif alv_stb-STUFE = '3'.
            format color 3 on.
            write:/2 alv_stb-STUFE,12 alv_stb-posnr,22 alv_stb-idnrk,
                    42 alv_stb-OJTXP,72 alv_stb-mngko,
                    107 alv_stb-MEINs,120 alv_stb-bomfl .
            format color 3 off.
          elseif alv_stb-STUFE = '4'.
            format color 4 on.
            write:/2 alv_stb-STUFE,12 alv_stb-posnr,22 alv_stb-idnrk,
                    42 alv_stb-OJTXP,72 alv_stb-mngko,
                    107 alv_stb-MEINs,120 alv_stb-bomfl .
            format color 4 off.
          elseif alv_stb-STUFE = '5'.
            format color 5 on.
            write:/2 alv_stb-STUFE,12 alv_stb-posnr,22 alv_stb-idnrk,
                    42 alv_stb-OJTXP,72 alv_stb-mngko,
                    107 alv_stb-MEINs,120 alv_stb-bomfl .
            format color 5 off.
          elseif alv_stb-STUFE = '6'.
            format color 7 on.
            write:/2 alv_stb-STUFE,12 alv_stb-posnr,22 alv_stb-idnrk,
                   42 alv_stb-OJTXP,72 alv_stb-mngko,
                   107 alv_stb-MEINs,120 alv_stb-bomfl.
            format color 6 off.
          elseif alv_stb-STUFE = '7'.
            format color 7 on.
            write:/2 alv_stb-STUFE,12 alv_stb-posnr,22 alv_stb-idnrk,
                   42 alv_stb-OJTXP,72 alv_stb-mngko,
                   107 alv_stb-MEINs,120 alv_stb-bomfl .
            format color  7 off.
          else.
            format color 1 on.
            write:/2 alv_stb-STUFE,12 alv_stb-posnr,22 alv_stb-idnrk,
                    42 alv_stb-OJTXP,72 alv_stb-mngko,
                    107 alv_stb-MEINs,120 alv_stb-bomfl .
            format color  1 off.
          endif.
        endif.
        hide: alv_stb.
        clear : alv_stb.
        clear v_flag.
      endloop.
    ENDFORM.                    " get_level_level
    *&      Form  f4_for_variant
          text
    FORM f4_for_variant.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
             EXPORTING
                  is_variant          = g_variant
                  i_save              = g_save
                  i_tabname_header    = g_tabname_header
                  i_tabname_item      = g_tabname_item
              it_default_fieldcat =
             IMPORTING
                  e_exit              = g_exit
                  es_variant          = gx_variant
             EXCEPTIONS
                  not_found = 2.
      IF sy-subrc = 2.
        MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        IF g_exit = space.
          p_vari = gx_variant-variant.
        ENDIF.
      ENDIF.
    ENDFORM.                    " f4_for_variant
          FORM E03_EVENTTAB_BUILD                                       *
    -->  E03_LT_EVENTS                                                 *
    FORM e03_eventtab_build USING e03_lt_events TYPE slis_t_event.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                i_list_type = 0
           IMPORTING
                et_events   = e03_lt_events.
      READ TABLE e03_lt_events WITH KEY name = slis_ev_top_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE gc_formname_top_of_page TO ls_event-form.
        APPEND ls_event TO e03_lt_events.
      ENDIF.
    ENDFORM.
          FORM E04_COMMENT_BUILD                                        *
    -->  E04_LT_TOP_OF_PAGE                                     

  • How to check Radio buttons with Differfent button values

    Good Day,
    I am currently trying to write a script that would hide 5 of 6 radio buttons
    I have a radio button called "3. Transfer"
    with values of :
         Yes;
         Supp;
         Reg; and
         do_not_transfer
    as well I have a drop down called "REL.ITEM"
    with values of
              3(A);
              3(B);
              4(A);
              4(B); and
              4(C)
    I know how to get the value of the box and manipulate other fields
    like
    //START
    var transfer = getField("3. Transfer").value
    var relitem = getField("REL.ITEM").value
    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
         getField("a. recommend").checkThisBox(0,true);
         getField("a. recommend").display = display.visible
        getField("a. I do not recommend").checkThisBox(0,false);
        getField("a. I do not recommend").display = display.hidden
    else if (transfer = "do_not_transfer")
         getField("a. recommend").checkThisBox(0,false);
         getField("a. recommend").display = display.hidden
         getField("a. I do not recommend").checkThisBox(0,ftrue);
         getField("a. I do not recommend").display = display.visible
    //END
    I would like to make it so that if REL.ITEM != 4(A); 4(B); 4(C) that the radio box's with values of "Yes", "Supp" and "Reg" are hidden while "do_not_transfer" is still displayed and checked.
    I've been going through forums, google and acrobat documentation and I can't seem to find what I'm looking for.
    Thanks for your help in advance.

    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    This should be:
    if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    Similarly,
    else if (transfer = "do_not_transfer")
    should be:
    else if (transfer == "do_not_transfer")
    In order to work with an individual widgets of a form field, obtain an object that represents the widget using the getField method as specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html

  • Queries are not executing according to radio button

    hi everyone
    i am getting problem in this code
    ths problem is :
    there are two queries ,depending on radio button the queries willll exceute .everything is ok ,but only last query is exceuting ,my code is written below
    i want :if user select a first radio button and click on the view button first query has to be diplayed or excuted .else if user selet second radio button and click the view button second query should be dipalyed .please help me
    <SCRIPT LANGUAGE=JavaScript>
    display()
    somefunction();
    check();
    <FORM NAME=form1 method=post>
    <input type="radio" value="1" name="Fee" checked= true>
    <input type="radio" value="2" name="Fee" >
    <input type="submit" value=" View " name="B1" onclick="display();" >
    function check()
    if(document.form1.Fee[0].checked == true)
    alert(document.form1.Fee[0].value);
    <%
    strsql1="select * from buyer_master ";
    // rs=statement.executeQuery(strsql1);
    %>
    else if(document.form1.Fee[1].checked == true)
    alert(document.form1.Fee[1].value);
    <%
    strsql1="select * from emd_master";
    // rs=statement.executeQuery(strsql1);
    %>
    out.print(strsql1);

    if dont know the anwer,keep ur mouth shut.Whether we do or don't know the answer is beside the point. You asked in the wrong place. So why don't you keep YOUR mouth shut and f&#117;ck off.

  • BAPI to select a radio button in subscreen of standard screen

    Hi All,
        I have a requirement ,Please help me in solving this.
    I have created a subscreen in sales order which contains 4 radio buttons.
    Now i need to write a BAPI to change to radio button B from radio button A.
    Can some one explain me how to do this.
    Thanks in Advance,
    Sri.

    if its only the radio button change write a BDC and update it... if there is some thing else...try using      BAPI_CUSTOMERCONTRACT_CHANGE u have EXTENSIONIN in tables tab... search the forums on EXTENSIONIN usage and codeing it...
    J@Y

  • Calling subscreen on click of radio button

    Hi,
    I am creating a module pool program , in which on click of a radio butto to 'YES' a subscreen should appear ( on the main screen) with few fields so that the user can input values of it.
    But I am having proble in calling the subscreen in PAI event.Actually I think it should be something like this
    Module user_command.
      case sy-ucomm.
       when rb_yes = 'X'
        { CALL SUBSCRREN CODE
    ENDIF.
    Can this be done? I f yes how? I only know how to call subscreen in PBO, but the syntax for calling subscrren is different in PAI i think.

    Hi,
    Try doing this.
    This is your flow logic in the main screen  to call the Subscreen's PBO
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0110.
    CALL SUBSCREEN TAB1_REF1 INCLUDING 'ZTRIAL' '0111'.
    In the PAI of the main screen,
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0110.
    CALL SUBSCREEN TAB1_REF1.
    Assign a function code to your radio button.
    Layout -> Attributes -> Function Code
    In the TOP include,
    DATA: v_dynnr type sy-dynnr.
    In module USER_COMMAND_0110.
    if p_rad = 'X'.
       v_dynnr = '0111'.
    else.
      v_dynnr =  ' '
    endif.
    You can check this for your reference
    [http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm]

  • Hide Input(s) Until A Radio Button or Checkbox is selected

    I've got a CFFORM I'm sculpting for my family's genealogy.  The first section is for people's names.  I would like to hide teh inputs from teh user, unless a radio button value is selected.  Most people are not adopted, but occasionally, a person may need to enter a persons's biological name as well sas their adopted name.  Starting out, the form is supposed to display only FirstName, MiddleName, and LastName, but if the radio button is selected for "This person is adopted" I wish for the inputs to display for adopted information.  Is there Coldfusion that will do this?
    <CFFORM..etc.etc.>
    <TR>
        <TD><B>Biological First Name:</B></TD>
       <TD><CFINPUT
        TYPE="text"
       NAME="txt_p_nm_bio_f"
       SIZE="18"
       MAXLENGTH="18"
       TABINDEX=1
       id="txt_p_nm_bio_f"
       onBlur="javascript:changeCase(this.form.txt_p_nm_first)">
      </TD>
    </TR><TR>
      <TD><B>Biological Middle Name:</B></TD>
      <TD><CFINPUT
       TYPE="text"
       NAME="txt_p_nm_bio_m"
       SIZE="18"
       MAXLENGTH="18"
       TABINDEX=2
       id="txt_p_nm_bio_m"
       onBlur="javascript:changeCase(this.form.txt_p_nm_bio_m)">
      </TD>
    </TR><TR>
      <TD><B>Biological 2nd Middle Name:</B></TD>
      <TD><CFINPUT
       TYPE="text"
       NAME="txt_p_nm_bio_m2"
       SIZE="18"
       MAXLENGTH="18"
       TABINDEX=3
       id="txt_p_nm_bio_m2"
       onBlur="javascript:changeCase(this.form.txt_p_nm_bio_m2)">
      </TD>
    </TR><TR>
      <TD><B>Biological Last Name:</B></TD>
      <TD><CFINPUT
       TYPE="text"
       NAME="txt_p_nm_bio_l"
       SIZE="18"
       MAXLENGTH="18"
       TABINDEX=4
       id="txt_p_nm_bio_l"
       onBlur="javascript:changeCase(this.form.txt_p_nm_bio_l)">
      </TD>
    </TR><TR>
      <TD><B>Biological Maiden Name:</B></TD>
      <TD><CFINPUT
       TYPE="text"
       NAME="txt_p_nm_bio_mdn"
       SIZE="18"
       MAXLENGTH="18"
       TABINDEX=5
       id="txt_p_nm_bio_mdn"
       onBlur="javascript:changeCase(this.form.txt_p_nm_bio_mdn)">
      </TD>
    </TR><TR>
      <TD><B>Male:</B>
      <CFINPUT
       TYPE="radio"
       NAME="rdo_p_g"
       LABEL="Male"
       VALUE="M">
      </TD>
      <TD COLSPAN="3"><B>Female:</B>
      <CFINPUT
       TYPE="radio"
       NAME="rdo_p_g"
       LABEL="Female"
       VALUE="F">
      </TD>
    </TR>
    <!--- radio buttons are linked to text field in the database, thus the letter "A" or "B" --->
    <TR>
      <TD><B>Biological:</B>
      <CFINPUT
       TYPE="radio"
       NAME="rdo_p_a_b"
       VALUE="A">
      <TD COLSPAN="3"><B>Adopted:</B>
      <CFINPUT
       TYPE="radio"
       NAME="rdo_p_a_b"
       VALUE="B">
      </TD>
    </TR>
    <!--- 'hoping to hide the following three inputs and labels, if the radio button selection is biological. --->
    <TR>
      <TD><B>Adopted First Name:</B></TD>
      <TD><CFINPUT
       TYPE="text"
       NAME="txt_p_nm_adp_f"
       SIZE="18"
       MAXLENGTH="18"
       TABINDEX=1
       id="txt_p_nm_adp_f"
       onBlur="javascript:changeCase(this.form.txt_p_nm_first)">
      </TD>
    </TR>
    <TR>
      <TD><B>Adopted Middle Name:</B></TD>
      <TD><CFINPUT
       TYPE="text"
       NAME="txt_p_nm_adp_m"
       SIZE="18"
       MAXLENGTH="18"
       TABINDEX=2
       id="txt_p_nm_adp_m"
       onBlur="javascript:changeCase(this.form.txt_p_nm_adp_m)">
      </TD>
    </TR>
    <TR>
      <TD><B>Adopted Last Name:</B></TD>
      <TD><CFINPUT
       TYPE="text"
       NAME="txt_p_nm_adp_l"
       SIZE="18"
       MAXLENGTH="18"
       TABINDEX=4
       id="txt_p_nm_adp_l"
       onBlur="javascript:changeCase(this.form.txt_p_nm_adp_l)">
      </TD>
    </TR>
    <TR>
      <TD><B>Adopted Maiden Name:</B></TD>
      <TD><CFINPUT
       TYPE="text"
       NAME="txt_p_nm_bio_adp"
       SIZE="18"
       MAXLENGTH="18"
       TABINDEX=5
       id="txt_p_nm_bio_adp"
       onBlur="javascript:changeCase(this.form.txt_p_nm_adp_mdn)">
      </TD>
    </TR>
    Submit, reset, /CFFORM etc.etc.

    Group the form fields into appropriate DIVs. Then use the style property Display or Visibility to show or hide a DIV. Google and find out more.
    The major difference between display="none" and visibility="hidden" is that, when visibility is set to hidden, the hidden element still occupies its place in the layout of the page. Whereas, your page may experience a jumping motion when the display is changed to none.
    Here follows an example for you to play with
    <script type="text/javascript">
    <!--
        function toggleDisplay() {
           var elem = document.getElementById('a_fields');
           if(elem.style.display == 'block') {
              elem.style.display = 'none';
           else {
              elem.style.display = 'block';
        function toggleVisibility() {
           var elem = document.getElementById('b_fields');
           if (elem.style.visibility=="hidden"){
            elem.style.visibility="visible";
        else {
            elem.style.visibility="hidden";
    //-->
    </script>
    <form name="f" id="f">
    <div id="a_fields">
    A1: <input type="text" name="a1"><br>
    A2: <input type="text" name="a2"><br>
    </div>
    <div id="b_fields">
    B1: <input type="text" name="b1"><br>
    B2: <input type="text" name="b2"><br>
    </div>
    <input type="checkbox" name="toggle_A" onclick="toggleDisplay()"><br>
    <input type="radio" name="toggle_B" onchange="toggleVisibility()">
    <input type="radio" name="toggle_B" onchange="toggleVisibility()">
    </form>

  • 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

  • Change a STATE depending in a radio button

    HI everyone.
    I need to do this little thing, but is have been a real pain
    in the neck.
    I have a radio buttons and depending in wich selection is
    pressed, the state the user will go.
    Example..
    Select your favourite Tv Show:
    ( ) 4400
    (o) Lost
    ( ) Prison Break
    Submit
    When the user presses submit, he will be sent to LOST state.
    I mean, currentState='lost'
    Or send him to state "prison" if he choose Prison Break.
    Like currentState='userselection' or something....
    Please someone help doing this!! Please!!
    Thanks!

    well it would be the same thing i posted just triggered by a
    button or something like that. You can call
    radiogroup1.selectedValue.toString(); at any time from any function
    and if there is a selection you will get the string from the radio
    button.
    <mx:Script>
    <![CDATA[
    private function changeStateRadio():void {
    currentState= radiogroup1.selectedValue.toString();
    ]]>
    </mx:Script>
    <mx:RadioButtonGroup id="radiogroup1"/>
    <mx:RadioButton x="211.0" y="479.0" label="LOST"
    groupName="radiogroup1" click="{changeStateRadio()}"/>
    <mx:RadioButton x="211.0" y="503.0" label="Prison Rape"
    groupName="radiogroup1"/>
    <mx:Button click="{changeStateRadio()}"
    label="Vote"/>

  • Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Yes, one needs to use some custom JavaScript code to control the other fields' properties.
    Disabling (graying-out) Form Fields by Thom Parker

  • Simple "show / hide" script using radio buttons, need a little help

    Hello;
    I have a place in my form where I need to swap out what type of form you need to fill out in an area. If I don't do this, it makes the page look over crowded and if I pass it off to a 2 or 3 step process, it doesn't have enough info in each section to be worth it. It's either one or the other.
    Right now, this code works nice. click on a radio button, and the form section appears and disappears. What I am trying to make this do it when the page loads, one of the radio buttons is selected and one of the form sections is visible. Then if you click on the other radio button, it swaps them.
    can anyone help me tweek this code so one of the buttons is selected all the time?
    here is my script.
    <style type="text/css">
    .showHide {
    position: absolute;
    background-color: #f1f1f1;
    width: 350px;
    padding: 1px;
    color: black;
    border: #999999 2px dashed;
    display: none;
    </style>
    <script language="JavaScript">
    function setVisibility(id, visibility) {
    document.getElementById(id).style.display = visibility;
    </script>
    <form>
    <input name=type type=radio onclick="setVisibility('sub3', 'inline');setVisibility('sub4','none');" value='male' checked>Selection 1
    <input type=radio name=type value='female' onclick="setVisibility('sub3', 'none');setVisibility('sub4','inline');";>Selection 2
    <div id="sub3" class="showHide">Selection 1 content</div>
    <div id="sub4" class="showHide">Selection 2 content</div>
    </form>
    That's the short of it with out dumping tons of other code on anyone.
    Thank you

    That's what I need. I tweeked it a little and now it doesn't work. Can
    you help me add one last option? I need 3 buttons that intereact leaving the red one still visible when it loads unless you click on
    one of the others. this is what I'm trying to do:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    $('#divGrey').hide();
    $('#divRed').show();
    $('#divBlue').hide();
    $('.grey').click(function(){
    //$(this).hide();
    $('#divGrey').show();
    $('#divRed').hide();
    $('#divBlue').hide();
    $('.red').click(function(){
    //$(this).hide();
    $('#divGrey').hide();
    $('#divRed').show();
    $('#divBlue').hide();
    $('.blue').click(function(){
    //$(this).hide();
    $('#divGrey').hide();
    $('#divRed').hide();
    $('#divBlue').show();
    </script>
    <style type="text/css">
    #divGrey {
    position: absolute;
    background-color: #f1f1f1;
    width: 350px;
    padding: 1px;
    color: black;
    border: #999999 2px dashed;
    display: none;
    #divRed {
    position: absolute;
    background-color: #f1f1f1;
    width: 350px;
    padding: 1px;
    color: black;
    border: #999999 2px dashed;
    display: none;
    #divBlue {
    position: absolute;
    background-color: #f1f1f1;
    width: 350px;
    padding: 1px;
    color: black;
    border: #999999 2px dashed;
    display: none;
    </style>
    <input type="radio" name="Radio1"  value="" id="RadioGroup1_1" checked="checked"  />Selection 1
    <input type="radio" name="Radio1"  value="checked" id="RadioGroup1_0" />Selection 2
    <input type="radio" name="Radio1"  value="checked" id="RadioGroup1_2" />Selection 3
    <div id="divRed">Selection 1 content</div>
    <div id="divGrey">Selection 2 content</div>
    <div id="divBlue">Selection 3 content</div>
    it isn't doing anything right now, and no errors either that I can see. Any ideas?

  • Hide radio button in run time

    Hi expert,
    kindly help me for hide radio button in run time for web dynpro kindly give me on example .
    thank's and regard's
    Vikash

    hi.
    For Visibility :
    ->  bind its Visible Property to the context of type WDUI_VISIBILITY.
    -> Now make it visible or invisible according to your requirement.
    using Code Wizard ( Control + F7) , Set the particular context.
    For visible Set as 02.
    For invisible Set as 01.
    code for your ref ( Generated using Code Wizard- Set the particular context attribute. )
    In below code : radiobutton is binded with CA_VIS of type WDUI_VISIBILITY
    DATA lo_el_context TYPE REF TO if_wd_context_element.
    DATA ls_context TYPE wd_this->element_context.
    DATA lv_ca_vis TYPE wd_this->element_context-ca_vis.
    get element via lead selection
    lo_el_context = wd_context->get_element( ).
    @TODO handle not set lead selection
    IF lo_el_context IS INITIAL.
    ENDIF.
    @TODO fill attribute
    lv_ca_vis = 1.
    set single attribute
    lo_el_context->set_attribute(
    name = `CA_VIS`
    value = 02 ).
    I hope it helps.
    Check the sample Wedbynpro Component WDR_TEST_events . This is having the complete UI element functionalities in WDA.
    Thanx.
    Edited by: Saurav Mago on May 1, 2009 1:53 PM

Maybe you are looking for