Radi button

Hi EXperts,
In my selection screen one radio button group  with 3 buttons
1) report
2)download to PC
3)download to APPLICATION SERVER
How to handle this situation.
Points will be rewarded.

selection-screen begin of block abc.
prameters: p_list radiobutton group gp1,
                p_pc  radiobutton group gp1,
                p_serv radiobutton group gp1.
selection-screen end of block abc.
if p_list eq 'X'.
* write the report output
elseif p_pc eq 'X'.
* download to pc using the GUI_DOWNLOAD function call or the
* GUI_DOWNLOAD Method in the Class CL_GUI_FRONTEND_SERVICES
elseif p_serv eq 'X'.
* put the fiel on the App Server using the OPEN,TRANSFER & CLOSE
*  DATASET Statements
endif.
~Suresh

Similar Messages

  • Hide Radi Button

    Hi Friends,
    I have a requirement where i have to hide or show radio buttons based on employee SUBTYPE , say example i have three radio buttons like 1. Savings 2. Checking 3. Fixed
    Here the Scenario:
    String Value = wdContext.currentSubtypesElement().getSubtype();
    if (Value = 9U01)
    I have to show 2 Radio buttons (1. Savings 2. Checking )
    else{
    I ahve to show 3 Radio button that is ( 1. Savings 2. Checking 3.Fixed)
    To achieve the above functionality i am doing this;
    After implementing below give code , if i click on Subtype 01 for Main Bank it is showing 3 Radio buttons as i expected but if i come back and select Subtype 9U01 for Fixed it is till showing 3 Radio Butons where as it should show  2 Radio Buttons.
    some how theo  Subtype value is not getting refresh when i come back from Detail screen to Overview screen, please help.
         String Value = wdContext.currentSubtypesElement().getSubtype();
         if (!Value.equals("9U01") && Value.equals("0") || Value.equals("2") )
              Collection coll = new ArrayList();
              IPrivateDetailView.IAccount_type_radiobuttonElement elementRadio0 = wdContext.createAccount_type_radiobuttonElement();
              IPrivateDetailView.IAccount_type_radiobuttonElement elementRadio1 = wdContext.createAccount_type_radiobuttonElement();
              IPrivateDetailView.IAccount_type_radiobuttonElement elementRadio2 = wdContext.createAccount_type_radiobuttonElement();
              elementRadio0.setText(wdThis.wdGetAPI().getComponent().getTextAccessor().getText("Savings"));
              elementRadio0.setValue("01");
              coll.add(elementRadio0);
              elementRadio1.setText(wdThis.wdGetAPI().getComponent().getTextAccessor().getText("Checking"));
              elementRadio1.setValue("02");
              coll.add(elementRadio1);
              elementRadio2.setText("None");
                   elementRadio2.setText("Fixed");
                   elementRadio2.setValue("");
                   coll.add(elementRadio2);
              node.bind(coll);
    else
              Collection coll = new ArrayList();
              IPrivateDetailView.IAccount_type_radiobuttonElement elementRadio0 = wdContext.createAccount_type_radiobuttonElement();
              IPrivateDetailView.IAccount_type_radiobuttonElement elementRadio1 = wdContext.createAccount_type_radiobuttonElement();
              elementRadio0.setText(wdThis.wdGetAPI().getComponent().getTextAccessor().getText("Savings"));
              elementRadio0.setValue("01");
              coll.add(elementRadio0);
              elementRadio1.setText(wdThis.wdGetAPI().getComponent().getTextAccessor().getText("Checking"));
              elementRadio1.setValue("02");
              coll.add(elementRadio1);
              node.bind(coll);
    Thanks
    Advance
    Edited by: peter Mark on Mar 16, 2009 4:03 PM

    Peter,
    Usually it is good to define your UI elements at design time and control their visibility at run time. However, I believe you are working in ESS banking area here and might want to use the existing functionality.
    So far, I'm not certain about the behavior of Radio buttons but I noticed couple of things in your code.
    If value for subtype 9U01 equals "9U01", should this not be "01" for Subtype 01?
    If this is true then you are not checking for this value here
    if (!Value.equals("9U01") && Value.equals("0") || Value.equals("2") )
    If that case, there is something amiss with above condition as this is true all the time.
    Please let me know if I misunderstood something here.
    Regards,
    Vishwas.

  • Problem with JRadio button

    Hi i am designing UI using Java swings. I am populating a table with 3 columns col 1:strings col2:check box col3:radio button. The requirement(1) is whenever user clicks on the string column then only he should be able to check/uncheck the corr radio/check box on that corresponding row another requiement(2) is he can only choose 1 radiobuton for the entire table for this i implemented using button group bt its not working correctly as i am able to choose multiple radi buttons at a time. If we see on the code below i am creating the group at the time of populating the table :
    for(count=0;count<vctToAdd.size();count++)
    rdOutput[count]=new JRadioButton();
    rdOutput[count].setText(vctToAdd.get(count).getName());
    rdOutput[count].setEnabled(true);
    rdOutput[count].addMouseListener(AddEntitiesDialog.getInstance().actionJtable);
    group.add(rdOutput[count]);
    _display[count][0]=vctToAdd.get(count).getName();
    _display[count][1]=chkInput[count];
    _display[count][2]=rdOutput[count];
    }And in listener class i am implementing requirement 1 as follows:
    if(e.getSource() instanceof JRadioButton )
         if(((JRadioButton)e.getSource()).getText().equalsIgnoreCase(obj.toString()))
            ((JRadioButton)e.getSource()).setSelected(true);
    else
              ((JRadioButton)e.getSource()).setSelected(false);where obj is contains the string value of string fiels for table and o am checking it with the text of radio button which i am setting same as string value if it matches it persorms that if operation otherwise go to else.
    please help
    Thanks

    Hi i am designing UI using Java swings. I am populating a table with 3 columns col 1:strings col2:check box col3:radio button. The requirement(1) is whenever user clicks on the string column then only he should be able to check/uncheck the corr radio/check box on that corresponding row another requiement(2) is he can only choose 1 radiobuton for the entire table for this i implemented using button group bt its not working correctly as i am able to choose multiple radi buttons at a time. If we see on the code below i am creating the group at the time of populating the table :
    for(count=0;count<vctToAdd.size();count++)
    rdOutput[count]=new JRadioButton();
    rdOutput[count].setText(vctToAdd.get(count).getName());
    rdOutput[count].setEnabled(true);
    rdOutput[count].addMouseListener(AddEntitiesDialog.getInstance().actionJtable);
    group.add(rdOutput[count]);
    _display[count][0]=vctToAdd.get(count).getName();
    _display[count][1]=chkInput[count];
    _display[count][2]=rdOutput[count];
    }And in listener class i am implementing requirement 1 as follows:
    if(e.getSource() instanceof JRadioButton )
         if(((JRadioButton)e.getSource()).getText().equalsIgnoreCase(obj.toString()))
            ((JRadioButton)e.getSource()).setSelected(true);
    else
              ((JRadioButton)e.getSource()).setSelected(false);where obj is contains the string value of string fiels for table and o am checking it with the text of radio button which i am setting same as string value if it matches it persorms that if operation otherwise go to else.
    please help
    Thanks

  • Help needed in selection screen - Urgent

    Hi Experts,
    I have a selection screen. I have three radi buttons in that selection screen. Based on the selection of the radio buttons I need to activate corresponding selection screen parameters.
    e.g : if radiobutton1 is selected, njo activation needed,
           if radiobutton2 is selected, activate selection screen parameter p_one,
           if radiobutton3 is selected, activate selection screen parameter p_two.
    All three radiobuttons are attached to the same radio button group.
    I have assigned the parameters p_one, p_two, p_three to MODIF ID as follows.
    p_one - NULL
    p_two - t01
    p_three - t02.
    on the selection of a radio button I want the corresponding parameter to get activated.
    please help me.
    Regards,
    Arul jothi A.

    hi
    jothi
    AT SELECTION-SCREEN OUTPUT.                                      
      CASE SY-TCODE.                                                 
        WHEN 'ZEDI6'.                                                
          LOOP AT SCREEN.                                             
            CASE SCREEN-GROUP4.                                      
              WHEN '001'.                  "Sales order select       
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '002'.                  "Delivery select          
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                        
              WHEN '003'.                  "Invoice select           
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '004'.                  "PO Select                
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
    regards
    praveen

  • How do I convert an applet to a standalone application.

    Hi Everyone,
    I am currently working on this Applet, I have tried putting the main in and building a frame to hold the applet but everytime I try something I just get new errors, What I conclusively want to do is put the applet in a frame and add menus to the frame. I have listed the code below, its quite a lot, I hope someone can help though, am pulling hair out.
    Many Thanks. Chris
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
      public class SciCalc extends Applet implements ActionListener
      // Entered a UID due to String conversion
        private static final long serialVersionUID = 1;
           int Counter;           //Counts the number of digits entered
           double Result;           //The answer displayed, as well as the second
                                 //operator taken for an operation
           double Operand;          //The first number entered for an operation
           double Mem;            //The variable which holds whatever value the user
                                 //wants kept in "memory"
           boolean DecimalFlag;       //The 'flag' that will signify whether or not the
                                 //decimal button has been pressed
           boolean SignFlag;        //The 'flag' that will signify whether or not the
                                 //plus/minus button has been pressed
           boolean OperatorKey;       //The 'flag' that will signify whether or not any
                                 //operator button has been pressed
           boolean FunctionKey;       //The 'flag' that will signify whether or not any
                        //function button has been pressed
           boolean Rad,Grad,Deg;     //The 'flags' that will signify that Rad, Grad or
                        //deg has been pressed
           int Operator;          //an integer value to indicate which operator
                                 //button was pressed
         char currchar;           //a character to hold the value of the key most
                                 //recently pressed
           String GrStatus;         //String to hold the status of various graphic
                                 //operations of the program
           String Status;           //String to hold the status of various parts
                                 //of the program
    //     LABEL DECLARATIONS 
         //This label will display all error messages
           Label DisplError = new Label(" ",Label.CENTER);
           //This label is just to the left of the Display Label lcdDisplay, and will
           //indicate whether or not a value is being held in the calculator's "memory"
           Label LabelMem = new Label(" ",Label.LEFT);
           Label LabelRad = new Label(" ",Label.CENTER);
           Label LabelDeg = new Label(" ",Label.CENTER);
           Label LabelGrad = new Label(" ",Label.CENTER);
         //This is the Display Label, which is declared as a label so the user will not
            //be able to enter any text into it to possibly crash the calculator
           Label lcdDisplay = new Label("0",Label.RIGHT);
           Label SciCalc = new Label ("Sci Calc V1.0",Label.CENTER);
    //      END OF LABEL DECLARATIONS 
    public void surround (Graphics g){
        g.setColor(new Color(0,0,0));
        g.drawRect(0,0,350,400);
    //      DELCLARATION OF NUMERIC BUTTONS
           Button button1 = new Button("1");
           Button button2 = new Button("2");
           Button button3 = new Button("3");
           Button button4 = new Button("4");
           Button button5 = new Button("5");
           Button button6 = new Button("6");
           Button button7 = new Button("7");
           Button button8 = new Button("8");
           Button button9 = new Button("9");
           Button button0 = new Button("0");
    //      END OF NUMERIC BUTTON DECLARATION
    //     DECLARATION OF OPERATOR BUTTONS
           Button buttonMinus      = new Button("-");
           Button buttonMultiply   = new Button("x");
           Button buttonPlus       = new Button("+");
           Button buttonEquals     = new Button("=");
           Button buttonDivide     = new Button("�");
           Button buttonClear      = new Button("C");
           Button buttonDecimal    = new Button(".");
           Button buttonMPlus      = new Button("M+");
           Button buttonMClear     = new Button("MC");
           Button buttonMRecall       = new Button("MR");
    //     END OF OPERATOR BUTTON DECLARATION 
    //     SCIENTIFIC BUTTON DECLARATION
           Button buttonPi            = new Button("Pi");
           Button buttonSqrt       = new Button("Sqrt");
           Button buttonCbrt       = new Button("Cbrt");
           Button buttonx2            = new Button("x2");
           Button buttonyX         = new Button("yX");
           Button buttonPlusMinus  = new Button("+-");
           Button buttonRad        = new Button("RAD");
           Button buttonGrad       = new Button("GRAD");
           Button buttonDeg        = new Button("DEG");
           Button buttonSin        = new Button("SIN");
           Button buttonCos           = new Button("COS");
           Button buttonTan        = new Button("TAN");
           Button buttonExp        = new Button("EXP");
           Button buttonLogn           = new Button("Ln");
           Button buttonOpenBracket  = new Button("(");
           Button buttonLog        = new Button("log");
    //     END OF SCIENTIFIC BUTTON DECLARATION
    //     START OF INIT METHOD
    //This the only method that is called explicitly -- every other method is
    //called depending on the user's actions.
    public void init()
    //Allows for configuring a layout with the restraints of a grid or
    //something similar
         setLayout(null);
             //APPLET DEFAULTS
        //This will resize the applet to the width and height provided
             resize(350,400);
        //This sets the default font to Helvetica, plain, size 12
                  setFont(new Font("Helvetica", Font.PLAIN, 12));
        //This sets the applet background colour
                       setBackground(new Color(219,240,219));
         //END OF APPLET DEFAULTS
         //LABEL INITIALISATION     
    //Display Panel, which appears at the top of the screen. The label is
    //placed and sized with the setBounds(x,y,width,height) method, and the
    //font, foreground color and background color are all set. Then the
    //label is added to the layout of the applet.
             lcdDisplay.setBounds(42,15,253,30);
             lcdDisplay.setFont(new Font("Helvetica", Font.PLAIN, 14));
             lcdDisplay.setForeground(new Color(0,0,0));
             lcdDisplay.setBackground(new Color(107,128,128));
             add(lcdDisplay);
    //Memory Panel, which appears just to the right of the Display Panel.
    //The label is placed and sized with the setBounds(x,y,width,height)
    //method, and the font, foreground color and background color are all
    //set. Then the label is added to the layout of the applet.
             LabelMem.setBounds(20,15,20,30);
             LabelMem.setFont(new Font("Helvetica", Font.BOLD, 16));
             LabelMem.setForeground(new Color(193,0,0));
             LabelMem.setBackground(new Color(0,0,0));
             add(LabelMem);
    //Rad,Grad and Deg panels,which appear below the memory panel.
             LabelRad.setBounds(20,50,20,15);
             LabelRad.setFont(new Font("Helvetica", Font.BOLD, 8));
             LabelRad.setForeground(new Color(193,0,0));
             LabelRad.setBackground(new Color(0,0,0));
             add(LabelRad);
             LabelDeg.setBounds(20,70,20,15);
             LabelDeg.setFont(new Font("Helvetica", Font.BOLD, 8));
             LabelDeg.setForeground(new Color(193,0,0));
             LabelDeg.setBackground(new Color(0,0,0));
             add(LabelDeg);
             LabelGrad.setBounds(20,90,20,15);
             LabelGrad.setFont(new Font("Helvetica", Font.BOLD, 8));
             LabelGrad.setForeground(new Color(193,0,0));
             LabelGrad.setBackground(new Color(0,0,0));
             add(LabelGrad);
    //SciCalc v1.0 Label, this merely indicates the name.        
             SciCalc.setBounds(60,350,200,50);
             SciCalc.setFont(new Font("papyrus", Font.BOLD, 25));
             SciCalc.setForeground(new Color(0,50,191));
             SciCalc.setBackground(new Color(219,219,219));
             add(SciCalc);
         //END OF LABEL INITIALISATION
         //NUMERIC BUTTON INITIALISATION
             button1.addActionListener(this);
             button1.setBounds(42,105,60,34);
             button1.setForeground(new Color(0,0,0));
             button1.setBackground(new Color(128,128,128));
             button1.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button1);
             button2.addActionListener(this);
             button2.setBounds(106,105,60,34);
             button2.setForeground(new Color(0,0,0));
             button2.setBackground(new Color(128,128,128));
             button2.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button2);
             button3.addActionListener(this);
             button3.setBounds(170,105,60,34);
             button3.setForeground(new Color(0,0,0));
             button3.setBackground(new Color(128,128,128));
             button3.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button3);
             button4.addActionListener(this);
             button4.setBounds(42,145,60,34);
             button4.setForeground(new Color(0,0,0));
             button4.setBackground(new Color(128,128,128));
             button4.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button4);
             button5.addActionListener(this);
             button5.setBounds(106,145,60,34);
             button5.setForeground(new Color(0,0,0));
             button5.setBackground(new Color(128,128,128));
             button5.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button5);
             button6.addActionListener(this);
             button6.setBounds(170,145,60,34);
             button6.setForeground(new Color(0,0,0));
             button6.setBackground(new Color(128,128,128));
             button6.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button6);
             button7.addActionListener(this);
             button7.setBounds(42,185,60,34);
             button7.setForeground(new Color(0,0,0));
             button7.setBackground(new Color(128,128,128));
             button7.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button7);
             button8.addActionListener(this);
             button8.setBounds(106,185,60,34);
             button8.setForeground(new Color(0,0,0));
             button8.setBackground(new Color(128,128,128));
             button8.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button8);
             button9.addActionListener(this);
             button9.setBounds(170,185,60,34);
             button9.setForeground(new Color(0,0,0));
             button9.setBackground(new Color(128,128,128));
             button9.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button9);
             button0.addActionListener(this);
             button0.setBounds(106,225,60,34);
             button0.setForeground(new Color(0,0,0));
             button0.setBackground(new Color(128,128,128));
             button0.setFont(new Font("Dialog", Font.BOLD, 18));
             add(button0);
         //END OF NUMERIC BUTTON INITIALISATION        
         //OPERATOR BUTTON INITIALISATION         
             buttonDecimal.addActionListener(this);
             buttonDecimal.setBounds(42,225,60,34);
             buttonDecimal.setForeground(new Color(0,0,0));
             buttonDecimal.setBackground(new Color(254,204,82));
             buttonDecimal.setFont(new Font("Dialog", Font.BOLD, 18));
             add(buttonDecimal);
             buttonPlusMinus.addActionListener(this);
             buttonPlusMinus.setBounds(106,325,60,17);
             buttonPlusMinus.setForeground(new Color(0,0,0));
             buttonPlusMinus.setBackground(new Color(0,118,191));
             buttonPlusMinus.setFont(new Font("Dialog", Font.BOLD, 16));
             add(buttonPlusMinus);
             buttonMinus.addActionListener(this);
             buttonMinus.setBounds(234,145,60,34);
             buttonMinus.setForeground(new Color(0,0,0));
             buttonMinus.setBackground(new Color(254,204,82));
             buttonMinus.setFont(new Font("Dialog", Font.BOLD, 18));
             add(buttonMinus);
             buttonMultiply.addActionListener(this);
             buttonMultiply.setBounds(234,225,60,34);
             buttonMultiply.setForeground(new Color(0,0,0));
             buttonMultiply.setBackground(new Color(254,204,82));
             buttonMultiply.setFont(new Font("Dialog", Font.BOLD, 18));
             add(buttonMultiply);
             buttonPlus.addActionListener(this);
             buttonPlus.setBounds(234,105,60,34);
             buttonPlus.setForeground(new Color(0,0,0));
             buttonPlus.setBackground(new Color(254,204,82));
             buttonPlus.setFont(new Font("Dialog", Font.BOLD, 18));
             add(buttonPlus);
             buttonEquals.addActionListener(this);
             buttonEquals.setBounds(170,225,60,34);
             buttonEquals.setForeground(new Color(0,0,0));
             buttonEquals.setBackground(new Color(254,204,82));
             buttonEquals.setFont(new Font("Dialog", Font.BOLD, 18));
             add(buttonEquals);
             buttonDivide.addActionListener(this);
             buttonDivide.setBounds(234,185,60,34);
             buttonDivide.setForeground(new Color(0,0,0));
             buttonDivide.setBackground(new Color(254,204,82));
             buttonDivide.setFont(new Font("Dialog", Font.BOLD, 18));
             add(buttonDivide);
             buttonClear.addActionListener(this);
             buttonClear.setBounds(234,65,60,34);
             buttonClear.setFont(new Font("Dialog", Font.BOLD, 18));
             buttonClear.setForeground(new Color(0,0,0));
             buttonClear.setBackground(new Color(193,0,0));
             add(buttonClear);
             buttonMPlus.addActionListener(this);
             buttonMPlus.setBounds(170,65,60,34);
             buttonMPlus.setFont(new Font("Dialog", Font.BOLD, 18));
             buttonMPlus.setForeground(new Color(0,0,0));
             buttonMPlus.setBackground(new Color(254,204,82));
             add(buttonMPlus);
             buttonMClear.addActionListener(this);
             buttonMClear.setBounds(42,65,60,34);
             buttonMClear.setForeground(new Color(193,0,0));
             buttonMClear.setBackground(new Color(254,204,82));
             buttonMClear.setFont(new Font("Dialog", Font.BOLD, 18));
             add(buttonMClear);
             buttonMRecall.addActionListener(this);
             buttonMRecall.setBounds(106,65,60,34);
             buttonMRecall.setForeground(new Color(0,0,0));
             buttonMRecall.setBackground(new Color(254,204,82));
             buttonMRecall.setFont(new Font("Dialog", Font.BOLD, 18));
             add(buttonMRecall);
         //END OF OPERATOR BUTTON INITIALISATION
         // SCIENTIFIC BUTTONS INITIALISATION   
             buttonPi.addActionListener(this);
             buttonPi.setBounds(42,265,60,17);
             buttonPi.setForeground(new Color(0,0,0));
             buttonPi.setBackground(new Color(0,118,191));
             buttonPi.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonPi);
             buttonSqrt.addActionListener(this);
             buttonSqrt.setBounds(106,265,60,17);
             buttonSqrt.setForeground(new Color(0,0,0));
             buttonSqrt.setBackground(new Color(0,118,191));
             buttonSqrt.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonSqrt);
             buttonCbrt.addActionListener(this);
             buttonCbrt.setBounds(170,265,60,17);
             buttonCbrt.setForeground(new Color(0,0,0));
             buttonCbrt.setBackground(new Color(0,118,191));
             buttonCbrt.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonCbrt);
             buttonyX.addActionListener(this);
             buttonyX.setBounds(42,285,60,17);
             buttonyX.setForeground(new Color(0,0,0));
             buttonyX.setBackground(new Color(0,118,191));
             buttonyX.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonyX);
             buttonx2.addActionListener(this);
             buttonx2.setBounds(234,265,60,17);
             buttonx2.setForeground(new Color(0,0,0));
             buttonx2.setBackground(new Color(0,118,191));
             buttonx2.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonx2);
             buttonRad.addActionListener(this);
             buttonRad.setBounds(170,285,60,17);
             buttonRad.setForeground(new Color(0,0,0));
             buttonRad.setBackground(new Color(0,118,191));
             buttonRad.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonRad);
             buttonGrad.addActionListener(this);
             buttonGrad.setBounds(234,285,60,17);
             buttonGrad.setForeground(new Color(0,0,0));
             buttonGrad.setBackground(new Color(0,118,191));
             buttonGrad.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonGrad);
             buttonDeg.addActionListener(this);
             buttonDeg.setBounds(106,285,60,17);
             buttonDeg.setForeground(new Color(0,0,0));
             buttonDeg.setBackground(new Color(0,118,191));
             buttonDeg.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonDeg);
             buttonSin.addActionListener(this);
             buttonSin.setBounds(42,305,60,17);
             buttonSin.setForeground(new Color(0,0,0));
             buttonSin.setBackground(new Color(0,118,191));
             buttonSin.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonSin);
             buttonCos.addActionListener(this);
             buttonCos.setBounds(106,305,60,17);
             buttonCos.setForeground(new Color(0,0,0));
             buttonCos.setBackground(new Color(0,118,191));
             buttonCos.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonCos);
             buttonTan.addActionListener(this);
             buttonTan.setBounds(170,305,60,17);
             buttonTan.setForeground(new Color(0,0,0));
             buttonTan.setBackground(new Color(0,118,191));
             buttonTan.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonTan);
             buttonExp.addActionListener(this);
             buttonExp.setBounds(234,305,60,17);
             buttonExp.setForeground(new Color(193,0,0));
             buttonExp.setBackground(new Color(0,118,191));
             buttonExp.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonExp);
             buttonLogn.addActionListener(this);
             buttonLogn.setBounds(234,325,60,17);
             buttonLogn.setForeground(new Color(0,0,0));
             buttonLogn.setBackground(new Color(0,118,191));
             buttonLogn.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonLogn);
             buttonOpenBracket.addActionListener(this);
             buttonOpenBracket.setBounds(42,325,60,17);
             buttonOpenBracket.setForeground(new Color(0,0,0));
             buttonOpenBracket.setBackground(new Color(0,118,191));
             buttonOpenBracket.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonOpenBracket);
             buttonLog.addActionListener(this);
             buttonLog.setBounds(170,325,60,17);
             buttonLog.setForeground(new Color(0,0,0));
             buttonLog.setBackground(new Color(0,118,191));
             buttonLog.setFont(new Font("Dialog", Font.BOLD, 10));
             add(buttonLog);
         //END OF SCIENTIFIC BUTTON INITIALISATION     
         //DISPLERROR INITIALISATION      
             DisplError.setBounds(42,45,253,15);
             DisplError.setFont(new Font("Dialog", Font.BOLD, 8));
             DisplError.setForeground(new Color(16711680));
             DisplError.setBackground(new Color(0));
             add(DisplError);
         //END OF DISPLERROR INITIALISATION
             Clicked_Clear();      //calls the Clicked_Clear method (C button)
         } //END OF INIT METHOD
    //The following integers are declared as final as they will
    //be used for determining which button has been pushed
         public final static int OpMinus=11,
                                     OpMultiply=12,
                                     OpPlus=13,
                                     OpDivide=15,
                                     OpMPlus=19,
                                     OpMClear=20,
                                     OpMR=21,
                                     OpyX=22,
                                     OpExp=23;
    //This method is called whenever anything needs to be displayed
    //in the error message field at the bottom of the calculator,
    //accepting a String as an argument
      void DisplayError(String err_msg)
    //Calls the setText method of the Label DisplError, sending
    //whatever string it received initially
        DisplError.setText(err_msg);
    //This method is called whenever a numeric button (0-9) is pushed.
    public void NumericButton(int i)
         DisplayError(" ");      //Clears the error message field
    //Declares a String called Display that will initialize to whatever
    //is currently displayed in the lcdDisplay of the calculator
        String Display = lcdDisplay.getText();
    //Checks if an operator key has just been pressed, and if it has,
    //then the limit of 20 digits will be reset for the user so that
    //they can enter in up to 20 new numbers
             if (OperatorKey == true)
               Counter = 0;
             Counter = Counter + 1;    //increments the counter
    //This is a condition to see if the number currently displayed is zero OR
    //an operator key other than +, -, *, or / has been pressed.
             if ((Display == "0") || (Status == "FIRST"))
               Display= "";      //Do not display any new info
             if (Counter < 21)     //if more than 20 numbers are entered
    //The number just entered is appended to the string currently displayed
         Display = Display + String.valueOf(i);
             else
    //call the DisplayError method and send it an error message string
         DisplayError("Digit Limit of 20 Digits Reached");
         lcdDisplay.setText(Display);       //sets the text of the lcdDisplay          
                                       //Label
        Status = "VALID";            //sets the Status string to valid
        OperatorKey = false;           //no operator key was pressed
        FunctionKey = false;           //no function key was pressed
    //This method is called whenever an operator button is pressed, and is   
    //sent an integer value representing the button pressed.
           public void OperatorButton(int i)
         DisplayError(" ");      //Clears the error message field
    //Creates a new Double object with the specific purpose of retaining
    //the string currently on the lcdDisplay label, and then immediately
    //converts that string into a double-precision real number and then
    //gives that number to the variable Result.
             Result = (new Double(lcdDisplay.getText())).doubleValue();
    //If no operator key has been pressed OR a function has been pressed
         if ((OperatorKey == false) || (FunctionKey = true))
         switch (Operator)     //depending on the operation performed
    //if the user pressed the addition button, add the two numbers
    //and put them in double Result
            case OpPlus     : Result = Operand + Result;
                      break;
    //if the user pressed the subtraction button, subtract the two
    //numbers and put them in double Result
         case OpMinus    : Result = Operand - Result;
                      break;
    //if the user pressed the multiplication button, multiply
    //the two numbers and put them in double Result
            case OpMultiply : Result = Result * Operand;
                      break;
    //if the user pressed the yX button, take first number
    //and multiply it to the power of the second number                 
         case OpyX : double temp1=Operand;
                        for (int loop=0; loop<Result-1; loop++){
                              temp1= temp1*Operand;
                        Result=temp1;
                      break;
    //if the user pressed the Exp button -----------------Find out what this does-------------         
         case OpExp :  temp1=10;
                          for(int loop=0; loop<Result-1; loop++)
                          temp1=temp1*10;
                           Result=Result*temp1;
                     break;
    //if the user pressed the division button, check to see if
    //the second number entered is zero to avoid a divide-by-zero
    //exception
            case OpDivide   : if (Result == 0)
                        //set the Status string to indicate an
                        //an error
                        Status = "ERROR";
                        //display the word "ERROR" on the
                        //lcdDisplay label
                        lcdDisplay.setText("ERROR");
                        //call the DisplayError method and
                        //send it a string indicating an error
                        //has occured and of what type
                        DisplayError("ERROR: Division by Zero");
                      else
                        //divide the two numbers and put the
                        //answer in double Result
                   Result = Operand / Result;
    //if after breaking from the switch the Status string is not set
    //to "ERROR"
              if (Status != "ERROR")
            Status = "FIRST";      //set the Status string to "FIRST" to
                                 //indicate that a simple operation was
                                 //not performed
            Operand = Result; //Operand holds the value of Result
            Operator = i;   //the integer value representing the
                            //operation being performed is stored
                            //in the integer Operator
            //The lcdDisplay label has the value of double Result
            //displayed
         lcdDisplay.setText(String.valueOf(Result));
            //The boolean decimal flag is set false, indicating that the
            //decimal button has not been pressed
         DecimalFlag = false;
            //The boolean sign flag is set false, indicating that the sign
            //button has not been pressed
         SignFlag = false;
            //The boolean OperatorKey is set true, indicating that a simple
            //operation has been performed
         OperatorKey = true;
            //The boolean FunctionKey is set false, indicating that a
            //function key has not been pressed
         FunctionKey = false;
            DisplayError(" ");    //Clears the error message field
      }     //end of OperatorButton method
      //This is a method that is called whenever the decimal button is
      //pressed.
      public void DecimalButton()
        DisplayError(" ");    //Clears the error message field
      //Declares a String called Display that will initialize to whatever
      //is currently displayed in the lcdDisplay of the calculator
        String Display = lcdDisplay.getText();
        //if a simple operation was performed successfully
         if (Status == "FIRST")
          Display = "0";    //set Display string to character 0
        //If the decimal button has not already been pressed
         if (!DecimalFlag)
          //appends a decimal to the string Display
          Display = Display + ".";
        else
               //calls the DisplayError method, sending a string
               //indicating that the number already has a decimal
          DisplayError("Number already has a Decimal Point");
             //calls the setText method of the Label lcdDisplay and
              //sends it the string Display
        lcdDisplay.setText(Display);
         DecimalFlag = true;        //the decimal key has been pressed
             Status = "VALID";        //Status string indicates a valid
                               //operation has been performed
        OperatorKey = false;         //no operator key has been pressed
      } //end of the DecimalButton method
      /* This method is called whenever the percent button is pressed
      void Open_Bracket(){
        String Display = "(";
        lcdDisplay.setText(Display);//-----------Change this--------------
    //This method is called first when the calculator is initialized
    //with the init() method, and is called every time the "C" button
    //is pressed
      void Clicked_Clear()
        Counter = 0;        //sets the counter to zero
        Status = "FIRST";   //sets Status to FIRST
        Operand = 0;        //sets Operand to zero
        Result = 0;         //sets Result to zero
        Operator = 0;       //sets Operator integer to zero
        DecimalFlag = false;         //decimal button has not been
                                     //pressed
        SignFlag = false;          //sign button has not been pressed
        OperatorKey = false;         //no operator button has been
                                //pressed
        FunctionKey = false;         //no function button has been
                                //pressed
    //calls the setText method of Label lcdDisplay and sends
    //it the character "0"
        lcdDisplay.setText("0"); 
        DisplayError(" ");           //clears the error message field
    //This method is called whenever the sign button is pressed
         void PlusMinusButton()
        DisplayError(" ");           //clears the error message field
    //Declares a String called Display that will initialize to whatever
    //is currently displayed in the lcdDisplay of the calculator
        String Display = lcdDisplay.getText();
    //if Status is not set to FIRST and the Display string does not
    //hold the value "0"
        if ((Status != "FIRST") || (Display != "0"))
    //Creates a new Double object with the specific purpose of retaining
    //the string currently on the lcdDisplay label, and then immediately
    //converts that string into a double-precision real number and then
    //gives that number to the variable Result.
          Result = (new Double(lcdDisplay.getText())).doubleValue();
          //sets the double Result to it's negative value
          Result = -Result;
          //call the setText method of Label lcdDisplay and send it the string
          //that represents the value in Result
          lcdDisplay.setText(String.valueOf(Result));
          Status = "VALID";        //sets Status string to VALID
          SignFlag = true;         //the sign button has been pressed
          DecimalFlag = true;        //a decimal has appeared
      } //end of the PlusMinusButton method
    //This method is called whenever the square button is pressed */
         void SqrButton()
        DisplayError(" ");      //clears the error message field
    //Declares a String called Display that will initialize to whatever
    //is currently displayed in the lcdDisplay of the calculator
        String Display = lcdDisplay.getText();
    //if Status is not set to FIRST and the Display string does not
    //hold the value "0"
        if ((Status != "FIRST") || (Display != "0"))
    //Creates a new Double object with the specific purpose of retaining
    //the string currently on the lcdDisplay label, and then immediately
    //converts that string into a double-precision real number and then
    //gives that number to the variable Result.
          Result = (new Double(lcdDisplay.getText())).doubleValue();
    //multiply the double Result by itself, effectively squaring
    //the number
          Result = Result * Result;
    //call the setText method of Label lcdDisplay and send it the string
    //that represents the value in Result
         lcdDisplay.setText(                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                &

    Chris,
    Two issues:
    1) Applet has init(), start(), etc. Application has main().
    2) Applet is a container and you can add stuff to it. With application, you need to create your own container.
    What you want to do is code so that you can run either way. In the applet, create a Panel or JPanel and add everything to the panel. Then add the panel to the applet. Get that working as an applet.
    Now add a main(). All it has to do is create a Frame or JFrame, add the panel to the frame and then call init().
    On another subject, your code looks very good, except for the method length getting out of hand. Try breaking init() into pieces in a bunch of methods:
    public void init() {
       doThis();
       doThat();
       doTheOther();
    private void doThis() {
       // maybe a couple dozen lines here
    // etc.

  • How to reduce the barcode size

    hi
    How to reduce the barcode size in smartforms
    Thanks & Regards
    krishna rao

    Hai,
    Go to se73
    select system barcodes radi button
    click change button
    it wil moves to another screen .In that screen it wil show all Bar codes.
    select u r barcode from the list  click and change button.
    in this way u wil change barcode size.
    Reagards.
    kishore ale

  • Problem with table sorting,

    Hi To All,
    I am having table,I am doing the sorting for this table using sql query order by.
    I have the code when i click on radi button with value="1",it is soring the table by ascending,and if click on the radio button with value="2",
    it is sorting in descending order.
    I want the code like,If i click on the arrow,Sorting should happen.Like if the records are in ascending order arow should be up and if i click on descending order arow should be down.
    can any body give me the idea.
    My code is as follows.
    <table>
    <th>
    <td >TestCase Name
    <select name="<%= TestCasesData.SORT_BY%>0">
    <option value="1" <%= (filterObject.getSortBy1()==1)? "selected":"" %>>TestCase Name</option>
    <input type="radio" name="<%= TestCasesData.RADIO %>0" value="1" <%= (filterObject.getAscDesc1()== 1)? "checked":"" %>>asc
    <input type="radio" name="<%= TestCasesData.RADIO %>0" value="2" <%= (filterObject.getAscDesc1()== 2)? "checked":"" %>>desc
    </td>
    <td>Created by
    <select name="<%= TestCasesData.SORT_BY%>0">
    <option value="1" <%= (filterObject.getSortBy1()==1)? "selected":"" %>>TestCase Name</option>
    <input type="radio" name="<%= TestCasesData.RADIO %>0" value="1" <%= (filterObject.getAscDesc1()== 1)? "checked":"" %>>asc
    <input type="radio" name="<%= TestCasesData.RADIO %>0" value="2" <%= (filterObject.getAscDesc1()== 2)? "checked":"" %>>desc
    </td>
    <td>Created Date
    <select name="<%= TestCasesData.SORT_BY%>0">
    <option value="1" <%= (filterObject.getSortBy1()==1)? "selected":"" %>>TestCase Name</option>
    <input type="radio" name="<%= TestCasesData.RADIO %>0" value="1" <%= (filterObject.getAscDesc1()== 1)? "checked":"" %>>asc
    <input type="radio" name="<%= TestCasesData.RADIO %>0" value="2" <%= (filterObject.getAscDesc1()== 2)? "checked":"" %>>desc
    </td>
    </th>
    <tr><td>--</td></tr>
    <tr><td>--</td></tr>
    <tr><td>--</td></tr>
    </table>

    I am using java
    Query is as follows
    for(int i=0;i<count;i++) {
    if((radio[i] == 1 || radio[i] == 2) && (sortBy[i] != -1)) {
    if(entered) {
    query.append(" order by ");
    entered = false;
    if(sortBy[i] == 1) {
    query.append(" test_case ");
    } else if(sortBy[i] == 2) {
    query.append(" cre_user ");
    } else if(sortBy[i] == 3) {
    query.append(" cre_date ");
    if(radio[i] == 1) {
    query.append(" asc , ");
    } else if(radio[i] == 2){
    query.append(" desc , ");
    query.append(" cre_date desc ");
    and i am getting parameter like as follows
    for(int i=0;i<count;i++) {
    if(request.getParameter(TestCasesData.SORT_BY+i) != null)
    testCasesData.sortBy[i] = Integer.parseInt(request.getParameter(TestCasesData.SORT_BY+i));
    System.out.println(testCasesData.sortBy);
                             if(request.getParameter(TestCasesData.RADIO+i) != null)
    testCasesData.radio[i] = Integer.parseInt(request.getParameter(TestCasesData.RADIO+i));
    and my java bean as follows
    package com.DB.RPT.Calc.TestReport.Web;
    public class FilterObject {
         //     fields available in search_criteria.jsp
         private String testCaseName="";
         private String createUser="";
         private String fromDate="";
         private String toDate="";
         private int sortBy1=1;
         private int sortBy2;
         private int sortBy3;
         private boolean isUserListEnabled;
         private int ascDesc1=1;
         private int ascDesc2;
         private int ascDesc3;
         public FilterObject() {
         public void resetForm() {          
              testCaseName="";
              createUser="";
              fromDate="";
              toDate="";
              sortBy1=1;
              sortBy2=0;
              sortBy3=0;
              isUserListEnabled=false;
              ascDesc1=1;
              ascDesc2=0;
              ascDesc3=0;
         public String getFromDate() {
              return fromDate;
         public void setFromDate(String fromDate) {
              this.fromDate = fromDate;
         public String getTestCaseName() {
              return testCaseName;
         public void setTestCaseName(String testCaseName) {
              this.testCaseName = testCaseName;
         public String getToDate() {
              return toDate;
         public void setToDate(String toDate) {
              this.toDate = toDate;
         public int getAscDesc1() {
              return ascDesc1;
         public void setAscDesc1(int ascDesc1) {
              this.ascDesc1 = ascDesc1;
         public int getAscDesc2() {
              return ascDesc2;
         public void setAscDesc2(int ascDesc2) {
              this.ascDesc2 = ascDesc2;
         public int getAscDesc3() {
              return ascDesc3;
         public void setAscDesc3(int ascDesc3) {
              this.ascDesc3 = ascDesc3;
         public int getSortBy1() {
              return sortBy1;
         public void setSortBy1(int sortBy1) {
              this.sortBy1 = sortBy1;
         public int getSortBy2() {
              return sortBy2;
         public void setSortBy2(int sortBy2) {
              this.sortBy2 = sortBy2;
         public int getSortBy3() {
              return sortBy3;
         public void setSortBy3(int sortBy3) {
              this.sortBy3 = sortBy3;
         public String getCreateUser() {
              return createUser;
         public void setCreateUser(String createUser) {
              this.createUser = createUser;
         public boolean getIsUserListEnabled() {
              return isUserListEnabled;
         public void setIsUserListEnabled(boolean isUserListEnabled) {
              this.isUserListEnabled = isUserListEnabled;
    If you want any clarificaton please ask me

  • SELECTION-SCREEN problem

    [Background:]
    (1)There are two parameters in a radio button group.
        One is P_SCREEN,it means display report on screen
       and another is P_FILE,it means output report into a file.
    (2)There is a parameter P_NTFILE, use it to indicate output file path.
    [Target:]
    (1)After the selection-screen built,
       If the P_FILE is checked,P_NTFILE should be enable.
       If the P_SCREEN is checked,P_NTFILE should be disable.
    [Code:]
    Parameter in Block2
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: P_SCREEN RADIOBUTTON GROUP R1. " Screen output
    SELECTION-SCREEN COMMENT 04(21) TEXT-001.
    SELECTION-SCREEN POSITION 32.
    PARAMETERS: P_FILE RADIOBUTTON GROUP R1. " NTFILE output
    SELECTION-SCREEN COMMENT 35(17) TEXT-002.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    Parameter in Block3
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME.
    PARAMETERS: P_NTFILE(45) TYPE C LOWER CASE OBLIGATORY MODIF ID SC1.
    P_PCFILE      LIKE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN END   OF BLOCK B3.
    *&      AT SELECTION-SCREE
    AT SELECTION-SCREEN.
      IF P_SCREEN = 'X'.
        FLAG = 0.
      ENDIF.
      IF P_FILE = 'X'.
        FLAG = 1.
      ENDIF.
    *&      AT SELECTION-SCREE ON <FIELD>
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP R1.
      IF P_SCREEN = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'SC1'.
            SCREEN-INPUT = FLAG.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
      IF P_FILE = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'SC1'.
            SCREEN-INPUT = FLAG.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    [Problem:]
    P_NTFILE can not refresh between enable and disable status.
    Anyone can help me?

    *& Report  Z_JAGANOBJECT                                               *
    REPORT  Z_JAGANOBJECT line-count 0(1)                          .
    Tables sscrfields.
    *--parameters--
            SELECTION-SCREEN BEGIN OF BLOCK RB1 WITH FRAME TITLE new.
            selection-screen :skip 2.
                PARAMETERS : cmp_name(10) type c,
                             imp_code(5) type n,
                             exp_cmp(10) TYPE c,
                             Exp_mtrl(10) TYPE c.
    ------------------------radi button---------------------
               SELECTION-SCREEN BEGIN OF BLOCK RB WITH FRAME TITLE text.
               selection-screen: skip 1.
                 PARAMETERS : Import RADIOBUTTON GROUP RB user-command usr,
                              Export RADIOBUTTON GROUP RB DEFAULT 'X'.
               SELECTION-SCREEN END OF BLOCK RB.
               SELECTION-SCREEN END OF BLOCK RB1.
    *--push button--
    SELECTION-SCREEN PUSHBUTTON /40(20) SAVE USER-COMMAND STORE.
    DATA : FLAG TYPE I.
    *--internal tables--
    data :    begin of itab occurs 0,
                 cmp_name(10) type c,
                 imp_code(5) type n,
              end of itab.
    data :    begin of itab1 occurs 0,
                 exp_cmp(10) TYPE c,
                 Exp_mtrl(10) TYPE c,
              end of itab1.
    *--initalisaton--
    INITIALIZATION.
    save = 'store'.
    text = ' Type '.
    new = ' Import- Export details'.
    *--selection screen--
    AT SELECTION-SCREEN.
          case SSCRFIELDS-ucomm.
               when 'STORE'.
               FLAG = '1'.
                    if import = 'X'.
                       itab-cmp_name = cmp_name.
                       itab-imp_code = imp_code.
                append itab.
                clear itab.
                endif.
                    if export = 'X'.
                       itab1-exp_cmp = exp_cmp.
                       itab1-Exp_mtrl = Exp_mtrl.
               append itab1.
               clear itab1.
               endif.
               ENDcase.
    *--selection screen output--
    AT SELECTION-SCREEN OUTPUT.
      IF export = 'X'.
       LOOP AT SCREEN.
          IF SCREEN-NAME = 'CMP_NAME' OR  SCREEN-NAME = 'IMP_CODE'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
       elseIF import  = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'EXP_CMP' OR SCREEN-NAME = 'EXP_MTRL'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    end-of-selection.
    LOOP AT ITAB.
    WRITE : /10 itab-cmp_name, 30 itab-imp_code.
    ENDLOOP.
    LOOP AT ITAB1.
    WRITE : /10 itab1-exp_cmp,50 itab1-exp_mtrl.
    ENDLOOP.
    hope its useful,
    reward points if its useful
    regards
    vijay

  • Notification of Work item via email other than SAP mail

    Hi folks!!
    I am new to workflow.
    We have implemented workflow for Purchase Orders and getting workflow notification into SBWP-Workplace.
    Now we want to send notification to the private e.mail address, for this I have already made setting through T.Code SO13....Automatic forwarding.
    But the workflow notification is only appearing in SAP-Workplace and is not appearing in private mail box.
    Kindly guide me if there is any other setting required for this
    Best regards

    In SO16 Tcode in the Mail Sys GRP tab you should select the radi button send to home adddress of the user. Please note that this address is the email address maintained in SU01d along with SAP User Id.
    Thanks
    Arghadip

  • How to create Document Structure for existing project in Solution Manager

    Hi gurus
    We have all the project document saved using Solution manager . we have ended with Phase1.
    We are starting Phase2 and they are asking me to creat different folder as Phase to in existing project and store all the Documents
    Can any one please tell me how to create New folder and store the documents in Existing project
    Point will given for helpfull Answer
    Thanks
    Bhaskar

    Hi Bhaskar,
    Assuming you have full authorisations, the procedure is simple.
    Please go SOLAR_PROJECT_ADMIN transaction.
    From the menu please select Project -> Copy
    In the ensuing screen, key in your desired project name, scroll through the other checkboxes to see if you are happy with the default choices; if not, take corrective actions.
    In the last set of radi buttons "Desired behaviour at later version comparison", the default choice (2nd entry there - Adjust target project to the original of the source project) is fine.
    From your scenario, since you do not have a Template -> Implementation Project functionality and instead are copying from one Implementation to the other, this radio button is of little consequence.
    Execute the process.
    In the window that comes up, please choose Local Object, assuming that you do not want to capture the whole contents into a 'Transport'. This is more required if you are aiming to copy the project from one SolMan instance to another.
    It would give an information message "Generating in batch job (Name ......)
    In a few minutes, you'd receive an intimation of the Project being copied.
    That's pretty much about it. Have a check on the newly created project in SOLAR01.
    Please let me know if you have any doubts.
    Best regards,
    Srini

  • XD01 - Making Dunning field required

    I know that I can add code to EXIT_SAPMF02D_001 for this, but is there an easier way to make the dunning procedure field on XD01 a required field? Thanks

    You can do this via SPRO. Here is the path:
    Financial Accounting>Account Rec and Payables>Customer Accounts>Master Data>Preparation for creating Customer Master Data-->Define Account Groups with Screen Layouts (Customers).
    Select the Account Group and Click details button. In the Field Status section, select Company Code Data and hit the Edit Field Status button. Double Click Correspondence. You would find Dunning Data there as an option with various radio button. Click the Req. Entry radi button to make it mandatory. Save and test.
    Hope this helps!

  • Help Needed with Adobe Interactive Forms scripts

    Hi Gurus,
    I have an Interactive form in which I have 5 radio buttons. Upon selecting any one of the radio buttons, some values (Ex : If user selects the first radi button 20 should be displayed in the text box. If he selects the second 21 should be displayed in the textbox.). In my script, I need to capture the checked value of the radio buttons ( They  are grouped) and how I should reference radio button on the form/subform
    Regards,
    Srini

    Where to start with scripting:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    In first doc, check the last chapter for the most illustrative examples.
    You need to be able to get the value of the radio (var help = this.rawValue), use the condition (if (){} else {} )and set the value (this.rawValue = "").
    Otto

  • Service Entry Sheet Problem

    hi all,
    when I am creating service entry sheet for service order i am getting the following error,
    "Customising incorrectly maintained"
    message no SE729
    i checked all the activities in External Service management
    any solutions?
    ponts wil lbe awaded

    For purg org
    Line no. increment in serv. specifications 10
    Default material group at item level       ** plz maintain acc to ur cutomization
    Unit of measure at item level              AU
    automatic PO generation for service requisitions   - check this box
    All services    select radi button
    for client
    Line no. increment in serv. specifications  10            
    Default material group at item level                      
    Unit of measure at item level               AU            
    Material group at item level   check this box
    All services select radio button
    Check this & revert back

  • Step By Step DX-Workbench (SXDA)

    Hi all,
    Any step by step reference guide or tutorial on data transfer workbench??
    Regards,
    Kit

    hi,
    Process to put file in Application Server
    1.Go to transaction SXDA Transaction and click GOTO and then DX Tools
    2.Select values as I shown in below screen and click on COPY button
    Give ;
    Object type : BUS1001006
    Program Type : DINP
    Progarm : RMDATIND
    3. Select rad button presentation server and provide the file path in source.
    4. in target Select Application server rad button
    File type : Physical file
    File Name : File path
    5. Copy with no conversion
    And now to display / modify the file go to below screen which is DX Tool mail screen and click display you will see file, you can modify it .
    The SAP System provides several workbenches to transfer data from legacy systems. Depending on the object type you want to transfer you use one of the following workbenches:
    Data Transfer Workbench
    The Data Transfer Workbench (SXDA) provides access to most of the SAP standard transfer programs and techniques. You can use the workbench in the following areas:
    Cross-application functions (CA)
    Financial Accounting and Asset Accounting (FI, FI-AA)
    Real Estate Management (RE)
    Logistics (LO)
    Sales and Distribution (SD)
    Material Management (MM)
    Logistics Execution (LE)
    Quality Management (QM)
    Plant Maintenance (PM)
    Production Planning and Control (PP)
    Human Resources (HR)
    External Data Transfer Tool
    You can use the External Data Transfer Tool in the following areas:
    Treasury (TR)
    Central Business Partner
    Executive Information System (EIS)
    Profitability Analysis (CO-PA)
    Bank Customer Accounts (BCA), Results and Risk Analysis in SAP Banking
    In the Environment, Health & Safety (EHS) and Enterprise Controlling (EC) areas you use other data transfer tools and techniques.
    http://help.sap.com/saphelp_crm40/helpdata/en/41/8d84382b852a56e10000009b38f842/frameset.htm
    reward points if helpful
    Regards,
    pankaj

  • Please Hilp me ( about linked list)

    i am an university student
    i was write a proram by ( arrays)
    thes program about Employees ( Add , Searsh , displly , delete )
    it is 6 class
    1 = Employee.java
    2 = Boss.java
    3 = CommissionWorker.java
    4 = HourlyWorker.java
    5 = PieceWorker.java
    6 = StartProgram.java
    i wona now changing the program from (Arrays) to (linked list)
    this is the cood

    The last 1
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class StartProgram extends JFrame
              // The Components For Frame 1
              private JLabel Label_Number_Of_Employee ;
              private JTextField Text_Number_Of_Employee ;
              private JButton Button_New, Button_Display, Button_Search, Button_UpData, Button_Delete;
              private JButton Button_Exit, Button_RE;
              private JPanel Panel_1_North, Panel_1_West, Panel_1_South, Panel_1_Center;
              // The Components For Frame 2
              private JLabel Label_Name, Label_Adress, Label_Gread, Label_ID, Label_Salary , Label_Commiss, Label_Quant, Label_Hour, Label_Wage, Label_Pice, Label_Total_Mony, Label_NumberID_FOR_Searsh;
              private JTextField TextField_Total_mony, TextField_Name, TextField_Adress, TextField_Greade,     TextField_ID, TextField_Salary , TextField_Commiss, TextField_Quant, TextField_Hour, TextField_Wage, TextField_Pice, TextField_NumberID_FOR_Searsh;
              private JButton Button_Clear, Button_OK2, Button_Cancel, Button_Next, Button_Prev, Button_Searsh, Button_Save, Button_Delet, Button_Create;
              private JRadioButton rad_Boss, rad_HourlyWorker, rad_PiceWorker, rad_CommissWorker;
              private ButtonGroup radGroup;
              private JPanel Panel_2_Center, Panel_2_South, Panel_2_North;
              // The Container For Frame 1
              Container cont;
              // The Container For Frame 2
              Container cont2;
              // The Layouts For Frame 1 & 2
              private FlowLayout layout;
              private GridLayout glayout;
              // private class Show_Frame2 extends JFrame
              int ID_Conter_Number[] = new int[1];
              Show_Frame2 Frame_Display;
              Show_Frame2 Frame_Delete;
              Show_Frame2 Frame_UpData;
              Show_Frame2 Frame_Search;
              // VARIABLES
              int Text_Number_TO_int = 0;
              int Countr_Index_Of_ArrayEmp = 0;
              int Number_Chose_Acion;
              int Conter_next = -1;
              int Number_Stop_Create = 0;
              int NumberID_FOR_Searsh = 0 ;
              int Nu_S_S_D_F_T_F_T_T_A; // use in Set_Save_Data_From_Text_Field_To_The_Arayy();
              int Number_Set_Kind_Employee; // use in Set_Save_Data_From_Text_Field_To_The_Arayy();
              int Nu_S_K_E_B_R_S; // use in Set_Kind_Employee_By_radBotton_Selected()
              int Nu_S_D_I_F_T_S_B_S_O_D; // use in Set_Data_in_Folds_To_Show_By_Searsh_Or_Disply()
              // use in Set_Save_Data_From_Text_Field_To_The_Arayy()
              int ID_set_Save_Data;
              int Greade_set_Save_Data;
              String Adress_set_Save_Data;
              String Name_set_Save_Data;
              double Salary_set_Save_Data;
              int Quant_set_Save_Data;
              int Hour_set_Save_Data;
              int Pice_set_Save_Data;
              double Wage_set_Save_Data;
              double Commiss_set_Save_Data;
              double Total_Mony;
              // For updata
              int ID_updata;
              int Greade_updata;
              String Adress_updata;
              String Name_updata;
              double Salary_updata;
              int Quant_updata;
              int Hour_updata;
              int Pice_updata;
              double Wage_updata;
              double Commiss_updata;
              double Total_Mony_updata;
              // Arayy(s) To Keep Elements Data Of Employee
              String ArayyName[];
              String ArayyAdress[];
              int ArayyGreade[];
              int ArayyID[];
              double ArayySalary[];
              double ArayyCommiss[];
              int ArayyQuant[];
              int ArayyHour[];
              double ArayyWage[];
              int ArayyPice[];
              int ArayyKind_Emp[];
              // Arayy(s)2 To Keep A Copy Of Elements Data Of Employee
              // Use in Delete Action
              String ArayyName_Copy[];
              String ArayyAdress_Copy[];
              int ArayyGreade_Copy[];
              int ArayyID_Copy[];
              double ArayySalary_Copy[];
              double ArayyCommiss_Copy[];
              int ArayyQuant_Copy[];
              int ArayyHour_Copy[];
              double ArayyWage_Copy[];
              int ArayyPice_Copy[];
              int ArayyKind_Emp_Copy[];
              // CONSRUCTOR of StartProgram class
              // Open form1
              public StartProgram()
                        super("Start To Employee System Control");
                        cont = getContentPane();
                        Panel_1_North = new JPanel();      Panel_1_North.setLayout(new GridLayout(3,0,0,0));
                        Panel_1_Center = new JPanel();          Panel_1_Center.setLayout(new GridLayout(6,0,0,0));
                        Panel_1_South = new JPanel();          Panel_1_South.setLayout(new GridLayout(1,0,0,0));
                        Label_Number_Of_Employee = new JLabel("Enter The Number Of Employees Then Press (ENTER) In Your KeyBoard ! ");
                        Text_Number_Of_Employee = new JTextField(10);
                        // 1- Display Button Choice To Employee System Control in form1
                        // 2- set Buttons Edit = false
                        Button_New = new JButton("Create a new an Employee(s) ");     Button_New.setVisible(false);
                        Button_Display = new JButton("Display an Employee(s) ");     Button_Display.setVisible(false);
                        Button_Search = new JButton("Search for an Employee(s) ");     Button_Search.setVisible(false);
                        Button_UpData = new JButton("UpData for an Employee(s) ");     Button_UpData.setVisible(false);
                        Button_Delete = new JButton("Delete an Employee(s) "); Button_Delete.setVisible(false);
                        // 1- Display Button ( EXIT & START AGEN ) in form1
                        // 2- set Buttons Edit = false
                        Button_Exit = new JButton("EXIT");     Button_Exit.setEnabled(false);
                        Button_RE = new JButton("START AGEN");     Button_RE.setEnabled(false);
                        // an object from the private class ActionHandler
                        ActionHandler handler = new ActionHandler();
                        Button_New.addActionListener(handler);
                        Button_Display.addActionListener(handler);
                        Button_Search.addActionListener(handler);
                        Button_UpData.addActionListener(handler);
                        Button_Delete.addActionListener(handler);
                        Button_Exit.addActionListener(handler);
                        Button_RE.addActionListener(handler);
                        Text_Number_Of_Employee.addActionListener(handler);
                        // Add all objects in form1
                        Panel_1_North.add(Label_Number_Of_Employee);
                        Panel_1_North.add(Text_Number_Of_Employee);
                        Panel_1_Center.add(Button_New);
                        Panel_1_Center.add(Button_Display);
                        Panel_1_Center.add(Button_Search);
                        Panel_1_Center.add(Button_UpData);
                        Panel_1_Center.add(Button_Delete);
                        Panel_1_South.add(Button_Exit);
                        Panel_1_South.add(Button_RE);
                        cont.add(Panel_1_North , BorderLayout.NORTH);
                        cont.add(Panel_1_Center , BorderLayout.CENTER);
                        cont.add(Panel_1_South , BorderLayout.SOUTH);
                        // setting of form1
                        setSize(450,350);
                        setVisible(true);
                        setResizable(false);
              } // END public StartProgram()
              private class ActionHandler implements ActionListener
                        public void actionPerformed(ActionEvent EEEE)
                                  // ================================================
                                  // ================================================
                                  // if user Put A Number Then He clock Enter
                                  if(EEEE.getSource() == Text_Number_Of_Employee)
                                            Set_Enter_Number_Of_Employee_Start();
                                  // ================================================
                                  // ================================================
                                  // Or if user clock Button Exit
                                  else if(EEEE.getSource() == Button_Exit)
                                            System.gc();
                                            System.exit(0);
                                  // ================================================
                                  // ================================================
                                  // if user clock Button RE START
                                  if(EEEE.getSource() == Button_RE)
                                            Set_Program_Start_Agen();
                                  // ================================================
                                  // ================================================
                                  // if user clock Button Create a new Employee
                                  if(EEEE.getSource() == Button_New)
                                            Number_Chose_Acion = 1;
                                            Show_Frame2 CCCC = new Show_Frame2();
                                  // ================================================
                                  // ================================================
                                  // if user clock Button Display The Employee
                                  if(EEEE.getSource() == Button_Display)
                                            Number_Chose_Acion = 2;
                                            Show_Frame2 CCCC = new Show_Frame2();
                                  // ================================================
                                  // ================================================
                                  // if user clock Button Search The Employee
                                  if(EEEE.getSource() == Button_Search)
                                            Number_Chose_Acion = 3;
                                            Show_Frame2 CCCC = new Show_Frame2();
                                  // ================================================
                                  // ================================================
                                  // if user clock Button UpData The Employee
                                  if(EEEE.getSource() == Button_UpData)
                                            Number_Chose_Acion = 4;
                                            Show_Frame2 CCCC = new Show_Frame2();
                                  // ================================================
                                  // ================================================
                                  // if user clock Button Delete
                                  if(EEEE.getSource() == Button_Delete)
                                            Number_Chose_Acion = 5;
                                            Show_Frame2 CCCC = new Show_Frame2();
                        } // END public void actionPerformed(ActionEvent e)
              } // END private class ActionHandler implements ActionListener
              public void Set_Enter_Number_Of_Employee_Start()
                        try
                                  Text_Number_TO_int = Integer.parseInt(Text_Number_Of_Employee.getText());
                                  if(Text_Number_TO_int <= 0)
                                            Text_Number_Of_Employee.setText("ERROR !! Please Enter a Number More Than 0");
                                  else
                                            Set_Create_Lingth_Of_Arayy_By_Number_That_Entered();
                        catch(NumberFormatException nfe)
                                  Text_Number_Of_Employee.setText("ERROR !! Please Enter a Number");
              public void Set_Create_Lingth_Of_Arayy_By_Number_That_Entered()
                        ID_Conter_Number = new int[Text_Number_TO_int];
                        Text_Number_Of_Employee.setEditable(false);
                        Button_New.setVisible(true);
                        Button_Display.setVisible(true);
                        Button_Search.setVisible(true);
                        Button_UpData.setVisible(true);
                        Button_Delete.setVisible(true);
                        Button_Exit.setEnabled(true);
                        Button_RE.setEnabled(true);
                        ArayyName = new String[Text_Number_TO_int];
                        ArayyAdress = new String[Text_Number_TO_int];
                        ArayyGreade = new int[Text_Number_TO_int];
                        ArayyID = new int[Text_Number_TO_int];
                        ArayySalary = new double[Text_Number_TO_int];
                        ArayyCommiss = new double[Text_Number_TO_int];
                        ArayyQuant = new int[Text_Number_TO_int];
                        ArayyHour = new int[Text_Number_TO_int];
                        ArayyWage = new double[Text_Number_TO_int];
                        ArayyPice = new int[Text_Number_TO_int];
                        ArayyKind_Emp = new int[Text_Number_TO_int];
              public void Set_Program_Start_Agen()
                        Text_Number_Of_Employee.setEditable(true);
                        Text_Number_Of_Employee.setText("");
                        Countr_Index_Of_ArrayEmp = 0;
                        Conter_next = -1;
                        Text_Number_TO_int = 0;
                        Countr_Index_Of_ArrayEmp = 0;
                        Conter_next = -1;
                        Nu_S_S_D_F_T_F_T_T_A = 0;
                        Number_Set_Kind_Employee = 0;
                        Number_Stop_Create = 0;
                        ArayyName = null ;
                        ArayyAdress = null ;
                        ArayyGreade = null ;
                        ArayyID = null ;
                        ArayySalary = null ;
                        ArayyCommiss = null ;
                        ArayyQuant = null ;
                        ArayyHour = null ;
                        ArayyWage = null ;
                        ArayyPice = null ;
                        ArayyKind_Emp = null ;
                        ArayyName_Copy = null ;
                        ArayyAdress_Copy = null ;
                        ArayyGreade_Copy = null ;
                        ArayyID_Copy = null ;
                        ArayySalary_Copy = null ;
                        ArayyCommiss_Copy = null ;
                        ArayyQuant_Copy = null ;
                        ArayyHour_Copy = null ;
                        ArayyWage_Copy = null ;
                        ArayyPice_Copy = null ;
                        ArayyKind_Emp_Copy = null ;
                        ID_set_Save_Data = 0;
                        Greade_set_Save_Data = 0;
                        Adress_set_Save_Data = null;
                        Name_set_Save_Data = null;
                        Salary_set_Save_Data = 0.00;
                        Quant_set_Save_Data = 0;
                        Hour_set_Save_Data = 0;
                        Pice_set_Save_Data = 0;
                        Wage_set_Save_Data = 0.00;
                        Commiss_set_Save_Data = 0.00;
              // Whin User Click Any rad Button
              private class RadHandler implements ItemListener
                        public void itemStateChanged(ItemEvent i)
                                  Set_All_Text_Field_To_Defolt_Text();
                                  TextField_Name.setEditable(true);
                                  TextField_Adress.setEditable(true);
                                  TextField_Greade.setEditable(true);
                                  if(i.getSource() == rad_Boss)
                                            TextField_Salary.setEditable(true);
                                            TextField_Wage.setEditable(false);
                                            TextField_Commiss.setEditable(false);
                                            TextField_Quant.setEditable(false);
                                            TextField_Hour.setEditable(false);
                                            TextField_Pice.setEditable(false);
                                  else if(i.getSource() == rad_HourlyWorker)
                                            TextField_Salary.setEditable(false);
                                            TextField_Wage.setEditable(true);
                                            TextField_Hour.setEditable(true);
                                            TextField_Commiss.setEditable(false);
                                            TextField_Quant.setEditable(false);
                                            TextField_Pice.setEditable(false);
                                  else if(i.getSource() == rad_PiceWorker)
                                            TextField_Salary.setEditable(false);
                                            TextField_Wage.setEditable(true);
                                            TextField_Hour.setEditable(false);
                                            TextField_Quant.setEditable(false);
                                            TextField_Commiss.setEditable(false);
                                            TextField_Pice.setEditable(true);
                                  else if(i.getSource() == rad_CommissWorker)
                                            TextField_Salary.setEditable(true);
                                            TextField_Wage.setEditable(false);
                                            TextField_Hour.setEditable(false);
                                            TextField_Quant.setEditable(false);
                                            TextField_Commiss.setEditable(true);
                                            TextField_Pice.setEditable(true);
              private class Show_Frame2 extends JFrame
                        public Show_Frame2()
                                  super("Control Panal Of Employee's Data");
                                  cont2 = getContentPane();
                                  Panel_2_Center = new JPanel();
                                  Panel_2_Center.setLayout(new GridLayout(11,2,5,5));
                                  Panel_2_South = new JPanel();
                                  Panel_2_South.setLayout(new GridLayout(2,5,5,5));
                                  Panel_2_North = new JPanel();
                                  Panel_2_North.setLayout(new GridLayout(2,1,5,5));
                                  Label_NumberID_FOR_Searsh = new JLabel("Employee's ID :", SwingConstants.RIGHT);
                                  Label_NumberID_FOR_Searsh.setVisible(false);
                                  TextField_NumberID_FOR_Searsh = new JTextField(5);
                                  TextField_NumberID_FOR_Searsh.setVisible(false);
                                  TextField_NumberID_FOR_Searsh.setEditable(false);
                                  Label_Name = new JLabel("Name : " , SwingConstants.RIGHT);
                                  Label_Adress = new JLabel("Address : " , SwingConstants.RIGHT);
                                  Label_Gread = new JLabel("Greade : " , SwingConstants.RIGHT);
                                  Label_ID = new JLabel("ID : " , SwingConstants.RIGHT);
                                  Label_Salary = new JLabel("Salary : " , SwingConstants.RIGHT);
                                  Label_Commiss = new JLabel("Commiss : " , SwingConstants.RIGHT);
                                  Label_Quant = new JLabel("Quant : " , SwingConstants.RIGHT);
                                  Label_Hour = new JLabel("Hours : " , SwingConstants.RIGHT);
                                  Label_Wage = new JLabel("Wage : " , SwingConstants.RIGHT);
                                  Label_Pice = new JLabel("Pice : " , SwingConstants.RIGHT);
                                  Label_Total_Mony = new JLabel("Total_Money : " , SwingConstants.RIGHT);
                                  TextField_Name = new JTextField(45);
                                  TextField_Adress = new JTextField(45);
                                  TextField_Greade = new JTextField(2);
                                  TextField_ID = new JTextField(4);
                                  TextField_Salary = new JTextField(10);
                                  TextField_Commiss = new JTextField(10);
                                  TextField_Quant = new JTextField(10);
                                  TextField_Hour = new JTextField(10);
                                  TextField_Wage = new JTextField(10);
                                  TextField_Pice = new JTextField(10);
                                  TextField_Total_mony = new JTextField(10); TextField_Total_mony.setEditable(false);
                                  rad_Boss = new JRadioButton("Boss" , false);
                                  rad_HourlyWorker = new JRadioButton("Hourly" , false);
                                  rad_PiceWorker = new JRadioButton("Pice" , false);
                                  rad_CommissWorker = new JRadioButton("Commiss" , false);
                                  radGroup = new ButtonGroup();
                                  radGroup.add(rad_Boss);
                                  radGroup.add(rad_HourlyWorker);
                                  radGroup.add(rad_PiceWorker);
                                  radGroup.add(rad_CommissWorker);
                                  //handler is object of private class RadHandler
                                  RadHandler rHandler = new RadHandler();
                                  rad_Boss.addItemListener(rHandler);
                                  rad_HourlyWorker.addItemListener(rHandler);
                                  rad_PiceWorker.addItemListener(rHandler);
                                  rad_CommissWorker.addItemListener(rHandler);
                                  Button_Save = new JButton("Save"); Button_Save.setVisible(false);
                                  Button_Delet = new JButton("Delete"); Button_Delet.setVisible(false);
                                  Button_Searsh = new JButton("Search"); Button_Searsh.setVisible(false);
                                  Button_Next = new JButton("next");
                                  Button_Prev = new JButton("Prev");
                                  Button_Clear = new JButton("Clear");
                                  Button_OK2 = new JButton("OK"); Button_OK2.setEnabled(false);
                                  Button_Cancel = new JButton("Cancel/Menu");
                                  Button_Create = new JButton("Create");
                                  // ================================================
                                  // ================================================
                                  // of usrt click Button Clear
                                  Button_Clear.addActionListener
                                            new ActionListener()
                                                      public void actionPerformed(ActionEvent e)
                                                                Set_Part_Of_Text_Field_Clear_of_Text();
                                  // ================================================
                                  // ================================================
                                  // of usrt click Button Cancel / Menu
                                  Button_Cancel.addActionListener
                                            new ActionListener()
                                                      public void actionPerformed(ActionEvent e)
                                                                setVisible(false);
                                  // ================================================
                                  // ================================================
                                  // 111111111111111111111111111111111111111111111111//
                                  // (Create new Employee)
                                  if (Number_Chose_Acion == 1)
                                            if (Number_Stop_Create >= Text_Number_TO_int)
                                                      JOptionPane.showMessageDialog(cont2, "You Can not add more Employees " , "Createing Will stop",JOptionPane.INFORMATION_MESSAGE);
                                            else
                                                      set_Show_Create_employees_Form();
                                  // ================================================
                                  // ================================================
                                  // 222222222222222222222222222222222222222222222222//
                                  // ( Display Employee)
                                  else if (Number_Chose_Acion == 2)
                                            if (ArayyName[0] == null)
                                                      JOptionPane.showMessageDialog(cont2,"Ther are No Employees to Display", "Exception Display",JOptionPane.ERROR_MESSAGE);
                                            else
                                                      set_Show_Display_employees_Form();
                                  // ================================================
                                  // ================================================
                                  // 333333333333333333333333333333333333333333333333//
                                  // ( Search Employee)
                                  else if (Number_Chose_Acion == 3)
                                            try
                                                      if (ArayyName[0] == null)
                                                                JOptionPane.showMessageDialog(cont2,"Ther are No Employees to Search", "Exception Search",JOptionPane.ERROR_MESSAGE);
                                                      else
                                                                set_Show_Search_employees_Form();
                                            catch (Exception ex)
                                                      JOptionPane.showMessageDialog(cont2,ex, "Exception",JOptionPane.ERROR_MESSAGE);
                                  // ================================================
                                  // ================================================
                                  // 444444444444444444444444444444444444444444444444//
                                  // ( UpData Employee)
                                  else if (Number_Chose_Acion == 4)
                                            try
                                                      if (ArayyName[0] == null)
                                                                JOptionPane.showMessageDialog(cont2,"Ther are No Employees to UpData", "Exception UpData",JOptionPane.ERROR_MESSAGE);
                                                      else
                                                                set_Show_UpData_employees_Form();
                                            catch (Exception ex)
                                                      JOptionPane.showMessageDialog(cont2,ex, "Exception",JOptionPane.ERROR_MESSAGE);
                                  // ================================================
                                  // ================================================
                                  // 555555555555555555555555555555555555555555555555//
                                  // ( Delete Action )
                                  else if (Number_Chose_Acion == 5)
                                            try
                                                      if (ArayyName[0] == null)
                                                                JOptionPane.showMessageDialog(cont2,"Ther are No Employees to Delete", "Exception Delete",JOptionPane.ERROR_MESSAGE);
                                                      else
                                                                set_Show_Delete_employees_Form();
                                            catch (Exception ex)
                                                      JOptionPane.showMessageDialog(cont2,ex, "Exception",JOptionPane.ERROR_MESSAGE);
                                  // ================================================
                                  // ================================================
                        } // END public Show_Frame2()
                        // 11111111111111111111111111111111111111111
                        public void set_Show_Create_employees_Form()
                                  set_Container_Of_Form2();
                                  setTitle("Create employees");
                                  setResizable(false);
                                  setSize(600,500);
                                  setVisible(true);
                                  Set_TextField_Editable_IS_FALSE();
                                  Conter_next = 0;
                                  // whin Fram Create new Employee loading
                                  Button_Next.setEnabled(false);
                                  Button_Prev.setEnabled(false);
                                  // of usrt click Button Create
                                  Button_Create.addActionListener
                                            new ActionListener()
                                                      public void actionPerformed(ActionEvent e)
                                                                // Kind of Employee that will ad is boss
                                                                if(rad_Boss.isSelected() == true)
                                                                          try
                                                                                    int Greade_N = Integer.parseInt(TextField_Greade.getText());
                                                                                    if ( (Greade_N > 99) || (Greade_N < 1) )
                                                                                                   JOptionPane.showMessageDialog(cont2," Please\nEnter Number in (Greade) Between 1 To 99", "ERROR NUMBER",JOptionPane.ERROR_MESSAGE);
                                                                                    else
                                                                                              Nu_S_S_D_F_T_F_T_T_A = Countr_Index_Of_ArrayEmp;
                                                                                              Number_Set_Kind_Employee = 1; // = Boss
                                                                                              Set_Save_Data_From_Text_Field_To_The_Arayy();
                                                                                              Set_All_Text_Field_To_Defolt_Text();
                                                                                              JOptionPane.showMessageDialog(cont2,Name_set_Save_Data + "\nwas Created As Boss", "Create",JOptionPane.INFORMATION_MESSAGE);
                                                                                              Countr_Index_Of_ArrayEmp ++;
                                                                                              Number_Stop_Create ++;
                                                                          catch(Exception ex)
                                                                                    JOptionPane.showMessageDialog(cont2,"Please Enter Correct Data\n"+ex, "Exception",JOptionPane.ERROR_MESSAGE);
                                                                // Kind of Employee that will ad is rad_HourlyWorker
                                                                if(rad_HourlyWorker.isSelected() == true)
                                                                               try
                                                                                    int Greade_N = Integer.parseInt(TextField_Greade.getText());
                                                                                    if ( (Greade_N > 99) || (Greade_N < 1) )
                                                                                              JOptionPane.showMessageDialog(cont2," Please\nEnter Number in (Greade) Between 1 To 99", "ERROR NUMBER",JOptionPane.ERROR_MESSAGE);
                                                                                    else
                                                                                              Nu_S_S_D_F_T_F_T_T_A = Countr_Index_Of_ArrayEmp;
                                                                                              Number_Set_Kind_Employee = 2; // = HourlyWorker
                                                                                              Set_Save_Data_From_Text_Field_To_The_Arayy();
                                                                                              Set_All_Text_Field_To_Defolt_Text();
                                                                                              JOptionPane.showMessageDialog(cont2,Name_set_Save_Data + "\nwas Created As HourlyWorker", "Create",JOptionPane.INFORMATION_MESSAGE);
                                                                                              Countr_Index_Of_ArrayEmp ++;
                                                                                              Number_Stop_Create ++;
                                                                          catch(Exception ex)
                                                                                    JOptionPane.showMessageDialog(cont2,ex, "Exception",JOptionPane.ERROR_MESSAGE);
                                                                // Kind of Employee that will ad is rad_PiceWorker
                                                                if(rad_PiceWorker.isSelected() == true)
                                                                          try
                                                                                    int Greade_N = Integer.parseInt(TextField_Greade.getText());
                                                                                    if ( (Greade_N > 99) || (Greade_N < 1) )
                                                                                              JOptionPane.showMessageDialog(cont2," Please\nEnter Number in (Greade) Between 1 To 99", "ERROR NUMBER",JOptionPane.ERROR_MESSAGE);
                                                                                    else
                                                                                              Nu_S_S_D_F_T_F_T_T_A = Countr_Index_Of_ArrayEmp;
                                                                                              Number_Set_Kind_Employee = 3; // = PiceWorker
                                                                                              Set_Save_Data_From_Text_Field_To_The_Arayy();
                                                                                              Set_All_Text_Field_To_Defolt_Text();
                                                                                              JOptionPane.showMessageDialog(cont2,Name_set_Save_Data + "\nwas Created As PiceWorker", "Create",JOptionPane.INFORMATION_MESSAGE);
                                                                                              Countr_Index_Of_ArrayEmp ++;
                                                                                              Number_Stop_Create ++;
        

Maybe you are looking for

  • Java Studio Enterprise 8 performance

    I installed JSE8 and to be honest it's as slow as a wet week. The classes I'm editing/viewing are stored on a clearcase vob mounted to my windows machine and the thing just crawls along. I can view/edit the files in IntelliJ with no problems. Is ther

  • Charging Problem after Deep Sleep

    Hey All works fine but, when i wake up my MacBook from the Deep Sleep Mode, it seems, that my MacBook doesn´t know, if the MacSafe is plugged in or not. Normally, when you plug in the MacSafe, in the menu bar the batterie status goes to "charging". B

  • Bank Statement Posting

    hi guys, i am new to Finance please provide me step by procedure for posting Bank statement using Finsta IDOC. With regards Praedep N

  • [SOLVED] flashplugin constantly crashing + Chrome random crashes

    So flash is crashing with almost every video I use in every browser I use (chrome is my main; tried chromium and firefox). Sometimes it lets me watch a minute or a few; other times it crashes as soon as the page finishes loading. I've tried these so

  • Library upgade failure

    I recently migrated my user account via TimeMachine from a 2008 iMac to a new MacBook Pro. Despite the Pictures folder including my iPhotoLibrary of some 65GB incl thousands of photos and videos, iPhoto(version9.5.1) consistently opens it as an empty