Nagigation when i select a Radio button

Hi All,
  I have two Radio buttons say R1, R2 in a <b>dialog box</b>. When i select one of the Radio button(R1)  and press on OK on dialogbox i need to display Tabstrip and i f i select R2 need to display some table. how can i achieve this....

Hi ,
Radio button has a onSelect event. Assign an action/event handler for it.
Create two value attributes , tabVis and tableVis.. of type type     
com.sap.ide.webdynpro.uielementdefinitions.Visibility.
Capture the current selected radio button .. (varies for RB by Key and byIndex.. )
It its RB ByIndex it s the current element of the node..
for RB byKey , when a simple type is used.. getXXX() would give you the value..
So depending on the selected radio button..
use..
wdContext.currentContextElement().settabVis(WDVisibility.VISIBLE);
wdContext.currentContextElement().settabVis(WDVisibility.NONE);
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/55/084640c0e56913e10000000a1550b0/frameset.htm">Parent and Pop window Interaction..</a>
Regards
Bharathwaj
Message was edited by:
  Bharathwaj

Similar Messages

  • Dynamic Select List / Radio Buttons triggering conditional display of field

    Hi HTMLDB Team,
    I wanted to mimic this very nice and useful HTMLDB 'select list feature' at the HTMLDB "Create Application ... from Application Export file " ... option .
    ie when you hit the form that asks you to "install the application", i,e
    Builder - Application >Export Import>Export Repository>Install Application
    you have the the following radio Options :
    Install As Application
    X Reuse Application ID 401 From Export File
    X Auto Assign New Application ID
    X Change Application ID
    New Application
    The "New Application ID" field appears only when I select "Change Application ID" radio option. That great and that's exactly what I want.
    How do you do that ?
    I am currently using a select list instead of radio list. It's the same thing ... I
    I tried " many options of the "select list with redirect .... with submit .... but I was not successfful. All I am trying to achieve is to offer a list of departments ... but when the user select "other", I want to show a text field for the user to type in the "other Department" ... without losing what I had already entered in the form previously and without actually Submitting the form . I still have other fields to enter after the select list .
    Is that possible with pure HTMLDB ?
    Or do I have to craft up some Javascript .
    I'd prefer pure HTMLDB .. I do not want to use javascript, to avoin a maintenance nightmare once I submit the code to other developers ...
    Can you pls help ?
    Thanks a lot.

    Hello,
    Take a look at these built in javascript function
    they should give you what you want.
    http://htmldb.oracle.com/pls/otn/f?p=11933:39
    CarlCarl,
    if I understand it right, these functions are already built in Apex 2.2.1.
    I need to show an item with label when user selects certain radio button. This sounds like the opposite to f_Hide_On_Value_Item_Row function.
    Can this task be done with apex built-in javascript functionality at this moment?
    Thanks

  • File name should change by selecting the radio buttons

    Hi all,
    PARAMETERs: p_file LIKE rlgrap-filename.
    PARAMETERS: p_app RADIOBUTTON GROUP rg DEFAULT 'X',
                             p_pre RADIOBUTTON GROUP rg.
    this is to download the ITAB data to presentation and application servers depending upon the radio button selected.
    if i select p_pre , then default download path is : 'C:/ download.txt'.
    if i select P_app , default download path is : '\usr\sap\EBG\SYS\profile\DOWN.TXT'.
    how the file name should change by selecting the radio buttons ?
    Thanks
    KR

    Hi,
    DATA: c_x VALUE 'X'.
    selection-screen begin of block input with frame title text-000.
    parameters :desktop     radiobutton group rg_f user-command rg_f,
                       in_file type ibipparms-path modif id ps DEFAULT 'C:/ download.txt',
                menu     radiobutton group rg_f ,
                       sys_file type ibipparms-path modif id as default  '\usr\sap\EBG\SYS\profile\DOWN.TXT' .
    selection-screen end of block input.
    at selection-screen output.
      if desktop is initial and menu is initial.
        desktop = c_x.
      endif.
      perform f_toggle_finputs.
    form f_toggle_finputs.
    loop at screen.
        if screen-group1 = 'PS'.
          if desktop = c_x.
            screen-input    = 1.
    *         sys_file = c_server_path.
          else.
            screen-input    = 0.
          endif.
        endif.
        if screen-group1 = 'AS'.
          if menu = c_x.
            screen-input    = 1.
    *        clear: in_file.
          else.
            screen-input    = 0.
          endif.
        endif.
        modify screen.
      endloop.
    endform. "f_toggle_finputs
    Hope this helps u.
    Thanks.

  • 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

  • Selection screen to appear when user clicks on radio button

    hi
    i have severla radio buttor in a radio button group
    i want that whne user clicks on first radio butter selection scren 1 eg as below to apper
    when use clicks on radio buton2 selection scree2 will appear please suggest
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE
    text-008
    PARAMETER : fyr2_fy type FIMC-RYEAR default 2008,
                 fyr2_cg type FIMC-CGYEAR default 2008,
                 fyr2_bk type FIMC-PERID default 7.
    SELECTION-SCREEN END OF BLOCK B1.
    regards
    arora

    Hi,
    At selections screen on that radiiobutton group.
    if radio_button1-status = 'X' (Active)
    call screen 'scereen number' or set screen 'nuymber'.
    else.
    call screen...
    endif.
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • How can I select a radio button in a table regarding the data in the cells?

    Hi everyone
    This is the issue: I need to select the RadioButton which is in a table with data related to transfers in the cells next to it, so I need to select the correct radio regarding the data next to it.
    This is the whole process: First I go to the Add Recurring Transfer section and select the parameters of the transfer (Accounts, date, amount, months etc), then with VB code I capture those parameters from the page and store them into Global variables for further usage on my E-tester script.
    Right after that I need to select the radiobutton regarding the data of the transfer that I already created in order to delete it or modify it (Please see Attachment selectradio1.jpg)
    So How can I move along the table and compare each cell with the variables that I created with the transfer information, so when I finish comparing a row cell by cell and if all the comparison match well in that row, I could select the radiobutton of the row.
    Note: Second Attachment selectradio2.jpg shows the source code of the table...If you need more info please let me know
    Could you please help me with this problem?? I'm Kind of frustrated with this issue jejeje

    Here is an example. I uploaded mock html so that you can actually try this code. I think this does exactly what you are asking.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    Dim rButton As HTMLInputElement
    ' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
    strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
    ' Strip out the ; for inner text comparison
    strValue = Replace(strValue, ";", "")
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    ' then clicks the radio button. Findelements allows you to specify a root element
    ' once the correct root row is found, FindElemets can get the correct radio button
    For Each tblRow In tbl.rows
      If tblRow.innerText = strValue Then
        Set rButton = RSWApp.om.FindElement("account", "INPUT", "NAME", , , tblRow)
         rButton.click
       End If
    Next
    End Sub
    I also uploaded the script I created. You should be able to run it and see how it works.
    This should get you going.

  • How to set a default pre-select for radio buttons?

    Hi
    I have some text form fields that I've set up to display some paired variables stored in a .txt file.  When the swf loads, the form fields are populated with the text.
    I've also set it up so that if you change the text and hit a submit button, the .txt file gets updated.
    I'm now tryng to set it up so that I can store radio button selections in the .txt file too.
    I've started doing it a certain way, but am wondering if there is a more straightforward way of doing ?
    Here's what I've done...
    I've set up the butttons to spit out "on" or "off" depending on the selection, and apply that to the variable that gets stored.
    Now, in the same way I loaded the variables into the text form fields when the swf is refreshed, I want to load the on/off variable, and then somehow apply it to the radio buttons so that one of them is pre-selected.
    So my questions are a) how do I take that loaded variable, and use an if statement to make it pre-select the button, and b) is there a simpler way to pre-select a button based on an external variable?
    Thanks
    Shaun

    Nevermind guys - I did it using the 'rb_on.selected' command on the "on" radio button if the .txt file variable was "on", else the "off" radio button is selected.
    Thanks for taking a look though!
    Shaun

  • Connecting selection of radio button to a text or numeric field

    Hi. I am using LiveCycle Designer 8.0 and I am trying to define object properties that will allow the selection of a radio button to populate in a numeric data field at the bottom of the page. I was able to write the script to have that happen with drop-down lists, but I can't figure out how to write the script for the radio button. I also don't know if the script is supposed to apply to the radio button itself or the numeric field where I want the result to show-up. Can you please help me with some sort of an example script? Thanks.

    Hi Jen,
    I would recommend that you amend your workspace in Designer. You can show/hide palettes from the Window menu.
    Here are some pointers (which are optional):
    This is the hierarchy palette and is very handy when working with forms. You can select objects quickly and drag objects around.
    This is the Object palette, which makes it easy to drag objects onto the page.
    The main space with tabs for Design View, Master Pages, XML Source (you should not need this) and Preview.
    You can select objects in EITHER the page or the hierarchy view and then change properties in other palettes.
    The Script Editor is very important when you start to add functionality to your form. It is visible on your screen shot, but it is limited to one line in height. So I would recommend that you drag this down so that you can see a few lines of script. The Show dropdown in the Editor allows you to look at the script in various events. In the example I posted, there is script in the click event.
    Object palette (and Font & Paragraph palettes). These will allow you to make changes to various properties, depending on the object that is selected.
    You will see from the screenshot that you can position and stack the palettes to suite your screen and workflow.
    Now, in relation to your screenshot:
    You have selected a single radio button in your group. You need to select the whole exclusion group, this is easy in the hierarchy palette.
    In the Object > Binding palette you have ticked the Specify Item Values (good), but you need to edit the values to match the Display Items. For example for item "$85", the specified value should be "85".
    For starters, I would recommend that you open a few of the palettes and then have a look at my example and the screenshots. Hopefully that will clear it up for you.
    Niall

  • Select one radio button at a time

    Hi all,
    my webdynpro table contains 3 rows. each row contains one radio button. at a time i should select only one radio button and bydefault the first one should be select.
    Thanks,
    Sagarika

    Hi,
    when the view will load,  bydefault radio button of first row of webdynrpo table should check. in this part i am facing problem.
    in my onaction-method i wrote the down code for 'deselect radio button if i will select other one'.my node is 'paticipants'.
      " Uncheck  other Radio button if selected
      DATA: lo_nd_participants  TYPE REF TO if_wd_context_node,
            lo_changed_elem     TYPE REF TO if_wd_context_element,
            lo_elem             TYPE REF TO if_wd_context_element,
            lt_elem_set         TYPE wdr_context_element_set,
            ls_chgd_participant TYPE LINE OF wd_this->elements_participants,
            ls_participant      TYPE LINE OF wd_this->elements_participants.
      FIELD-SYMBOLS:
            <fs_participant>   TYPE LINE OF wd_this->elements_participants.
      " Get the changed context row
      CALL METHOD wdevent->get_context_element
        EXPORTING
          name  = 'CONTEXT_ELEMENT'
        RECEIVING
          value = lo_changed_elem.
      " Get static attributes
      CALL METHOD lo_changed_elem->get_static_attributes
        IMPORTING
          static_attributes = ls_chgd_participant.
      " Navigate from <CONTEXT> to <PARTICIPANTS> via lead selection
      lo_nd_participants = wd_context->get_child_node( name = wd_this->wdctx_participants ).
      IF lo_nd_participants IS INITIAL.
        RETURN.
      ENDIF.
      " Get all the selected elements from the context
      lt_elem_set = lo_nd_participants->get_elements( ).
      " Process the elements
      LOOP AT lt_elem_set INTO lo_elem.
        CALL METHOD lo_elem->get_static_attributes
          IMPORTING
            static_attributes = ls_participant.
        IF ls_participant-prim_userid NE ls_chgd_participant-prim_userid.
          ls_participant-admin_ind = abap_false.
          lo_elem->set_static_attributes( ls_participant ).
            ENDIF.
      ENDLOOP.

  • Use 3 button or property to change selection of radio buttons?

    Hi all,
    I have LV 7.1 and am trying to write a process that allows the user to select the next action following the execution of several Case Structure steps.  The VI is basically thus: (sorry I can't cut-n-paste a graphic, it's on another pc.)
    While loop:--->radio button (Manual, Cycle, Auto Test)----> Case Structure (Manual, Cycle, Auto Test)--->Nested Case Structure within the "Auto Test" Case above with 13 cases ("0" to "12")
    On case "12" of the nested case structure, I want to provide a 3-button dialog box (or something that works) which allows the user to select the next test mode (i.e. the 1st case structure: "Manual", "Cycle", "Auto Test").  I can't figure out how to send anything that the property node "Value" of the radio button can use for this selection.  When I create an indicator to see what is sent from the 3-button, it shows ("Left", "Center", or "Right") "Button" strings.  The radio button "Value" property node needs an enum.  The labels on the 3-button don't seem have any consequence. 
    Any Suggestions? 
    Best Regards,
    Ed

    Dev,
    Thanks for the reply.  I experimented with the Property Node and Radio Button control extensively and figured out my problem.  It had to do with the difference between Labels, Captions, and Boolean Text.  I believe I had a caption on one of my buttons rather than the label, so the property node didn't see it as an option.  Through all the help screens that had the option of explaining this to me, it wasn't until I had fixed the problem before I found one that addressed the differences between those terms.  I'll attach my experiment vi (created with LV 7.1) for anyone like myself (non-programmer, inexperienced LabVIEW'er) that would like to see the basic function.
    Attachments:
    Property node experiment.vi ‏56 KB

  • To Change the Program Title when i click second radio button

    Hi All,
    I have two radio buttons in my report.
    1) party wise report  ( if R1 = X  this will display report )
    2) sales wise report ( if R2 = X this will display report )
    i declared in report attributes as party wise report .
    When i clik sales wise report.
    it is coming party wise report,
    i want it to be as sales wise report.
    Please let me know how to do it.
    Thanks in advance
    Ramesh

    Hi,
    Hope below code can give you some idea.
    parameters: r1 radiobutton group rad1 default 'X',
                r2 radiobutton group rad1.
    start-of-selection.
       if not r1 is initial.
          sy-title = 'Party'.
          Write:/ 'First'.
       else.
          sy-title = 'Sales'.
          write:/ 'Second'.
       endif.
    Kind Regards
    Eswar

  • Can I launch a workflow by selecting a Radio Button

    I have three radio buttons on a form. When a user clicks, let us say "UpdateUser" radio button, it should launch update user workflow. Is this possible? How? I am trying to avoid one mouse click for the user.
    I'd appreciate any help
    Thanks

    Use the following code to launch a workflow
    <block name='**********Launc Workflow**********' trace='false'>
    <set name="processView">
    <new class="com.waveset.object.GenericObject"/>
    </set>
    <invoke name="setId">
    <ref>processView</ref>
    <s>ProcessViewer</s>
    </invoke>
    <invoke name="put">
    <ref>processView</ref>
    <s>task.process</s>
    <s>TestWorkflow</s>
    </invoke>
    <invoke name="put">
    <ref>processView</ref>
    <s>task.taskName</s>
    <concat>
    <s>TestWorkflow_</s>
    <s>_</s>
    <new class="java.util.Date"/>
    </concat>
    </invoke>
    <invoke name="checkinView">
    <select>
                                       <ref>:display.session</ref>
                                       <invoke name='getLighthouseContext'>
                                            <ref>WF_CONTEXT</ref>
                                       </invoke>
                                  </select>
    <ref>processView</ref>
    <new class="java.util.HashMap"/>
    </invoke>
    </block>
    Thanks,
    Paddy

  • How to select a radio button using javascript?

    Hi,
    I have 2 radio buttons as shown below:
    <input id="poBoxRadio" name="poBoxRadio" type="radio" class="radio-btn" value="No" /> No
    <input id="poBoxRadio" name="poBoxRadio" type="radio" class="radio-btn" value="Yes" /> YesI want to select one of this radio button, according to the following condition in javascript:
    <script type="text/javascript">
    if (<%=option1%> != ""){
         // Radiobutton "No" should be selected.
    else if (<%=option2%> != ""){
         // Radiobutton "Yes" should be selected.
    </script>How can I do this in Javascript? Any help will be highly appreciated.
    Thanks,
    Rishi

    I have solved this issue using the following:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script type="text/javascript">
    var a='', b='d';
    </script>
    </head>
    <body>
    <input id="poBoxRadioNo" name="poBoxRadio" type="radio" class="radio-btn" value="No" /> No
    <input id="poBoxRadioYes" name="poBoxRadio" type="radio" class="radio-btn" value="Yes" /> Yes
    <script type="text/javascript" defer="defer">
    <!--
    if(document.getElementById){
    if (a != ""){
    // Radiobutton "No" should be selected.
    document.getElementById('poBoxRadioYes').checked = false;
    document.getElementById('poBoxRadioNo').checked = true;
    else if (b != ""){
    // Radiobutton "Yes" should be selected.
    document.getElementById('poBoxRadioNo').checked = false;
    document.getElementById('poBoxRadioYes').checked = true;
    // -->
    </script>
    <input disabled type="button" value="UP" onclick="setVariable('move=1')">
    </body>
    </html>Thanks to all of you!

  • How can I to dissapear the second page when I select a radio buttom YES or NO.

    I want the second page to disappears when I select radio buttom YES or NO.
    If I select YES, the second page continues, but if I press NO, the second page should dissapears, including the footer of the Master Page.
    Please let me know on how to do this, thank you!
    Alexander

    Thank you MTremblay-Savard, I will try to figured out the exact syntax for this one.
    I really appreciated your help!

  • How to display a text field if yes selected in radio button

    Does anyone know how to hide/show a text field based upon a
    radio button selection? What I want to do is ask a question with
    yes or no as radio buttons. Then, if the user selects "YES" I want
    to display a required text field. If the user click no, there isn't
    a need for the text field.

    Try this...
    <html>
    <head>
    </head>
    <script>
    function ShowField(){document.MyForm.MyField.style.display =
    "inline";}
    </script>
    <body>
    <form name="MyForm">
    <input type="radio" name="MyCheckBox"
    onClick="ShowField()">
    <input type="text" style="display: none"
    name="MyField">
    </form>
    </body>
    </html>

Maybe you are looking for

  • Creation of function module for updating the ztable

    Hi, I am sending the requirement for ceation of function module for updating the ztable. Requirement---- Table Updation rule (New record) While creating a new record the calling function will export the following to the table handling function. Table

  • Error in external context mapping

    Hi I want to send some data to a used web dynpro DC from the embedding DC. I tried using external context mapping by performing the below steps. created a value node and attribute at interface controller of the used DC set isInitial property to true

  • Help! Not able to Print TIF files

    I recently pasted 4 photos into a 19x13 canvass. The file was originally a 1.2 GB file, which would not print, so I then reduced the size to approximately 700MB. I go to FILE then select PRINT and nothing happens. Is there a setting I messed up somew

  • MacBook shuts down when unplugged

    Today I got a message saying my computer needed to be restarted. Later, when I unplugged the AC cord to move my MacBook, it shut down. I did this a few times but it kept turning off. My MacBook is only two months old and it is already acting up? Here

  • When I log into face bookj i have this error message what does it mean???

    Exception... "Security Manager vetoed action" nsresult: "0x80570027 (NS_ERROR_XPC_SECURITY_MANAGER_VETO)" location: "JS frame :: chrome://fctoolbara288034635bb45bb9190eedb49c132c5/content/fctoolbar.js :: NavigateComplete :: line 11" data: no]