How to hide parameters AUTOMATICLY based on radio buttons being pressed

I have multiple radio buttons and with each radio button I have parameters that appear on screen for user to enter data.   Is there a way to make the selection blocks appear and disappear automatily based on the user  pressing the radio button?
My current coed works only if I press the enter key but not automatily when the radio button is pressed.

hi, have a look this example, it works as u want.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETERS: r_ps TYPE c RADIOBUTTON GROUP rd DEFAULT 'X' USER-COMMAND abcd, "radio button server
               r_as TYPE c RADIOBUTTON GROUP rd . "radio button for application server
SELECTION-SCREEN END OF BLOCK blk2.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS: p_pfile TYPE rlgrap-filename MODIF ID ccc, "presentation server input file
                p_afile TYPE rlgrap-filename MODIF ID aaa. "application server input file
SELECTION-SCREEN END OF BLOCK blk1.
AT SELECTION-SCREEN OUTPUT.
  IF r_ps = 'X' .
    LOOP AT SCREEN.
      CASE screen-group1.
        WHEN 'CCC'.
          screen-input = 1.
          screen-invisible = 0.
          MODIFY SCREEN.
      WHEN 'AAA'.
          screen-input = 0.
          screen-invisible = 1.
          MODIFY SCREEN.
      ENDCASE.
    ENDLOOP.
  ELSE.
    IF r_as = 'X'.
      LOOP AT SCREEN.
      CASE screen-group1.
        WHEN 'CCC'.
          screen-input = 0.
          screen-invisible = 1.
          MODIFY SCREEN.
      WHEN 'AAA'.
          screen-input = 1.
          screen-invisible = 0.
          MODIFY SCREEN.
      ENDCASE.
    ENDLOOP.
    ENDIF.
  ENDIF.
START-OF-SELECTION.
Regards

Similar Messages

  • How to get  current row(Based on Radio button check)  submit button Click

    Hi i hava Query Region Search(Based On Auto Customization Criteria).
    For Showing Results iam Using Table Region.
    Using Radio button How we get the row reference value using Submit button Click.
    Please Help on this .
    Thanks & Regards
    San

    Hi san ,
    Try this
    if ("EventID".equals(pageContext.getParameter(EVENT_PARAM)))
    String rowRef = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OARow row = (OARow)am.findRowByRef(rowRef);
    VORowImpl lineRow = (YourVORowImpl)findRowByRef(rowRef); // Replace your vo name .
    Please refer this link , Let me know if its not clear .
    Single Selection in table Region in OAF .
    Keerthi

  • How to hide parameters in bar address ? (GET vs POST)

    Hello,
    I have to develop a web application and I would like to resolve some security issues.
    My problem is that, when I pass parameters from a stored procedure to another, every parameters are shown in the bar address.
    According to you, what is the best solution ?
    I have tried to use the POST method for forms but it only works for one button.
    Example :
    /* -------- Form -------- */
    HTP.PRINT('<form name="subProjectManagement" action="./C3bd7.incr2n.addSubProject">');
          HTP.PRINT('<input type="hidden" name ="p_id_proj" value="2060" />');
          HTP.PRINT('<input type="hidden" name ="error" value="" />');
          /* -------- "Add" Button -------- */
          HTP.PRINT('<input type="button" name="add" value="Add" onClick= this.subProjectManagement.submit()/>');
          /* -------- "Delete" Button -------- */
          HTP.PRINT('<input type="button" name="delete" value="Delete" onClick="Delete()"');     
    HTP.FORMCLOSE;- When I click on the "Add" button, the procedure addSubProject is called and the parameters are well hidden in the bad adderss.
    - For the "Delete" button, I made a different process because I can't put two different submit buttons in one form. In another word, the POST mechanism can't work for the "Delete" button so I do not know how to hide parameters in this case.
    As for direct links, I do not know what do to.
    Example :
    HTP.PRINT('<a href="./c3bd7.incr2n.subprojectList?p_id_proj=' ||p_id|| '">Go back</a>');- I am using this kind of link to switch from a page to another, and once again I do not know how to hide the parameters...
    The official documentation encourages to use cookies (http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_web.htm#CHECAHEB) : is it easy to implement ?
    Thank you a lot in advance !
    Best regards.
    Edited by: user11922628 on 12 janv. 2010 04:42

    Hi,
    if you willing to investigate how one could reuse session variables, then that might offer you some solution. Browser session variables can be passed on from page to page. Trouble is, back and forward browser buttons don't work so well.
    P;

  • How can I display choice type as radio button ?

    HI,
    I used SPD 2013 to create a workflow , action --- collect date from user .
    I created one choice type item , but display style only  drop down list and  check box .
    How can I do to display as radio button? 
    And other question , I don't want to display delete ITEM  in this page .  how can I do it ?  
    Thanks a lot 

    Hi,
    According to your description, my understanding is that you want to change the drop down list control to radio button control in the task form.
    I suggest you can use InfoPath to change the control to radio button like below:
    For hiding "Delete Item" action in the task form, I suggest you can add the Jquery to the PlaceHolderMain tag of "WrkTaskIP.aspx" within layouts folder path:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\WrkTaskIP.aspx
    More information:
    Jquery Hide
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to add the BexAnalyser as standard radio button to the add-ins?

    HI All,
    how to add the BexAnalyser as standard radio button to the add-ins.
    Thanks
    Vasu

    What do you want to do? Pls give some more details.

  • How to set the a  graphic ( 3 radio buttons ) in the report ?

    Hi  Exports,
    1.  How to set the a  graphic ( 3 radio buttons ) in the report ?
    Acutely  I  want to  fetch the record from MCHB-CLABS and MCHB-CSPEM , if the data read from MCHB-CLABS will show the green light otherwise if read from MCHB-CSPEM, it will show red light.
    (e.g :  if syntax error in report  it is showing red light signal , like that how to set in report program)
    Thanking you.
    Subash

    Hi,
    In your internal table declaration, include yet another field for lights..
    DATA: begin of itab,
               lights type light,
              end of itab.
    DATA: GV_LAYOUT TYPE SLIS_LAYOUT_ALV.
    GV_LAYOUT-LIGHTS_FIELDNAME = 'LIGHTS'.
    Use the GV_LAYOUT in your FM to display the ALV.
    IS_LAYOUT                         = GV_LAYOUT
    If itab-lights = 1 => Error
      itab-lights = 3 => Success
      itab-lights =2 => Warning

  • How to make some fields mandatory based on radio button selected

    Hi,
    As per requirement i have two radio buttons in my screen.
    1.update
    2.Display.
    When the user clicks update then certain fields of selection screen should be made mandatory.
    And if the user cliks the Display Radio Button then certain fields should be made mandatory.
    How to code for it.
    Thanks and Regards,
    Smriti

    Hi ,
    use this code ,
    now according to your requirement you make changes to your parameters.
    parameters: r1 as radiobutton group g1, " this id you update button
                r2 as radiobutton group g1.         " this is for display
    PARAMETERS: TEST1(10) MODIF ID SC1, " assume these are the fields as parameters.
    TEST2(10) MODIF ID SC2,
    TEST3(10) MODIF ID SC1,
    TEST4(10) MODIF ID SC2.
    AT SELECTION-SCREEN OUTPUT.
    if g1 = 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'SC1'.
        SCREEN-INTENSIFIED = '1'.
        MODIFY SCREEN.
        CONTINUE.
      ENDIF.
      IF SCREEN-GROUP1 = 'SC2'.
        SCREEN-INTENSIFIED = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    elseif g2 = 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'SC1'.
        SCREEN-INTENSIFIED = '1'.
        MODIFY SCREEN.
        CONTINUE.
      ENDIF.
      IF SCREEN-GROUP1 = 'SC2'.
        SCREEN-INTENSIFIED = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Please let me know if you still need any help.
    Thanks and regards,
    Rajeshwar

  • How to hide parameters showing up in browser when using jsp?

    I am a jsp newbie. I have a simple form like this:
    <form type=post action="http://localhost:8080/MyTestServer/TestCodes.jsp">
    <table>
    <tr>
    <td>Your name <INPUT type=text name="YourName" value="Your Name"></td>
    <td>Your ID <INPUT type="password" name="YourID" value="Your ID"></td></tr>
    </table>
    <br><input type="submit" value="Submit">
    </form>
    and part of TestCodes.jsp codes are simply like this:
    String name=request.getParameter("YourName");
    String ID=request.getParameter("YourID");
    It works fine.
    However, my problem is, in the browser, it shows like:
    http://localhost:8080/MyTestServer/TestCodes.jsp?name=John&ID=12345
    I dont want those parameters are shown in the browser.
    Pls tell me how to hide them. Thanks a lot.

    Hanna wrote:
    <form type=post action="http://localhost:8080/MyTestServer/TestCodes.jsp">
    Your form is written wrong. "type" is not the right attribute.
    <form method="post" action="http://localhost:8080/MyTestServer/TestCodes.jsp">Since no method attribute was given, the browser defaulted to GET. Also note that you should always quote your attribute values.
    You should read up on GET and POST. There's a little more to it than whether parameters are "hidden" or not.

  • How can hide parameters in url (calling reports)

    hi,
    in portal i'm running reports.
    report url is like this;
    http://myportal/reports/rwservlet?report=report.rdf&p_userid='||v_userid||'&cmdkey=conn_ybs_1'
    when antone calls report the userid parameter shown in url.
    for example;
    http://myportal/reports/rwservlet?report=report.rdf&p_userid='||65874||'&cmdkey=conn_ybs_1'
    i don't want to show parameters value to users
    how can hide this parameter in url?
    thanks.

    in portlet i get userid
    v_userid := wwctx_api.get_user;
    and use v_userid the following portlet.
    bq. &lt;HTML&gt; \\ &lt;BODY&gt; \\ &lt;ORACLE&gt;declare \\ p_authid varchar2(50); \\ p_personel_turu varchar2(1); \\ v_userid varchar2(10); \\ begin \\ p_authid := wwctx_api.get_user; \\ p_personel_turu := substr(p_authid,1,1); \\ v_userid := substr(p_authid, 2,8); \\ htp.p(' \\ &lt;table border="0" width="100%" cellpadding="0" cellspacing="0"&gt;&lt;tr&gt;'); \\ if p_personel_turu = 'I' then \\ htp.p('&lt;td width="100%" bgcolor="#7496ec" align="left"&gt;*{size:2}{color:#ffffcc} &lt;img border="0" src="\img\resimler\bullet\bullet.gif" align="middle" width="19" height="19"&gt;{color}{size}{font:Verdana}{size:2}{color:#ffffcc}D&ouml;rt Aylık Vizite Kağıdı{color}{size}{font}*&lt;/td&gt; \\ &lt;/tr&gt; \\ &lt;tr&gt; \\ &lt;td width="100%" bgcolor="#ffffff"&gt;{font:Verdana}{size:1}{color:#006699} İş&ccedil;i Personel D&ouml;rt Aylık Vizite Kağıdı{color}{size}{font}'); \\ htp.anchor(curl=&gt;'http://myportal/reports/rwservlet?report=report.rdf&p_userid='||v_userid||'&cmdkey=conn_ybs_1',ctext=&gt;'*{font:Verdana}{size:1}tıklayın.{size}{font}*&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="100%"&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;',cattributes=&gt;'target="_blank"'); \\ end if; \\ htp.p('&lt;/tr&gt;&lt;/table&gt;'); \\ end; \\ &lt;/ORACLE&gt; \\ &lt;/BODY&gt; \\ &lt;/HTML&gt;

  • How to hide/show reports region with radio group selections

    Hi, I have an HTML region with a radio group of two choices (Rpt1 and Rpt2). Also got two other report regions which depend on the radio group selections and by pressing a button it will display records.
    Everything does work perfect BUT say I select Rpt1 and press the report button it will show the records and after that if I select the Rpt2 radio button I still see the result of Rpt1 records. How can I clear or hide the reports regions when I change my radio button selection?
    Thank you
    -iahmadi

    Hi,
    You can create HTML regions that do not need to contain anything at all (use the "No Template" region template to ensure that you don't see a region Title on the page).
    However, in order to get this region to be displayed until the Report button is clicked, you would need to have a hidden page item (called, say, P1_SHOW_REPORT) that has, as a default, 0 as a value. The branch that is triggered by the Report button would then set this item to 1 - so, 0 = hide and 1 = show
    On your page you should have a branch that is conditional on the Report button being clicked. On this branch, set the first "Set these items" to P1_SHOW_REPORT and "With these values" to *1*. You should also have a branch on the page that is unconditional - meaning that it can be triggered by anything that submits the page. Firstly, this branch should have a high Sequence Number (say, 99) and secondly, should should set the value of P1_SHOW_REPORT to *0*. So the Report button sets it to 1 and anything else (which will include the radio button selections) will reset it to 0.
    Now, on your regions you have to change the conditions slightly as we now have two conditions to check - which report has been selected and whether or not the Report button has been clicked.
    This can be done by using a SQL Exists condition of something like:
    SELECT 1 FROM DUAL WHERE :P1_SHOW_REPORT = 1 AND :P1_RADIO = 'ABC'(where ABC is the value for the radio button for the report
    The "blank" region would also have a condition - that would be a simple Item = Expression 1 condition of P1_SHOW_REPORT = 0
    Andy

  • How to auto-populate dates in a calendar based on radio buttons?

    Hi,
    I'm trying to create an availability form that is submitted on a monthly basis. What I'd like is to have a radio button the user could click to indicate what day the first of the month falls on (Monday through Sunday), and have fields auto-populate with the remainder of the dates on the calendar. As it stands right now, I've got the radio buttons and the text fields, but I'm running into serious issues getting the text fields to auto-fill based on the selected radio button.
    I've labelled the radio button group "First Day of Month" and the individual values are "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" "Sunday" and "Start". The "Start" button is hidden but is checked by default.
    My text fields are even simpler: "Monday 1" "Monday 2" "Monday 3" "Monday 4" and "Monday 5" (and then, obviously, repeated for each day of the week.
    I am horrible at scripting, so I think that might be where I'm running into issues. What I'd like to put is something like this (only, you know, functional, and for each days' text value):
    For "Monday 1"
    if "First Day of Month.value" = "Monday", "Monday 1.value" ="1"
    else "Monday 1.value" = ""
    For "Wednesday 3"
    if "First Day of Month.value" = "Sunday", "Wednesday 3.value" = "11"
    if "First Day of Month.value" = "Monday", "Wednesday 3.value" = "17"
    if "First Day of Month.value" = "Tuesday", "Wednesday 3.value" = "16"
    if "First Day of Month.value" = "Wednesday", "Wednesday 3.value" = "15"
    if "First Day of Month.value" = "Thursday", "Wednesday 3" = "14"
    if "First Day of Month.value" = "Friday", "Wednesday 3.value" = "13"
    if "First Day of Month.value" = "Saturday", "Wednesday 3.value" = "12"
    else "Wednesday 3.value" = ""
    For "Sunday 5"
    if "First Day of Month.value" = "Sunday", "Sunday 5.value" = "29"
    if "First Day of Month.value" = "Friday", "Sunday 5.value" = "31"
    if "First Day of Month.value" = "Saturday", "Sunday 5.value" = "30"
    else "Sunday 5.value" = ""
    Is this possible? I have no doubt there's a better way to do it (with proper coding and everything), so any help would definitely be appreciated!

    Hello,
    Which sharepoint edition you are using? I would prefer to customize your list form in infopath form then add new connection which will connect to your SQL. Later you can filter data based on cust ID. Here is the link to add connection in infopath:
    http://office.microsoft.com/en-in/infopath-help/add-a-data-connection-to-a-microsoft-sql-server-database-HP010092823.aspx
    If you want to do it via code then simple ADO.NET connector will help.
    http://www.codeproject.com/Articles/33862/Connecting-to-Database-Using-Custom-Webpart-in-Sha
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to hide table column based on country molga value

    Hi Experts,
    I am doing some enhancement in ess application. I want to hide table column based on country code i.e. Molga value.
    I want to hide coulm for only Japan country reset of them i need to be show those coulmn.
    Could you please provide me a sample code.
    Regards
    Chakri

    Hi Chakri,
    Your setting the table value that time you will get the Country Code.
    1.Create the attribute like Country_Column_Visible Data Type bind the com.sap.ide.webdynpro.uielementdefinitions.Visibility this value  you need to bind the table country column.
    2.In Table You need to check the country code Japan is available you need follow this below sample code.
    for(int i=0;i<tablesize;i++)
         tablesithValue=wdContext.nodeTable().getTablenode(i);
         if(null != tablesithValue.getcountrycode)
         if(tablesithValue.getcountrycode.equalsIgnoreCase("Japan"))
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.NONE);
         }else
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.VISIBLE);
    Use the above code you condition it will work.I hope it will help you.
    BR,
    Durga

  • How to make buttons as disable based on radio button selection in .htm

    Hi
    I have two radio buttons. So i want that when i select one radio button other buttons should become disable in
    .htm in crm webui.
    Thanx,
    Nawal kishore.

    I am not sure why u need this .. but if you disable the radio button, user won't be able to change the radio buttons any more!!!
    You can do it in this way.
    1. go to the radio button attribute of the context node ..
    if get_p_xxxx method is present then modify that to include the below code. If not present create the method. see any standard method
    CASE iv_property.
       WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'selected'. "remember case
    endcase.
    2. create a event with the name 'selected'. "" case is important
    3. check in do_handle_event if the event is created or not..." if there is not event added in that method, you need to add your method name there...
    4. set some flag in the event method which you have to access from the get_i_XXX method(XXX is the radio button attribute).
    depending on the flag you make it disable.

  • Selection Based on Radio buttons in SAP Query

    Hi All,
    I am new to SAP Query.
    I have added the radio buttons on the selection screen of my SAP query screen.
    Can anyone please tell me how to make the field selection in query based on the status of these radio buttons.
    Thanks And Regards,
    Rupesh

    HI
    you have to do this using modif id. here is a sample program to do this
    PARAMETERS show_all radiobutton  group g1 USER-COMMAND flag.
    PARAMETERS no_show radiobutton  group g1 default 'X'.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p1(10) TYPE c,
                p2(10) TYPE c,
                p3(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS: p4(10) TYPE c modif id bl2,
                p5(10) TYPE c modif id bl2,
                p6(10) TYPE c MODIF ID bl2.
      SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF show_all <> 'X' AND
           screen-group1 = 'BL2'.
           screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
    endloop.
    reward if helpful
    Message was edited by: Harikishore Sreenivasulu

  • Change field from read only and override calculation based on radio button

    Hi,
    I have a form in which one of the fields has a simple sum calculation and is set to read only so the user can't change it as it sets a print amount as well.
    But if one of the radio buttons is ticked there is a chance that the print amount needs changing but it can be different based on a few other options so I have managed to set the field so the user can edit it depending on an option but the calculation that sets the value overrides what the user enters. I would like to know if it is possible to change this?
    I use
    this.getField("Quantity_Boxes").readonly = false;
    So the user can edit the field when they select the radio button 'yes' under Mesh_b
    and
    this.getField("Quantity_Boxes").readonly = true;
    So the field goes back to read only when the user selects the 'no' under Mesh_b
    and in the Quantity_Boxes field I use:
    Quantity_Curtains / csn
    Just as a simplified division sum with the decimal places set to 0 so a whole number appears.
    csn is just a hidden field that has an amount set depending on the size of curtain.
    Thanks,
    Bruce

    I have found a solution but caused another problem (well more of an irritation than a problem)
    I have made it so the can field throws a dialogue box asking how many of the item fit into a box, the only problem is that the dialogue box will appear more then once.
    For example I have made a new size know as bespoke and when I select that size and hit return the dialogue box pops up which is fine but when the amount of the product is changed it throws the dialogue box again. I guess this is because the calculation has to be run again but is there anyway of stopping this?
    Here is the code I use in the can field which defines how many curtains are in the box and is used to calculate how many labels need printing out.
    if(this.getField("SizeDrop").value=='LG'){
    event.value = "5"
    } else if (this.getField("SizeDrop").value=='ST'){
    event.value = "8"
    } else if (this.getField("SizeDrop").value=='ME'){
    event.value = "10"
    } else if (this.getField("SizeDrop").value=='SM'){
    event.value = "15"
    } else if (this.getField("SizeDrop").value=='BE'){
    var resp = +app.response("Enter the amount of curtains in a box","","1");
    event.value = resp
    } else {
    event.value = " "
    Thanks,
    Bruce
    EDIT:
    I have found that the dialogue box will appear every time something is changed on the form (even while in the editor as well)

Maybe you are looking for

  • Imessage down on my iPhone: "the person cannot be reached by imessage at this time"

    My internet connection works and I can send emails from my phone. Additionally I can send imessages from my macbook. But I can't send imessages from my iphone. It either doesn't recognize certain phones as having imsg (when i know that they do) and t

  • *** Still trying to get good HDV to DVD image quality

    Okay, so I thought I had a good solution, but I'm now back to square one. I'm shooting and editing in HDV with a Sony Z1U. I edit by using Final Cut Pro, 1 monitor and my 32" LCD tv (native resolution of 1366x768). While editing the image, and especi

  • Transferring pictures via iCloud

    I have a pc, iPhone 4s, and just got the new iPad. I have struggled with how to move pictures from my pc to the phone and now to the IPad. On my last sinc with iTunes on my phone I used iTunes to transfer picture folders. The pictures are now on my p

  • Recording with multiple instances of audition 3.01

    Hello again. Recently I upgraded a few machines from windows xp and audition 1.5  to Vista and  audition 3.01 The most glaring difference now seems to be when our users have multiple audition windows open in 1.5  all recording from the same audio sou

  • Can I get my phone replaced with a 1 Year Warranty?

    I bought a HTC phone from Best Buy in July 2011 and it came with an extra piece that no longer works. I have an 1 year warranty and I was wondering if I could get the piece replaced.