How to do forward from one XML to other?

Hello!
I would to do forward from one XML to other like in HTML use tag <meta>:
<meta http-equiv="REFRESH" content="0;url=http://...">
Could XML to control HTTP query?

I apologize, but your scenario still does not make sense to me.
The user requests a URL, an XML page is returned to their browser, then immediately another XML page is returned to their browser?
Maybe try to explain in functional terms what you're trying to achieve rather than assuming that "forwarding" or refreshing is the solution. Stated this way, I still don't have an idea of what kind of application you're trying to build.

Similar Messages

  • How to move table from one tablespace to other tablespace?

    how to move table from one tablespace to other tablespace?

    887274 wrote:
    how to move table from one tablespace to other tablespace?
    alter table <table_name> move  tablespace <new_tablespace_name>;
    Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
    SQL> create table ttt( ID NUMBER PRimary key);
    Table created.
    SQL> insert into ttt values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL> alter table ttt move tablespace users;
    Table altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 UNUSABLE
    SQL> alter index SYS_C0010863 rebuild tablespace users online;
    Index altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL>

  • How to copy data from one column to other column

    hi,
    can any one tell me how to copy data of  one column to other column for some specific data
    example
    productno  ocalyear        actualsales  prevplansales   currentplansales
    p001       2007                  100              120                   
    p002       2007                   90               100
    p003       2007                  120              130
    p004       2007                  140              120
    p005       2007                  150              150
    i want to copy data of p001 and p002 from prevplansales to current plansales
    productno  ocalyear        actualsales  prevplansales   currentplansales
    p001       2007                  100              120              120     
    p002       2007                   90               100              100
    p003       2007                  120              130
    p004       2007                  140              120
    p005       2007                  150              150
    is it possible to do?
    please suggest me.
    i will assign points

    Hi,
    I think the needed techniques are already described in the documentation, e.g. in
    http://help.sap.com/saphelp_nw70/helpdata/en/45/e641e4c61256dee10000000a114a6b/frameset.htm
    or
    http://help.sap.com/saphelp_nw70/helpdata/en/45/e641e4c61256dee10000000a114a6b/frameset.htm
    The main techiques used in the above example to bind the filter of the planning function to selected (marked) objects in the analysis item or to drop down boxes (or both). These techniques are used in the above examples.
    Regards,
    Gregor

  • How to pass control from one component to other component

    Hi,
    I have a requirement to pass control from one component to other component.
    Here is my requirement.. l have two portal components, one is search component and other is result component. I have this search component as quick navigation iView where we can enter a value and results will display in results iView, it's a main iView.
    When search view gets the results, I will display the count in search view and result in results view. .i.e.. both the iviews are viewed at any time.
    Can any one advise me how to acheive this.
    Thanks,
    Chinna.

    Hi Sandeep,
    Thanks for the reply. I have gone through the EPCF API, and tried with doNavigate('iViewName').
    when I click on the button in search view (quikc navigation frame), instead of page getting refreshed in result iView, whole page is replaced by results iview. I want only search view and results view gets refreshed.
    can you please tell me which even should I use for this scenario...
    Thanks,
    Chinna

  • How to  move items from one JList to other

    Can u pls help me out to implement this(I m using Netbeans 5.5):
    I want to move items from one JList to other thru a ADD button placed between JLists, I am able to add element on Right side JList but as soon as compiler encounter removeElementAt() it throws Array Index Out of Bound Exception
    and if I use
    removeElement() it removes all items from left side JList and returns value false.
    Pls have a look at this code:
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    // TODO add your handling code here:
    Object selItem = jList1.getSelectedValue();
    int selIndex = jList1.getSelectedIndex();
    DefaultListModel model = new DefaultListModel();
    jList2.setModel(model);
    model.addElement(selItem);
    DefaultListModel modelr = new DefaultListModel();
    jList1.setModel(modelr);
    flag = modelr.removeElement(selItem);
    //modelr.removeElementAt(selIndex);
    System.out.println(flag);
    }

    hi Rodney_McKay,
    Thanks for valuable time but my problem is as it is, pls have a look what I have done and what more can b done in this direction.
    Here is the code:
    import javax.swing.DefaultListModel;
    import javax.swing.JList;
    public class twoList extends javax.swing.JFrame {
    /** Creates new form twoList */
    public twoList() {
    initComponents();
    //The code shown below is automatically generated and we can�t edit this code
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    jScrollPane1 = new javax.swing.JScrollPane();
    jList1 = new javax.swing.JList();
    jButton1 = new javax.swing.JButton();
    jScrollPane2 = new javax.swing.JScrollPane();
    jList2 = new javax.swing.JList();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jList1.setModel(new javax.swing.AbstractListModel() {
    String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
    public int getSize() { return strings.length; }
    public Object getElementAt(int i) { return strings[i]; }
    jList1.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
    public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
    jList1ValueChanged(evt);
    jScrollPane1.setViewportView(jList1);
    jButton1.setText("ADD>>");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton1ActionPerformed(evt);
    jScrollPane2.setViewportView(jList2);
    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(31, 31, 31)
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(jButton1)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addContainerGap(78, Short.MAX_VALUE))
    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jScrollPane1, jScrollPane2});
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(62, 62, 62)
    .addComponent(jButton1))
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
    .addContainerGap(159, Short.MAX_VALUE))
    layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jScrollPane1, jScrollPane2});
    pack();
    }// </editor-fold>
    //automatic code ends here
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    // TODO add your handling code here:
            jList1 = new JList(new DefaultListModel());
            jList2 = new JList(new DefaultListModel());
             Object selItem = jList1.getSelectedValue();
             System.out.println(selItem);
            ((DefaultListModel) jList1.getModel()).removeElement(selItem);
            ((DefaultListModel) jList2.getModel()).addElement(selItem);
    //Now trying with this code it is neither adding or removing and the value �null� is coming in �selItem� .It may be bcoz JList and Jlist are already instantiated in automatic code. So, I tried this:
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    // TODO add your handling code here:
             Object selItem = jList1.getSelectedValue();
             System.out.println(selItem);
            ((DefaultListModel) jList1.getModel()).removeElement(selItem);
            ((DefaultListModel) jList2.getModel()).addElement(selItem);
    //Now with this as soon as I click on �jButton1�, it is throwing this error:
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: twoList$1 cannot be cast to javax.swing.DefaultListModel
            at twoList.jButton1ActionPerformed(twoList.java:105)
            at twoList.access$100(twoList.java:13)
            at twoList$3.actionPerformed(twoList.java:50)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
            at java.awt.Component.processMouseEvent(Component.java:6038)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
            at java.awt.Component.processEvent(Component.java:5803)
            at java.awt.Container.processEvent(Container.java:2058)
            at java.awt.Component.dispatchEventImpl(Component.java:4410)
            at java.awt.Container.dispatchEventImpl(Container.java:2116)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
            at java.awt.Container.dispatchEventImpl(Container.java:2102)
            at java.awt.Window.dispatchEventImpl(Window.java:2429)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

  • How to move items from one list to other

    hi all,
    in jsp page i have twolist boxes. i want to move item from one list to other list on click of add or move button. can u plz suggest me an answer for the above. thank u
    Regards sangeet

    This link should help. Remove from one list and add to the other using Javascript.
    http://www.mredkj.com/tutorials/tutorial006.html

  • How to move OU from one suffix to other suffix and waht kind of precautions we need to take?

    Hi All
    Hope all are doing well.I love to read this blog regularly and i also posted couple questions here and i got very brilliant answers and hoping same now.
    Question is: We are planning to change our DIT structure like moving OU (contains 80k entries including static groups and managed roles,filtered assigned to users) from one sub-suffix to root  suffix as below.
    Currently we have ou=ldap,ou=directory,dc=example,dc=com
    Where ou=ldap has 80k entries and it included managed roles,filtered roles and static groups assigned.
    Planning to change DIT as below.
    ou=ldap,dc=example,dc=com
    1> How to implement this please give some technical knowledge of doing this
    2>What precualtions we need to take?
    3> Do we have any outage
    We have 12 servers installed ldap instance all MMR and its ODSEE 11.1.1.7.0
    Let me know if you need more information

    Hello,
    At first glance, the easiest way would be to use LDAP mod dn operation. However, I would encourage you to review potential issues first:
    Before performing a modify DN operation, ensure that the operation would not break client authentication: how do you application depend on the user DNs ? Do they directly bind as <uid=some user>, ou=ldap,ou=directory, dc=example,dc=com or do they discover the actual user dn by doing a lookup/search first as many portal apps do ? Moving entries may require changes to the client application side. Is it something acceptable for you or should that move be transparent for the client apps ?
    Similarly, If you move an entry that refers to a SSL client certificate, client authentication will break after moving an entry. Are you using client certificates ?
    Before performing a modify DN operation, ensure that the operation would not break your application. The rename or move of an entry can change the following characteristics of the entry: The scope of a filtered role of an entry, The nested role of an entry, where the nested role contains a filtered role, The dynamic group membership of an entry. Furthermore, the entryid attribute of an entry can change when an entry is moved so this may impact your applications if they use the entryid operational attribute.
    Static groups that contain reference to the old user dn may be updated automatically if you Enable and configure the referential integrity plug-in on all master replicas in the topology. This action ensures that the server maintains referential integrity for groups and roles.
    LDAP mod dn and associated constraints are described at Directory Server Entries - 11g Release 1 (11.1.1.7.0)
    -Sylvain
    When closing a thread as answered remember to mark the correct and helpful posts to make it easier for others to find them

  • How to Migrate WSDLs from one environment to other

    Hi All,
    can somebody please tell me how can WSDLs from one environment be migrated to other environments.
    I could not see any option in CMU.
    Do i need to create them Manually in every environment.
    many thanks,
    sapan

    As I recall, you can manually move the file data/soap/custom/wsdl_custom.hda from the instance folder on one system to the other. Then, manually choose the option to publish the WSDLs from the WSDL generator tool in admin interface. Not automatic in any way (well, the publishing is kind of automatic) but certainly better than manually re-entering the WSDL definition.
    Note that this will not do if you need to merge WSDLs from the first system to the second system. By moving the HDA file you will be replacing all custom WSDL definitions on the second system with those from the first.
    Jon-Eric Eliker, Vision Marshal
    Frontline Logic, Inc.
    http://www.frontlinelogic.com

  • How to move infoobject from one infoarea to other

    Hi All,
    I need to move a particular infoobject from one infoobject catalog  to other.
    1. I went to change mode of infoobject catalog and tried to drag and drop the particular infoobject, but its not possible.
    2. Also let me know whether CMOD code is client dependent or independent.
    Kindly throw some pointers on this.
    Thanks,
    Sri Arun Prian

    Hi,
    Go to change mode of infoobject for which you want to change Infoarea.
    In the Master Data /Text tab you have option of selecting InfoArea Using F4 help,
    you can select the new Infoarea then save and activate infoobject.
    After that refresh the screen you can infoobject in right Infoarea.
    Vikas

  • How to upgrade transports from one sp to other

    Hi,
      I have transports which are created in support pack 11 for example. My whole system is the upgraded to support pack 12. I have large number of transports which are not moved to quality. Is there any program or any step where I can regenerate these transports from one support pack to other. I know I can make any small  change in the program and save them which will create a new transports but I have huge list. Please advise.
    Regards,

    You need to create the transports again, You can move the existing transports simply into Quality system.
    Well as per SAP theory during transports both the system should be equal in the Application level, but really it is not possible every time, becasue there are lots of update are coming regularly and you cannot create so many environement to test it first, so usually we are doing the same. we import the request between two support release,
    Regards
    Subhash

  • How to pass data from one component to other component.

    Hi,
      I have created a table view in Item Details Page Under Price Agreement Assignment Block. Price Agreement Assignment Block has one table as standard. I have created one more view Under the Assignment block of Price agreement(CRMCMP_CND). In that view I have an option to enter data when the user click on edit. In that custom view, If user cnages to edit mode and enter data. it has to save when user click's on save button in Quotation page(BT116QH_SRVQ). From Quotation page user clicks on item to get the Item details. In the Item details there is an Price Agreement Assignment Block. In that Custom view was created and assigned to it. Data entred in that view needs to be stored when user clciks on Save button on Quotation page when he comes back. How to get the custom view data from CRMCMP_CND to BT116QH_SRVQ). Please advice. Thanks In Advance.

    Hi Satish,
    Global custom controllers are not available everywhere. So before using them please make sure that they are available for your case.
    http://sapdiary.com/index.php?option=com_content&view=article&id=2402:sap-network-blog-interaction-center-global-custom-controllers&catid=81:data-services&Itemid=81
    if you find problems in navigating data using component controllers then you can also navigate it through navigation links.
    If you see your outbound plug method op_xxxxx, then there is a method call to navigate method. This method has an option to pass your data collection. Pass your data collection and also inbound plug so that in target component you can read and temporarily store data as soon as you hit target component.
    Hope that helps,
    BJ

  • How to export photos from one library to other?

    I have two Aperture's libraries. The first one has my full albums, since 2001, and runs on my 2Tb external HD. The other one, has only the current year's photos, and is storaged on my Macbook Pro local disk.
    So I want to export ou migrate all my 2011 photos from my local library to the first one. So I can start the new year (2012) with a new empty library on my mac.
    How is the best way to do this?
    Thanks.

    You should look into Aperture's "Duplicate Project Structure" command to see if it helps.  You might be able to set up your 2012 Library prior to "archiving" 2011.
    Scroll down this User Manual page.
    Duplicating a Project Structure
    If you routinely use the same project structure populated with the same types of albums and folders, you can duplicate the structure of an existing project and create a new, empty project with the same arrangement of albums and folders. If the project you’re duplicating has Smart Albums, the settings for those Smart Albums are duplicated as well.
    Many users are better served by having one Library, and putting Masters on an external drive as their Library grows too big.  If you are interesting in this, ask.

  • How to import data from one instance to other

    Hello all,
    I want to modify the data in one dev instance from production instace ,but in same table can any help me out with command how to retreive the data from other instance
    example:
    I want to change the email address of a person in per_all_people_f table in development instance which has the accurate data in production instance ,I am using the update statement how should I relate them and how to change the value?

    You can create one dblink in dev db to Production db with the user/schema the live table belongs. Then you can accesss the live table in dev db.
    eg.
    Run in Dev db
    create database link "live_db.WORLD"
    connect to live_user
    identified by <pwd>
    using 'live_tns_name';
    select * from live_table@live_db;
    Now the remore live table is available in dev db just as if a local table.
    You can play with its data.
    But remember to remove the dblink after your work is done.
    drop database link live_db; does the work
    cheers...
    Message was edited by:
    golden Arrow

  • How to copy data from one cube to other?

    Hi experts
    I have 2 system defined cubes..
    Now in 1st cube there is data till 2007  which is coming from 2LIS_04_P_MATNR.
    I want to copy this data in 2nd cube..
    Please suggest me.. how can I do it?
    Regards
    Swati

    swathi..
    create a export datasource option for exisintg the cube...
    Then replicate the same exported datasource which you craetd.
    Then do the trasnformation one to one from the exisitng cube(i mean which the datamart crated by u)
    Now load the infopackage from the old cube to new cube...
    we implemented the same in many of our data targets in the current project

  • How to pass values from one stage to other

    I have two stage (say primary and secondary).The primary stage creates the secondary stage. When the secondary is opened i can access all the members(say bitNo) of 1st stage and try to set some value. But in the 1st stage i find the value not being set. I think it's because 1st is executed before the 2nd. I used showAndWait() in 1st then show() on 2nd then it is throwing exception.
    So i want to use the values set by the 2nd stage in the 1st stage.
    How do i synchronize them ?
    Thanks .
    package test;
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    public class Test extends Application {
        private int bitNo;
        Stage primaryStage,secondaryStage;   
        TextField textField;   
        double x,y;
        public static void main(String[] args) { launch(args); }
        @Override
        public void start(final Stage primaryStage) {
            this.primaryStage=primaryStage;
            Group rt=new Group();
            Scene sc= new Scene(rt,300,300);
            Button button =new Button("Click Me");
            button.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent event) {
                    secondaryStage=new Stage(StageStyle.TRANSPARENT);
                    secondaryStage.initModality(Modality.WINDOW_MODAL);
                    secondaryStage.initOwner(primaryStage);    
                    showSecondaryWindow();
            rt.getChildren().add(button);          
            primaryStage.setScene(sc);
            primaryStage.show();
            //primaryStage.showAndWait();
            System.out.println("Bit no set= "+bitNo);      
    }//start
    public void showSecondaryWindow(){
         Pane root=new Pane();
         root.setStyle("-fx-background-color: rgb(0,50,70);");
         //root.setPrefSize(200,200);
         Scene scene=new Scene(root,200,300);
         Label label=new Label("Data");
         textField=new TextField();
         textField.setUserData("one");
         Button ok=new Button("Ok");
         ok.setDefaultButton(true);
         ok.setOnMouseClicked(new EventHandler<MouseEvent>() {
            @Override
            public void handle(MouseEvent event) {
                System.out.println("New Stage Mouse Clicked");
                bitNo=Integer.parseInt(textField.getText());
                System.out.println("Bit no set by Secondary= "+bitNo);
                primaryStage.getScene().getRoot().setEffect(null);
                secondaryStage.close();
         Button cancel=ButtonBuilder.create().cancelButton(true).text("Cancel").build();
         cancel.setOnMouseClicked(new EventHandler<MouseEvent>() { 
             @Override
             public void handle(MouseEvent event) {
                 System.out.println("New Stage Mouse Clicked");
                 primaryStage.getScene().getRoot().setEffect(null);
                 secondaryStage.close();
         //VBox vBox =new VBox();
         //vBox.getChildren().addAll(label,textField,ok);
         HBox dataFileds=new HBox(10);
         dataFileds.getChildren().addAll(label,textField);
         HBox buttons=new HBox(10);
         buttons.getChildren().addAll(cancel,ok);
         root.getChildren().add(VBoxBuilder.create().children(dataFileds,buttons).spacing(10).build());
         //scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
         secondaryStage.setScene(scene);
         //final Node root = secondaryStage.getScene().getRoot();
         root.setOnMousePressed(new EventHandler<MouseEvent>() {
             @Override public void handle(MouseEvent mouseEvent) {
                 // record distance for the drag and drop operation.
                 x = secondaryStage.getX() - mouseEvent.getScreenX();
                 y = secondaryStage.getY() - mouseEvent.getScreenY();
         root.setOnMouseDragged(new EventHandler<MouseEvent>() {
             @Override public void handle(MouseEvent mouseEvent) {
                 secondaryStage.setX(mouseEvent.getScreenX() +x);
                 secondaryStage.setY(mouseEvent.getScreenY() +y);
         //primaryStage.getScene().getRoot().setEffect(new BoxBlur());
         secondaryStage.show();
    }//showSecondaryWindow
    }//class

    You can use showAndWait() on your secondary stage. Then execution is blocked and you'll see the change to your variable:
    package test ;
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    public class Test extends Application {
      private int bitNo;
      Stage primaryStage, secondaryStage;
      TextField textField;
      double x, y;
      public static void main(String[] args) {
        launch(args);
      @Override
      public void start(final Stage primaryStage) {
        this.primaryStage = primaryStage;
        Group rt = new Group();
        Scene sc = new Scene(rt, 300, 300);
        Button button = new Button("Click Me");
        button.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            secondaryStage = new Stage(StageStyle.TRANSPARENT);
            secondaryStage.initModality(Modality.WINDOW_MODAL);
            secondaryStage.initOwner(primaryStage);
            // This calls showAndWait(), so execution blocks until the window is closed
            showSecondaryWindow();
            // secondary window is now closed, value should be updated:
            System.out.println("Bit no now: " + bitNo);
        rt.getChildren().add(button);
        primaryStage.setScene(sc);
        primaryStage.show();
        // primaryStage.showAndWait();
        System.out.println("Bit no set= " + bitNo);
      }// start
      public void showSecondaryWindow() {
        Pane root = new Pane();
        root.setStyle("-fx-background-color: rgb(0,50,70);");
        // root.setPrefSize(200,200);
        Scene scene = new Scene(root, 200, 300);
        Label label = new Label("Data");
        textField = new TextField();
        textField.setUserData("one");
        Button ok = new Button("Ok");
        ok.setDefaultButton(true);
        ok.setOnMouseClicked(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            bitNo = Integer.parseInt(textField.getText());
            System.out.println("Bit no set by Secondary= " + bitNo);
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
        Button cancel = ButtonBuilder.create().cancelButton(true).text("Cancel")
            .build();
        cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
        // VBox vBox =new VBox();
        // vBox.getChildren().addAll(label,textField,ok);
        HBox dataFileds = new HBox(10);
        dataFileds.getChildren().addAll(label, textField);
        HBox buttons = new HBox(10);
        buttons.getChildren().addAll(cancel, ok);
        root.getChildren().add(
            VBoxBuilder.create().children(dataFileds, buttons).spacing(10).build());
        // scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
        secondaryStage.setScene(scene);
        // final Node root = secondaryStage.getScene().getRoot();
        root.setOnMousePressed(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            // record distance for the drag and drop operation.
            x = secondaryStage.getX() - mouseEvent.getScreenX();
            y = secondaryStage.getY() - mouseEvent.getScreenY();
        root.setOnMouseDragged(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            secondaryStage.setX(mouseEvent.getScreenX() + x);
            secondaryStage.setY(mouseEvent.getScreenY() + y);
        // primaryStage.getScene().getRoot().setEffect(new BoxBlur());
        secondaryStage.showAndWait();
      }// showSecondaryWindow
    }// classYou can also use an IntegerProperty to hold the variable, and listen for changes on it:
    package test ;
    import javafx.application.Application;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    public class Test extends Application {
      private IntegerProperty bitNo;
      Stage primaryStage, secondaryStage;
      TextField textField;
      double x, y;
      public static void main(String[] args) {
        launch(args);
      @Override
      public void start(final Stage primaryStage) {
        this.bitNo = new SimpleIntegerProperty();
        bitNo.addListener(new ChangeListener<Number>() {
          @Override
          public void changed(ObservableValue<? extends Number> observable,
              Number oldValue, Number newValue) {
            System.out.printf("bit no changed from %d to %d%n", oldValue, newValue);
        this.primaryStage = primaryStage;
        Group rt = new Group();
        Scene sc = new Scene(rt, 300, 300);
        Button button = new Button("Click Me");
        button.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            secondaryStage = new Stage(StageStyle.TRANSPARENT);
            secondaryStage.initModality(Modality.WINDOW_MODAL);
            secondaryStage.initOwner(primaryStage);
            showSecondaryWindow();
        rt.getChildren().add(button);
        primaryStage.setScene(sc);
        primaryStage.show();
        // primaryStage.showAndWait();
        System.out.println("Bit no set= " + bitNo.get());
      }// start
      public void showSecondaryWindow() {
        Pane root = new Pane();
        root.setStyle("-fx-background-color: rgb(0,50,70);");
        // root.setPrefSize(200,200);
        Scene scene = new Scene(root, 200, 300);
        Label label = new Label("Data");
        textField = new TextField();
        textField.setUserData("one");
        Button ok = new Button("Ok");
        ok.setDefaultButton(true);
        ok.setOnMouseClicked(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            bitNo.set(Integer.parseInt(textField.getText()));
            System.out.println("Bit no set by Secondary= " + bitNo);
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
        Button cancel = ButtonBuilder.create().cancelButton(true).text("Cancel")
            .build();
        cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
        // VBox vBox =new VBox();
        // vBox.getChildren().addAll(label,textField,ok);
        HBox dataFileds = new HBox(10);
        dataFileds.getChildren().addAll(label, textField);
        HBox buttons = new HBox(10);
        buttons.getChildren().addAll(cancel, ok);
        root.getChildren().add(
            VBoxBuilder.create().children(dataFileds, buttons).spacing(10).build());
        // scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
        secondaryStage.setScene(scene);
        // final Node root = secondaryStage.getScene().getRoot();
        root.setOnMousePressed(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            // record distance for the drag and drop operation.
            x = secondaryStage.getX() - mouseEvent.getScreenX();
            y = secondaryStage.getY() - mouseEvent.getScreenY();
        root.setOnMouseDragged(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            secondaryStage.setX(mouseEvent.getScreenX() + x);
            secondaryStage.setY(mouseEvent.getScreenY() + y);
        // primaryStage.getScene().getRoot().setEffect(new BoxBlur());
        secondaryStage.show();
      }// showSecondaryWindow
    }// class

Maybe you are looking for

  • Need to know how to better manage revolving users in a group

    I have a new Beehive Online group set up for a external partner collaboration. Members of the group are only from Oracle or that external partner. While the BHO group is new, the collaboration has been in place for a long time (since 2007). Initially

  • Tutorial on ADF Faces/Toplink

    I'm in the process of evaluating JDev 10.1.3, with particular focus on ADF Faces. I'm not seeing some simple examples that combine the use of ADF Faces and Toplink, and my ignorant attempts to combine the two have resulted only in frustration. Has an

  • Convert from Photoshop Album to PSE8 fails

    I'm finally making the move from Album 1.0/Elements 2 up to PSE8 on our new Windows 7 computer. I copied all my files from the 'My Pictures' directory into the new computer 'My Pictures' directory.  With Photoshop Album, I saved the catalog as My Cat

  • Problems sync'ing iPod with iTunes

    I purchased some episodes of The Office through iTunes recently. Initially these episodes appeared on my iPod after sync'ing. Now, when I sync, the episodes will not transfer to my iPod. They appear in my iTunes account, the checkboxes are checked, b

  • Powerbook wont login to Wireless router

    Hello Team, This may be the wrong place for this question, but I'm not sure where else it would go. I upgraded my ATT router to a new model with wireless access made by 2Wire. I set up the 2Wire to use the same network name as my Airport Extreme used