Bex exit Variable from another one.

Hi Expert,
Do you Know how to define a value for a variable from another that is navigable in the bex query. In other words, when i change a value during the OLAP navigation in the query, another variable must change on the basis of the first one. The first variable isn't a "variable selected from user" on the start of the query but is a "mandatory" with a default value. When the default is changed on the OLAP,  another variable must change.
How can I do?
Thanks.

OK. I see - just to be sure: You dont want to call the variable screen, when making the change, right? That is how I understand it, if I am wrong, you can use an exit variable for ZC_FASCIA and fill it depending on what was set in 0calmonth variable.
So, assuming you dont want to call the variable screen, have you tried setting the dependent variable to changeable during query navigation? I dont think it works, but anyway, try it out...
One way of "solving" your requirement of "set value for Y when X is changed by user" could be to use a compounded characteristic where you compound ZC_FASCIA with 0calmonth. I think you should be able to compound ZC_FASCIA = 1 with 0calmonth = <blank>...
Next, create a variable for this new char. Using a default should be possible and it would have to be changeable during query navigation and let users change the default month without calling the variable screen.
I dont know if this works/helps...
Regards
Jacob
P.S: Your requirement only seems to come from the "need" to have 0calmonth = #. If you did not need the #, you would always have 2 for ZC_FISCIA... so I was wondering why you need the blank month? Something with an annual value stored in # month??
Edited by: Jacob Jansen on Jan 29, 2010 9:38 PM

Similar Messages

  • Not able to execute one Java program from another one via. exec()

    Hi,
    I am new to this forum, so I might be asking a very trivial quetion.
    My program Ap1 is :
    class Ap1
    public static void main(String a[]) throws Exception
    Runtime rt=Runtime.getRuntime();
    Process p=null;
    p=rt.exec("javac,Pr.java");
    Runtime.getRuntime().exec("javac,Pr.java");
    When I run the above program, I get below error at the line 7(bold one):
    D:\batchwe>javac Ap1.java
    D:\batchwe>java Ap1
    Exception in thread "main" java.io.IOException: CreateProcess: javac,Pr.java err
    or=2
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    at java.lang.ProcessImpl.start(ProcessImpl.java:30)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
    at java.lang.Runtime.exec(Runtime.java:591)
    at java.lang.Runtime.exec(Runtime.java:429)
    at java.lang.Runtime.exec(Runtime.java:326)
    at Ap1.main(Ap1.java:7)
    Path is set as below(which seems correct):
    D:\batchwe>path
    PATH=C:\Program Files\Java\jdk1.5.0_05\bin
    I am just wondering how to call one Java program from another one?!
    Please help.
    thanks
    Rashmi

    Hi diptaPB,
    Thanks for your suggestion.
    Here is how I tried it again, but not getting the desired output:
    Class Pr looks like below -->
    class Pr
    public static void main(String a[])
    System.out.println("hi from process");
    When I run 'Pr' from command prompt, i get the desired output:
    D:\batchwe>java Pr
    hi from process
    However, when I call 'Pr' from another program Ap2.java, it seems that it does not call 'Pr':
    class Ap2
    public static void main(String a[]) throws Exception
    Runtime rt=Runtime.getRuntime();
    Process p=null;
    String[] cmd=new String[2];
    cmd[0]="javac";
    cmd[1]="Pr.java";
    p=rt.exec("cmd");
    D:\batchwe>javac Ap2.java
    D:\batchwe>java Ap2
    ************* no output appears here***********************
    Looking forward for your help.
    regards
    Rashmi

  • Importing variables from another page in jsp

    Hey.
    I want to make two pages. I want the first page to include the variables from another page or POJO.
    I did this but i cant use the variables in index.jsp without initializing them first. But when I initialize them i get an error when trying to initialize them two times.
    if i use the variable in index without saving i get an error in eclipse.. but it works if i save and deploy.
    Is there any way to make eclipse see that i have imported the variable?
    The pages look something like this:
    index.jsp
    <%@ include file="extra.jsp" %>
    Print the number from the extra page
    <%= number %>extra.jsp
    int number = 32;I plan using this in a much greater system so I would appreciate any help.

    I'm having the same problem.
    Would be nice if somebody could help us.

  • [SOLVED] Bash: pkill a process after exiting from another one?

    Hi there, I use a program which calls another one, but when I close the first one, the second one is not closed automatically even if not anymore needed, so I have to do it manually.
    I tried a classic:
    firstprogram
    pkill secondprogram
    but, of course, this script closes immediately the secondprogram.
    So, what I supposed to do?
    Thank you in advance!
    Last edited by metre (2011-03-24 11:33:01)

    hbekel wrote:Hard to tell unless you show us some code or at least mention the method used to launch the subprocess. Generally you should wait(3) for your child processes to exit before exiting your parent process, or terminate the child manually when the parent exits, e.g decide yourself when it is "not needed anymore".
    thank you, I did it:
    firstprogram
    wait
    pkill secondprogram
    it works, woah

  • Using a variable from another method within another method

    I have a couple methods. In the beginning of the class I declared the double variables. Then I have a method1 that in that class that changes those double variables. Then the last method2 runs, and is suppose to print information to the screen with the changed variable information all being called from another class. How do I get those changed double variables to be read in method2?

    Sorry about all that, when I paste it in from the compiler it's skews it some, but hopefully this should be more readable
    * Project Filename: Lab1s2
    * Program Filename: Lab1s2.java
    * I/O Files used:
    * Fuction:          This program will use interactive input to ask cost of a
    *                   product in dollars and cents (eg. 17.50).  If the product
    *                   is not less than $100.00, an error message will be displayed
    *                   and input will be requested again.  Once a valid value is
    *                   given, the program will calculate the fewest bills and change
    *                   to be returned if the customer gives a $100.00 bill.
    * Formulas:         (100 - amount = change)
    * Algorithm:
    * Purpose:          The main method calls other methods found in the MoneyXX class
    *                   that will accomplish the function of the project.
    public class Lab2sl
         public static void main( String[] args ) // main method begins program execution
         Money2sl myMoney2sl = new Money2sl(); // create myMoney2sl object and assign it to Money2sl
            myMoney2sl.inputSL();// calls input method and pass argument
            myMoney2sl.changeSL(); // calls change method
            System.out.println(); // output a blank line
         myMoney2sl.outputSL(); //calls outputSL to show results
    * Project Filename: Money2SL.java
    import java.util.Scanner;
    import java.util.Calendar;
    public class Money2sl
         Scanner input = new Scanner( System.in ); // create Scanner to obtain input from command window
        private double change,
                       amount; // instant variable, stores amount
        private double twentyD = 20.00;
        private double tenD = 10.0;
        private double fiveD = 5.0;
         private double dollar = 1.0;
         private double quarter = 0.25;
         private double dime = 0.10;
         private double nickel = 0.05;
         private double penny = 0.01;
         private double numTwentyD;
         private double numTenD;
         private double numFiveD;
         private double numDollar;
         private double numQuarter;
         private double numDime;
         private double numNickel;
         private double numPenny;
        // inputSL() method gets amount, checks to see if it is under $100, stores amount into variable
        public void inputSL() //input method
             Calendar dateTime = Calendar.getInstance(); // get current date and time
            //print date and time
            System.out.printf( "%s\n", "nothing" );
            System.out.printf( "%1$ta, %1$tB. %1$te, %1$tY %1$tr\n\n", dateTime );
             //print output
                System.out.println( "Please enter the amount of money (less than $100) that you will spend: ");  // prompt
              amount = input.nextDouble();
              while ( amount > 100 )
                  System.out.println( "error - enter amount less than $100");
                System.out.println( "Please enter the amount of money (less than $100) that you will spend: ");  // prompt
                  amount = input.nextDouble();
             } // end inputSL method
        // changeSL() calculates change from amount entered out of $100
         public void changeSL()
              change = 100 - amount; // calculate change
              while(change > 0)
            if ( change - fiveD >= 0 )
                        numFiveD ++;
                       change -= fiveD;
              if ( change - fiveD >= 0 )
                        numFiveD ++;
                       change -= fiveD;
              if ( change - dollar >= 0 )
                        numDollar++;
                       change -= dollar;
              if ( change - quarter >= 0 )
                        numQuarter ++;
                       change -= quarter;
              if ( change - dime >= 0 )
                        numDime ++;
                       change -= dime;
              if ( change - nickel >= 0 )
                       numNickel ++;
                       change -= nickel;
              if ( change - penny >= 0 )
                        numPenny ++;
                       change -= penny;
         } // end changeSL method
        //outputSL() displays original amount, change dollar amount, and change in individual bills and coins
        public void outputSL()
             System.out.printf( "$%.2f dollars will return $%.2f, which is: ",
                                 amount, change );
            System.out.println(); // blank line
             System.out.println(); // blank line
            if ( numTwentyD > 0 )
                 if ( numTwentyD > 1)
                      System.out.println( numTwentyD + " twenty dollar bills" );
                 System.out.println( numTwentyD + " twenty dollar bill" );
            if ( numTenD > 0)
                 if ( numTenD > 1 )
                      System.out.println( numTwentyD + " ten dollar bills" );
                 System.out.println( numTwentyD + " ten dollar bill" );
            if ( numFiveD > 0)
                 if ( numFiveD > 1 )
                      System.out.println( numFiveD + " five dollar bills" );
                 System.out.println( numFiveD + " five dollar bill" );
            if ( numDollar > 0)
                 if ( numDollar > 1 )
                      System.out.println( numDollar + " one dollar bills" );
                 System.out.println( numDollar + " one dollar bill" );
              if ( numQuarter > 0)
                 if ( numQuarter > 1 )
                      System.out.println( numQuarter + " quarters" );
                 System.out.println( numDollar + " quarter" );
              if ( numDime > 0)
                 if ( numDime > 1 )
                      System.out.println( numDime + " dimes" );
                 System.out.println( numDime + " dime" );
              if ( numNickel > 0)
                 if ( numNickel > 1 )
                      System.out.println( numNickel + " nickels" );
                 System.out.println( numNickel + " nickel" );
              if (numPenny > 0)
                 if ( numPenny > 1 )
                      System.out.println( numPenny + " pennies" );
                 System.out.println( numPenny + " penny" );
    }

  • How to create an image from another one with midp1.0 as in midp 2.0

    hi:
    we can create an image from part of another one in midp2.0 width the following method
    createImage(Image image, int x,int y,int width,int height,int transform)
    but have to work with midp1.0, then how?
    regards

    but i have six icons in one picture, (tow row ,three column, each size 14*14)
    it's ok to get the top-left icon with the following code
    Image image = Image.createImage("/myicon.png");
    Image tmp = Image.createImage(14, 14);
    Graphics g = tmp.getGraphics();
    g.drawImage(image, 0, 0, Graphics.TOP|Graphics.LEFT);
    but how to get other icon?
    regards

  • Accessing another variable from another application

    I was wonder how I can access another variable form another application?
    For example: I want to access :P4_EMPLOYEE_NAME from app ID 104 when I am doing is from an activity in page 2 on app ID 142.
    I had a search before, but I am looking for an unambiguous response.

    Greg - About all you can do is call the function htmldb_util.fetch_app_item(p_item => 'F104_ITEM', p_app => '104'). The application you call this function in must be sharing a session with the application from which you are fetching the item, both applications must belong to the same workspace, and the item you name in the argument must be defined as an application-level item in the fetched-from application.
    Scott

  • Customer Exit Variable to populate one of the three dates

    Hi ,
    There is a requirement where we need to need to enter either of the following dates :
    1. Order Date
    2. Delivery Date
    3. Bill Date .
    Hence we need to write a Customert Exit Variable for the same .
    One of these 3 dates should be mandatory  i.e, the Report should  not execute if  none of them is entered  while it should execute when either of them is entered.
    All I know is that this Customer exit should be written in iStep = 3 .
    Please suggest the  remaining solution.
    Regards
    Garima

    Please verify if this is the correct Code which  need sto be written :
    IF i_s_rkb1d-compid EQ 'QUERY_NAME'.
    If i_Step = 3
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM EQ 'VAR1' OR
               VNAM EQ 'VAR2' OR VNAM EQ 'VAR3'
        LOW = LOC_VAR_RANGE-LOW.
        HIGH = LOC_VAR_RANGE-HIGH.
    IF SY-SUBRC NE 0 OR LOC_VAR_RANGE-LOW IS INITIAL.
                 CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                   EXPORTING
                     I_CLASS  = 'RSBBS'
                     I_TYPE   = 'E'
                     I_NUMBER = '000'
                     I_MSGV1  = 'At least one date parameter should be entered'.
                 RAISE AGAIN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDIF.

  • Accessing variable from another JSP

    Friends,
    say, I have a Test1.jsp which has a variable "input". Is it possible to access this variable from other jsp "Test2.jsp"?
    any ideas?
    Thanks
    Hari V

    hi hari,
    there are essentially 3 ways of doing it....
    1).Usage of Hidden Values
    2).Using Cookies
    3).Storing attribute value within the scope of request/session/appln
    The choice is all urs....???
    Regards,
    RAHUL

  • Error validating business rules containing variable from another plan type.

    We have created few business rules in in plan type "Plan1" which we are using variable from plan type "Capex". This is how we are using it.
    "(@XREF(cpx,"Intangible Assets Finite, Gross","Unspecified","No Project","Information Technology (IT)","371064911-01"))"
    But when we validate this rule it gives the following error
    "An error occurred in: Rule:IFLJAN13.Plan1.B - Trail Balance - Capex
    A validation error was received from the Planning server 'http://hptstorg:8300/HyperionPlanning/servlet/HspAppManagerServlet?appname=IFLJAN13'.
    'Error:The member 'Unspecified' cannot be found.
    The member 'Unspecified' cannot be found.
    The member 'Intangible Assets' cannot be found.
    The member 'Unspecified' cannot be found.
    The member 'Unspecified' cannot be found. Rule IFLJAN13.Plan1.B - Trail Balance - Capex'."
    We have checked the location aliases using EAS Console and they are correct.

    Could you pls. check if you can see your BR in the location for the cube where you are unable to validate the rule?! (EAS console --> Administration --> Locations --> (right click) open)
    your user must be able to "validate or launch" the rule in this location (changeable with "Add Access Privileges") and the rule itself must be able to launch in this location (changeable with "Add rules").
    Kind regards
    André

  • Bex Exit variable with workbook

    Hi experts,
    I've defined a query that uses an exit variable which select a specific range of customers.
    When I execute the query the variable is populated with correct values.
    Then I saved this query as workbook; but when I execute the workbook, the selection is not taken into account; it's as the exit is ignored.
    When executing the workbook I 've got an information message as follow:
    "The Can be changed in query navigation property has been set for variable VACLCONSID, characteristic 0BILLTOPRTY. However, the variable is used in the query in such a way, that the system is unable to apply this change-option"
    But in my query definition for VACLCONSID, flag "can be changed in query navigation" is't checked.
    Moreover I can't debug exit ZXRSRU01 with a workbook.
    Any ideas
    Thanks in advance
    Thierry

    Hi Radha,
    thanks for your reply.
    My exit variable depends on a customer variable which is filled during variables screen processing
    User selects a period, and exit defines customers selection with this information
    I use i_step= 2 in exit ZXRSRU01
    No other parameters are filled in the workbook by user
    Regards
    Thierry

  • WAD - How do I hide Exit Variables from the variable listings?

    If i'm using an InfoField control to display the user input variables on top of my web template, how do i hide the user exit variables?
    I simply want to show the variables available to the user as 'Ready for Input' at runtime.  However all of the user exit variables appear as well.
    thanks in advance.

    Hi Webonomist,
    It is also my understanding that any settings applied in the CFAdmin would
    affect the entire server.
    Check out the <cfapplication> tag for handling session variables on an
    individual basis. Use caution when using cookies to hold session
    variables. As noted in serveral livedoc information articles, "If client disables
    cookies in the browser, client variables do not work".
    As for the <cflocation> tag
    <cflocation
    url="path_to_redirect_to"
    addtoken="no / yes"><!--- Include/not include token  --->
    Leonard

  • BEX EXIT VARIABLE

    hi all,
    IAM SATYA HAVING REQ REGARDING bex varaible user exit.i have one variable i.e Country ship from which is mandatory value ,i enter value as US ,AND TEHRE IS ANOTHER VARIABLE COUNTRYSHIPTO WERE IN THIS VARIABLE SHOULD FILLED WITH VALUES OTHER THAN THE VALUE ENTERD IN COUNTRY SHIP FROM I.E COUNTRY US OR ANY COUNTRY VALU FILLED IN SHOULD NOT BE FILLED IN COUNTRY SHIPTO ,IT SHOULD BE FILLED WITH OTHER COUNTRY  OTHER THAN THE VALUE FILLED IN.
    PLEASE TELL ME HOW.
    BYE
    [email protected]

    Hi Satish!
      using capital letters means "shouting " so dont use capitals.
    is the sencond variable is a user entry or ... its filled by a program?
    with regards
    ashwin

  • Problem in BW query can read a variable from another query

    dear all
    now I create three queries
    the name are queryA queryB queryC
    there is a variable VAR_1 on queryB
    there is a variable VAR_2 on queryC
    webtemplate is only one and all queries belong to webtemplate
    VAR_1 is DATE
    VAR_2 is MONTH
    in inputscreen user will input VAR_1
    can we read VAR_1 and then VAR_2 = VAR_1+0(6)
    I created souce on CMOD but can't read VAR_1
    the code as below
    case i_vnam.
    when 'VAR_2'
    read table i_t_var_range into s_var_range
    with key vnam = 'VAR_1'.
    l_date = s_var_range-low.
    l_s_range-low = l_date+0(6).
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endcase.
    PLS HELP ME

    Hi,
    As vijay said you try ...
    Let me explain:
    Create another variable var_3
    on queryB which is of type 'customer exit' and you write the code for this var_3 (date) in CMOD just to store this value in some ztable.
    create a ztable with fields of type
    1. sy-datum(system date)
    2.sy-uzeit (syatem time)
    3. sy-datum (for storing the value of var_1).
    make first two fields as key.
    Now for queryC create var_2 type 'customer exit'.
    Now for this variable in CMOD , get the value of third field from ztable for the last entry in the ztable.Write the logic for caluculating month and populate var_2.
    Hope its clear..
    Shylaja.

  • Calling A Form From Another One

    hi i am trying to call a form that i have constructed before named "MENU_form" from the "LOGIN" form. I have imported the "MENU_form" but i can't use it as an another frame inside the LOGIN form.
    At Login Form, after the user enters the correct usrname and password, i want to redirect the form to Menu_Form. Need your help...
    Also here is the code...
    package project;
    import java.sql.Connection;
    import java.sql.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import project.IConnect;
    import project.MENU_form;
    * @author buro
    public class login extends javax.swing.JFrame {
    /** Creates new form login */
    public login() {
    initComponents();
    private void initializeComponent()
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    jLabel1 = new javax.swing.JLabel();
    jTextField1 = new javax.swing.JTextField();
    jTextField2 = new javax.swing.JTextField();
    jButton1 = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jButton2 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jLabel1.setText("KULLANICI G\u0130R\u0130S\u0130");
    jButton1.setText("G\u0130R\u0130S");
    jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton1MouseClicked(evt);
    jLabel2.setText("Kullan\u0131c\u0131 Ad\u0131");
    jLabel3.setText("\u015eifre");
    jLabel4.setForeground(new java.awt.Color(255, 0, 51));
    jLabel4.setText("a");
    jButton2.setText("\u00c7IKI\u015e");
    jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton2MouseClicked(evt);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(20, 20, 20)
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))
    .addGap(24, 24, 24)
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
    .addComponent(jTextField2, javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)))
    .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 146, Short.MAX_VALUE)
    .addComponent(jButton2)
    .addGap(23, 23, 23))
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addGap(27, 27, 27)
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addComponent(jLabel2))
    .addGap(20, 20, 20)
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addComponent(jLabel3))
    .addGap(15, 15, 15)
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
    .addComponent(jButton2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addComponent(jButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE))
    .addGap(20, 20, 20)
    .addComponent(jLabel4)
    .addContainerGap(281, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {                                     
    // TODO add your handling code here:
    System.out.println("User exited application");
    System.exit(3);
    private void methodName22()
    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {                                     
    // TODO add your handling code here:
    String nul="";
    if( (nul.equals(jTextField1.getText())) || (nul.equals(jTextField2.getText())) )
    jLabel4.setText("Bos Alanlar? Doldurunuz!!!");
    else
    String usr= jTextField1.getText();
    String pwd= jTextField2.getText();
    try {  
    Connect baglan= new Connect();
    Connection connection=baglan.Connect();
    Statement stm = connection.createStatement();
    String sql;
    //SELECT
    ResultSet rs=stm.executeQuery("select * from login where username='"+usr+"' and passwor='"+pwd+"'");
    if(rs.next()==true)
    jLabel4.setText("Success!!!");
    this.setVisible(false);
    // ************* HERE I want to call "MENU_form". HOW ??????
    else
    jLabel4.setText("fault!!!");
    } catch(Exception e)
    {  e.printStackTrace(); }//end of catch
    }//end of else
    private void initialize()
    jLabel4 = new JLabel();
    jLabel4.setText("");
    public static void main(String args[])
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new login().setVisible(true);
    //initialize();
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    // End of variables declaration

    Hi,
    this is the way i am showing a password dialog: i derive this class from JDialog (not from JFrame).
    In its constructor, i make it a modal dialog.
    public class PasswordDlg extends JDialog {
    private boolean ok; // this flag should indicate whether the User has pressed OK or CANCEL
                                 // i omit the code for OK and CANCEL here...
    public PasswordDlg(JFrame owner, String DisplayText) {
         super(owner,DisplayText,true); // true -> modal!
      public boolean showDialog()
        { ok = false;
          show();
          return ok;}
    } Now in my main frame (this is derived from JFrame) in its constructor, i make an instance of my PasswordDlg, call its showDialog method, ask the password from the dialog (i have omitted this method), and then i decide, whether the program should go on or whether i call System.exit(0) in case the password is wrong.
    regards
    BugBunny

Maybe you are looking for

  • DSC 8.6.1 wrong timestamps for logged data with Intel dual core

    Problem Description : Our LV/DCS 8.6.1 application uses shared variables to log data to Citadel. It is running on many similar computers at many companies just fine, but on one particular Intel Dual Core computer, the data in the Citadel db has stran

  • Access denied Error while calling Web Service form Infopath Form 2010.

    Hi Dear All, I have been facing an error while calling an GetUserProfileByName() web service method from InfoPath 2010 from. i have FBA(Forms Base Authentication )configured . After Infopath form published to site collection when i select an user fro

  • Why does left side text in my fillable PDF disappear when I export from ID6?

    Hi there! Looking for urgent feedback on fillable forms. I created a form using InDesign 6 - mainly text fields using the interactive: convert to text field function. I used these settings: Event: Release on Tap; Printable, Required, Scrollable; Font

  • Designed by Photographers... mistake No. 1?

    I'm an Aperture fan and I believe that the programs has great potential... but that's about it at this time. While many photographers will appreciate some of the features, many of the key 'processing' features are either not present or burried in dro

  • HT3986 Second screen not recognized under windows7

    I  have windows 7 64 bits running ok But I it can not recognize a second screen (that MAC OSX does easily), the standard windows control pannel just see the macAir screen and cannot detect the other. Anyone with similar problems? Any solution availab