WAD Button Group

Hi All,
I am doing some WAD report. In that report i am using Button Group. While changing the button group properties after assigning some action (In the WAD Button group ->Properties->Action Command ->Edit Command->Commands for web Template-> Export Web Application)  "Next" button is not getting activated.
What is the reason, Please let me know.
Thanks in advance,
S.Murthy

Hi Aduri,
Yes, I am using WAD 7.0. I did like that only. i clicked on each button in the properities after that Edit Parmeter window then Edit Command -> Export web application
then, "Next" button is not getting activated.
Any reasons please let me know.
Thanks,
Satya

Similar Messages

  • Variable pop-up using Button Group in WAD

    Hi experts,
    I've created a button group in WAD to execute a 'Copy' function developed in IP.
    This copy function has the following variables:
    Order From:
    Order To:
    Version From:
    Version To:
    This button group was created as it should referencing my copy function, with a dataprovider of type filter, and under 'Behavior' I have flagged the ' Display variable screen' field.
    So when I click on this button, it should give me a pop-up screen for me to enter those variable values.
    The problem is, it's not giving me this pop-up screen. Does anyone know why? Or if I've missed something.
    thanks
    Edited by: Ehab Mansour on Feb 28, 2008 10:48 AM

    Hi Maykan,
    I will give that a try, and let you know how it worked out.
    By the way, are you aware of any 'WAD' specific documentation that provied details and more WAD capabilities?
    thanks

  • Add Button Group in WAD

    Hi All,
    I am working in BI 7.0. I am trying to create a new web template using WAD,
    but i am not finding a command button(push button) group in the library.
    Kindly help me to add a button group.
    Regards,
    Sheeba Rani

    Hi rani,
       according to  your answer.. i think  you are still using 3.X web application  designer.. only..  in  3.x WAD  you wont get  that button group web item..
      here i'm giving one link.. you just go thru that.. because 7.0 web application designer means. you will get  all the    web items..  same in this link..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/83/54973910a9bc12e10000000a114084/frameset.htm
      based on this you can check your  patch...  and  contact to ur BASIS   people..
    if it helpful to u.. plz ASSIGN POINTS
    regrads
    @jay

  • WAD: Add variable to a called javascript function on button group item

    Hi All,
    I need your expertise regarding the following problem:
    To increase performance, I've decided to hide all analysis tables. To set these tables to visible, there is a button to switch the state for each table.
    Because this function is needed for each table, the function has two parameters for the analysis item name and the new state.
    Unfortunately, I get an useless error message after calling the function.
    The function in script item looks like
    function switchTable(itemName, newState)
    The function is started by a button of a button group item as javascript and the following script function
    switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    If I enter a without parameters, that will call the function with these parameters, it works.
    But if i try this directly from the script function in the button parameters, the function will be called correctly, but an error occurs and the analysis item wasn't displayed or the sendCommand wasn't processed completely.
    I hope there is a way to call javascripts by a button with variables, otherwise I would have to create many functions with only an other item_ref.
    Many thanks in advance and points of course for any help.
    Regards,
    Tobias

    One short note:
    It's possible to trigger the same function by an html input form button with onlick switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    and this works.
    Has anyone an idea what's the problem with a normal button item of the button group item?
    Another possibility is a menu item. The functions were called, but errors were shown.

  • Removing Buttons from Button Group

    Hi
    I am new to WAD 2004s, and am in the process of customising templates.
    I would like to remove some buttons from the button group, but so far the only way I can do this is to go in the XHTML and remove the code segments from there. Surely I should be able to do this from the layout view?
    Cheers,
    Andrew

    Hi,
    As Deepu says, in general everything is possible in the properties (you have to switch to "web item parameters" tab -> you will see all parameters for the web item.
    Regards, Karol Kalisz
    SAP NetWeaver BI Development

  • WAD Button control to Drill down all the Free Char

    Hello experts,
    Would like to know if there is a setting in WAD to include a Button where by clicking on that button would give an option to drill down on all the free char available in that particular query, please let me know if any of you have done it.
    Thanks.

    Thanks Arun for a quick reply.
    Yes i understand that i can create a button group for alternating the views. But wanted to know from the existing set of free char in the report, by including a button to drill down on all and come back to the first screen again. please help me out with the setting that can be done for this. even if i have to include all char in one of the views.
    thanks.
    Suhas

  • WAD button and text

    Hallo Experts,
    is it possible to create a button in a WebTemplate (WAD) with the following function:
    The user press the button and the following text appears:
    Pleas give in......
    I use WAD and create with "button group" the button, but than i don´t know how to go on...
    Thanks Santra

    Hi ,
    In 7.0 we have lots of option to customise WAD . You can do this with the help of set parameter command .
    1.Take push button and lable .
    2. Lable should be hidden in the first instance .
    3. Once we click on push button , use set parameter command and inhide the lable .
    Aboveis the overall idea .
    Please check foloing link you will get some example .
    http://help.sap.com/saphelp_nw70/helpdata/en/5b/30d43b0527a17be10000000a114084/frameset.htm
    Regards,
    Aparna

  • Creating a radio button group in a column of a table in Web Dynpro

    Hi,
    I want to put a radio button group in a column of a table in Webdynpro. I added a column to a web dynpro view and then inserted a tableCellEditor for that column.. But I cannot define it as Radio Button group. I want the user to be able to select 3 statuses using this group.
    Does anyone have a solution for this??
    Thanks in advance...
    Nakul

    Hi,
    You wont be able create three RB in one cell.
    Create as many column as the no of options is.Here it is 3.
    Create 4 attributes inside the node , option 1,option 2,option 3 and selectedoption.
    Map each RB s keytoSelect to option 1,2,3. Map all the RBs selectedKey atribute to selectedoption.
    Now selection for each row will be stored in the selected option.
    Regards
    Bharathwaj

  • One tray for multiple button group items

    Hi,
    I have 3 button group items in my templaate ,in the propoerties of these button grps the tray is on .NOw I can see 3 trays when I execute my template instead I want to have one tray for these 3 button group items . How is this possible?
    THanks
    Sany

    OK, I'm having trouble again. I need multiple items to drag
    to one target. I'm putting all my actionscript in the same frame,
    and here's how it looks:
    stop();
    name_mc.onPress = function():Void {
    this.startDrag(true);
    name_mc.onRelease = function():Void {
    this.stopDrag();
    if (eval(this._droptarget) == safe_mc) {
    this.swapDepths(this._parent.getNextHighestDepth());
    this.removeMovieClip();
    address_mc.onPress = function():Void {
    this.startDrag(true);
    address_mc.onRelease = function():Void {
    this.stopDrag();
    if (eval(this._droptarget) == safe_mc) {
    this.swapDepths(this._parent.getNextHighestDepth());
    this.removeMovieClip();
    And I'm getting the following error message:
    **Error** Scene=Recap, layer=actions, frame=1:Line 21:
    Statement block must be terminated by '}'
    address_mc.onRelease = function():Void {
    **Error** Scene=Recap, layer=actions, frame=1:Line 27: Syntax
    error.
    Total ActionScript Errors: 2 Reported Errors: 2
    Do you know what I'm doing wrong?

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

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

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

  • Radio Button Groups

    Hi I am trying to create two radio button groups, one which contains other text buttons and names buttons, in this group only other text button or names can be chosen. But then within the other group I have all the names buttons, but i only want one of these to be chosen at a time. Heres my code
    [AS]
    import fl.controls.RadioButtonGroup;
    //===========================All Name Buttons============================
    var NameTxtRadio:RadioButtonGroup=new RadioButtonGroup("NameTxtRadio");
    LBtextMenu.LBnames.group=NameTxtRadio;
    RBtextMenu.RBnames.group=NameTxtRadio;
    LStextMenu.LSnames.group=NameTxtRadio;
    RStextMenu.RSnames.group=NameTxtRadio;
    LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    LStextMenu.LSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    RStextMenu.RSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    function NamesshowResult(event:MouseEvent):void {
       switch (NameTxtRadio.selection) {
              case RBtextMenu.RBnames :
               trace ("RB names chosen");
                             RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = true;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = false;
                            break;
                           case LBtextMenu.LBnames :
               trace ("LB names chosen");
                            RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = true;
                           LStextMenu.LSnames.selected = false;
                            break;
                           case LStextMenu.LSnames :
               trace ("LS names chosen");
                             RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = true;
                            break;
                           case RStextMenu.RSnames :
               trace ("RS names chosen");
                           RStextMenu.RSnames.selected = true;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = false;
                            break;
    //==========================Right Breast text menu==========================
    var RBTxtRadio:RadioButtonGroup=new RadioButtonGroup("RBTxtRadio");
    RBtextMenu.RBotherTxt.group=RBTxtRadio;
    RBtextMenu.RBnames.group=RBTxtRadio;
    RBtextMenu.RBotherTxt.addEventListener(MouseEvent.CLICK, RBshowResult);
    RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, RBshowResult);
    function RBshowResult(event:MouseEvent):void {
       switch (RBTxtRadio.selection) {
              case RBtextMenu.RBotherTxt :
               trace ("RB other chosen");
                            break;
                           case RBtextMenu.RBnames :
               trace ("RB names chosen");
                            break;
    //==============================================================================
    //==========================Left Breast text menu==========================
    var LBTxtRadio:RadioButtonGroup=new RadioButtonGroup("LBTxtRadio");
    LBtextMenu.LBotherTxt.group=LBTxtRadio;
    LBtextMenu.LBnames.group=LBTxtRadio;
    LBtextMenu.LBotherTxt.addEventListener(MouseEvent.CLICK, LBshowResult);
    LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK,LBshowResult);
    function LBshowResult(event:MouseEvent):void {
       switch (LBTxtRadio.selection) {
              case LBtextMenu.LBotherTxt :
               trace ("LB other chosen");
                            break;
                           case LBtextMenu.LBnames :
               trace ("LB names chosen");
                            break;
    //==============================================================================
    //==========================Left Shoulder text menu==========================
    var LSTxtRadio:RadioButtonGroup=new RadioButtonGroup("LSTxtRadio");
    LStextMenu.LSotherTxt.group=LSTxtRadio;
    LStextMenu.LSnames.group=LSTxtRadio;
    LStextMenu.LSotherTxt.addEventListener(MouseEvent.CLICK, LSshowResult);
    LStextMenu.LSnames.addEventListener(MouseEvent.CLICK,LSshowResult);
    function LSshowResult(event:MouseEvent):void {
       switch (LSTxtRadio.selection) {
              case LStextMenu.LSotherTxt :
               trace ("LS other chosen");
                            break;
                           case LStextMenu.LSnames :
               trace ("LS names chosen");
                            break;
    //==============================================================================
    //==========================Right Shoulder text menu==========================
    var RSTxtRadio:RadioButtonGroup=new RadioButtonGroup("RSTxtRadio");
    RStextMenu.RSotherTxt.group=RSTxtRadio;
    RStextMenu.RSnames.group=RSTxtRadio;
    RStextMenu.RSotherTxt.addEventListener(MouseEvent.CLICK, RSshowResult);
    RStextMenu.RSnames.addEventListener(MouseEvent.CLICK,RSshowResult);
    function RSshowResult(event:MouseEvent):void {
       switch (RSTxtRadio.selection) {
              case RStextMenu.RSotherTxt :
               trace ("RS other chosen");
                            break;
                           case RStextMenu.RSnames :
               trace ("RS names chosen");
                            break;
    //==============================================================================
    [/AS]
    I have no problem choosing between either, other text button or names, only one is selected at a time, but this isnt the case for the other group im able to select multiple name buttons without the other one becoming deselected.
    Thanks in advance for any help.

    Hi just if anyone else wants to do something like i have, I had to ditch the radio button component and make my own.
    Heres the code.
    [AS]
    RBnamesTextButton.CustomRadioButton.stop();
    LBnamesTextButton.CustomRadioButton.stop();
    RSnamesTextButton.CustomRadioButton.stop();
    LSnamesTextButton.CustomRadioButton.stop();
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    function rollOverState01(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("over");
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    function rollOffState01(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("off");
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    function rollupState01(event:MouseEvent):void
              RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              event.target.gotoAndStop(3);
    //======================================OTHER TEXT========================================================
    RBotherTextButton.CustomRadioButton.stop();
    LBotherTextButton.CustomRadioButton.stop();
    LSotherTextButton.CustomRadioButton.stop();
    RSotherTextButton.CustomRadioButton.stop();
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    function rollOverState02(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("over");
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    function rollOffState02(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("off");
    //===============================RB BUTTONS================================================
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState03);
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState04);
    function rollupState03(event:MouseEvent):void
              RBnamesTextButton.CustomRadioButton.gotoAndStop(3);
              RBotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Breast names clicked")
    function rollupState04(event:MouseEvent):void
              RBotherTextButton.CustomRadioButton.gotoAndStop(3);
              RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Breast text clicked")
    //======================================================================================== =======
    //===============================LB BUTTONS================================================
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState05);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState06);
    function rollupState05(event:MouseEvent):void
              LBnamesTextButton.CustomRadioButton.gotoAndStop(3);
              LBotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Breast names clicked")
    function rollupState06(event:MouseEvent):void
              LBotherTextButton.CustomRadioButton.gotoAndStop(3);
              LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Breast text clicked")
    //======================================================================================== =======
    //===============================RS BUTTONS================================================
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState07);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState08);
    function rollupState07(event:MouseEvent):void
              RSnamesTextButton.CustomRadioButton.gotoAndStop(3);
              RSotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Shoulder names clicked")
    function rollupState08(event:MouseEvent):void
              RSotherTextButton.CustomRadioButton.gotoAndStop(3);
              RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Shoulder text clicked")
    //======================================================================================== =======
    //===============================LS BUTTONS================================================
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState09);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState10);
    function rollupState09(event:MouseEvent):void
              LSnamesTextButton.CustomRadioButton.gotoAndStop(3);
              LSotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Shoulder names clicked")
    function rollupState10(event:MouseEvent):void
              LSotherTextButton.CustomRadioButton.gotoAndStop(3);
              LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Shoulder text clicked")
    //======================================================================================== =======
    [/AS]
    There is probably a more efficent way to code this but im an AS noob :]

  • Adding a custom button to the Builtin Button Group of an MVToolbar object.

    I suspect this is not possible, however, I would like to add a custom button to the built-in button group of an MVToolBar object. I have attempted to do this with the following code:
    // Create an array of the built-in buttons I require
    var toolArry = new Array();
    toolArry.push(MVToolBar.BUILTIN_CIRCLE);
    toolArry.push(MVToolBar.BUILTIN_RECTANGLE);
    toolArry.push(MVToolBar.BUILTIN_REDLINE);
    // Create the MVToolBar object using the array items created above
    createLocToolBar = new MVToolBar("createLocShapes",toolArry,MVToolBar.HORIZONTAL);
    // Add the Toolbar to the map view object
    mapview.addToolBar(createLocToolBar);
    // Create the required custom button
    createLineBtn = new MVToolButton("createLine",MVToolButton.TOGGLE,"/i/blue_arrow_down.gif","/i/blue_arrow_up.gif");
    // Attempt to add the custom button to the built-in toolbar
    createLocToolBar.getBuiltInButtonGroup().add(createLineBtn);
    Upon running the above script, the built-in buttons I've defined in the array are displayed as expected, but the custom button does not appear (no errors are displayed either).
    If I comment out the above line and instead include the line below, the custom button is displayed, but of course this is not part of the built-in group.
    createLocToolBar.addButton(createLineBtn);
    Any assistance greatly appreciated,
    JR

    Thanks for the reply, Michael. I understand that the Login.jsp needs to be modified and redeployed, but the question is how to create a new button with the same look and feel as the Login button. Currently we have modified the Login.jsp with a "Forgot Password" html link, but it would be prefered to create a button to match what already exists. I understand that this might be outside the scope of this forum, but I was hoping that someone that has done this (specifically the original poster if he found a solution) could share the relevent code.

  • Radio Button group with images stored as BLOB files in database

    Hey all!
    I have radio button group, my idea is that radio button's LOV must display images, I mean BLOB files stored in a table.
    How can I do this?

    Hello Ken,
    I asked similar question in the past, and I believe the answer is still the same.
    Select List as an option of a Radio Group
    In your case, I think you can use a select list with added functionality, like "Select List with Branch to Page" or "Select list with Submit", or you can just attach an onChange event (JavaScript) to each select list. The effect should be similar to a radio group – as soon as the user select one item from any of the select lists, you can fire some action, based on the select list value.
    Hope this can help,
    Arie.

  • Multiple button groups

    Hey everyone I am writing a program that contains 2 button groups(of radio buttons) and I am try to set a different value of Height for every height, and either the gender of male or female. But i can't get the getActionCommand to work with it. I don't know how to make it select one button for each group here is my code.
    import java.awt.* ;
    import java.awt.event.*;
    import javax.swing.*;
    public class IdealWeightCalculator extends JFrame implements ActionListener
      JRadioButton genderM, genderF;
      ButtonGroup  genderGroup;
      JPanel       genderPanel;
      JRadioButton heightA, heightB, heightC, heightD, heightE;
      ButtonGroup  heightGroup;
      JPanel       heightPanel;
      JTextField   resultText;
      JLabel       resultLabl;
      JPanel       resultPanel;
      double W,H;
      public IdealWeightCalculator() 
        setTitle( "Your Ideal Weight" );
        setDefaultCloseOperation( EXIT_ON_CLOSE );
        // gender group
        genderM = new JRadioButton("Male", true );
        genderF = new JRadioButton("Female", false );
        genderGroup = new ButtonGroup();
        genderGroup.add( genderM );  genderGroup.add( genderF );
        genderPanel = new JPanel();
        genderPanel.setLayout(
            new BoxLayout( genderPanel, BoxLayout.Y_AXIS ) );
        genderPanel.add( new JLabel("Your Gender") );
        genderPanel.add( genderM );  genderPanel.add( genderF );
        // height group
        heightA = new JRadioButton("60 to 64 inches", true  );
        heightB = new JRadioButton("64 to 68 inches", false );
        heightC = new JRadioButton("68 to 72 inches", false );
        heightD = new JRadioButton("72 to 76 inches", false );
        heightE = new JRadioButton("76 to 80 inches", false );
        heightGroup = new ButtonGroup();
        heightGroup.add( heightA ); heightGroup.add( heightB );
        heightGroup.add( heightC ); heightGroup.add( heightD );
        heightGroup.add( heightE );
        heightPanel = new JPanel();
        heightPanel.setLayout(
            new BoxLayout( heightPanel, BoxLayout.Y_AXIS ) );
        heightPanel.add( new JLabel("Your Height") );
        heightPanel.add( heightA ); heightPanel.add( heightB );
        heightPanel.add( heightC ); heightPanel.add( heightD );
        heightPanel.add( heightE );
        // result panel
        resultText  = new JTextField(7);
        resultText.setEditable( false );  
        resultLabl  = new JLabel("Ideal Weight");
        resultPanel = new JPanel();
        resultPanel.add( resultLabl );
        resultPanel.add( resultText );
        // content pane
        getContentPane().setLayout( new BorderLayout() );
        getContentPane().add( genderPanel, BorderLayout.WEST );
        getContentPane().add( heightPanel, BorderLayout.EAST );
        getContentPane().add( resultPanel, BorderLayout.SOUTH  );
        genderM.setActionCommand("male");
        genderF.setActionCommand("female");
        heightA.setActionCommand("1");
        heightB.setActionCommand("2");
        heightC.setActionCommand("3");
        heightD.setActionCommand("4");
        heightE.setActionCommand("5");
        genderM.addActionListener( this );
        genderF.addActionListener( this );
        heightA.addActionListener( this );
        heightB.addActionListener( this );
        heightC.addActionListener( this );
        heightD.addActionListener( this );
        heightE.addActionListener( this );
    public void malecalc(){
         W=(H*H)/28;
    public void femalecalc(){
         W=(H*H)/30;
    public void actionPerformed( ActionEvent evt) 
           /*if (evt.getActionCommand().equals("male")){
                if (evt.getActionCommand().equals("1")){
                     H=62;
                     malecalc();
           if (evt.getActionCommand().equals("male")){
                if(evt.getActionCommand().equals("1")){
                     H=62;
                     malecalc();
                else if (evt.getActionCommand().equals("2")){
                     H=66;
                     malecalc();
                else if (evt.getActionCommand().equals("3")){
                     H=70;
                     malecalc();     
                else if (evt.getActionCommand().equals("4")){
                     H=74;
                     malecalc();     
                else if (evt.getActionCommand().equals("5")) {
                     H=78;
                     malecalc();     
           else if (evt.getActionCommand().equals("female")){
                if(evt.getActionCommand().equals("1")){
                     H=62;
                     femalecalc();
                else if (evt.getActionCommand().equals("2")){
                     H=66;
                     femalecalc();
                else if (evt.getActionCommand().equals("3")){
                     H=70;
                     femalecalc();
                else if (evt.getActionCommand().equals("4")){
                     H=74;
                     femalecalc();     
                else if (evt.getActionCommand().equals("5")) {
                     H=78;
                     femalecalc();     
           resultText.setText( (W+"      ")  );
        repaint();                 
      public static void main ( String[] args )
        IdealWeightCalculator weightApp  = new IdealWeightCalculator() ;
        weightApp.setSize( 250, 225 );  
        weightApp.setVisible( true );       
    }

    solved it myself

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

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

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

Maybe you are looking for

  • New iMac as second display for MacBook Pro not working

    I just bought the new thin 2012 27" iMac as a replacement to the last model I had. I want to use the iMac as a second display for my 2012 MacBook Pro. I have a Mini Display Port to Mini Display Port cable that used to work with my previous setup and

  • Sessions

    Hi I guess its pretty easy but does anyone have a definitive guide to using sessions in servlets? I see lots of references regarding cookies, url rewriting and HttpSession object. Which is best / easiest to use? Any direction much appreciated. Thanks

  • Making Settlement rule mandatory for creating any WBS element

    Hello All, We have an requirement that system should not allow us to save any WBS element until the settlement rule is maintained. This we want only for WBS elements where Investment rule is not assigned. Can alyone help me to find out if this is pos

  • Oracle 8i or Discoverer first ?

    I need to install Oracle Standard Edition 8.1.7 and Discoverer Admin Edition 4.1.37 on Windows 2000. 1/ should I first install Oracle or Discoverer ? 2/ should I install both in the same Home or in separate Homes ? Thank you !

  • Newbie in iplanet "does iplanet supports struts and mysql"

    hi i am a newbie in iplanet , i wish to know that do iplanet webserver 6.0 sp4 supports struts application, as i have a running struts appiication which is deployed on tomcat but its not working on iplanet is there any kind of special configuration i