How to pass value with room settings using URLs GO

Hi all

I use GO url to a report that comes from a different domain. I used is invited and all in the target report. All valuses come in the report target with filtered according to the recording of line condition. But what value is to have a sound space creating problem and showing instead of the entire report of the same rank value. How to solve this problem. Is there any format pass parameter that can ve a value with a space between the two.

Once again, when I go to the report target with GO url link his watch not download or link back. Can help in this regard too

Thank you

Put a Replace function...

'||' Click to see the ingredient details | »

Tags: Business Intelligence

Similar Questions

  • How accept/pass values as Oracle text multiline.

    Hi all

    Help, please!

    I'm trying to pass values of several lines of text in the form of Oracle to a stored procedure.

    To explain in detail, I have a text element (let's say Input_Text_item - a multiline value yes property) which would not. values as input (possibly by copy/paste), a button - pressed, it should take each value 'Input_text_item' (line by line) and pass the value to a stored procedure and display the result in another element of text (which has the property multiline set to Yes) I say "Output_text_item".

    Now the problem is to know how to read "Input_Text_item" multiline values I am only able to read the unique value. When I try the multi-line values, it gives me "FRM-50024: space run posts only" error.

    Is there a way to fix this?


    Thank you
    B

    Back to my original post, how to place multiple lines of a text element values to a stored procedure.

    I want to spend the value 10 (from the first line of item_1) to store procedure/function - get result.

    then pass the value 40 (from the second row of item_1) to a stored procedure again and so on... >
    If I understand correctly, you want to send each line (MLT) multiline text item as a separate parameter a stored procedure. If this is correct, then you will need analyze the different lines of the TRM in the values of the individual parameters. This can be done by analyzing the MLT using the Carrage return [Chr (13)] and line break characters [Chr (10)] in the MLT as separators and delimiters of each value. There are some good examples of how to cut a string multiple values (or an array). Here are a few good examples:

    PL/SQL: Splitting a string in a table?
    How to parse a string in Oracle.

    These two methods can be easily adapted to research on the characters of Chr (10) and Chr (13), so you can analyze your TRM.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • How to pass values to external applications to guests of dashboard?

    Any idea is appreciated.

    How can I pass values of the guests dashboard from external applications to the dashboard inviting so that the dashboard is filtred based on the values sent by external applications.

    Thanks in advance!

    Kris

    Kris,

    I am able to change the session variable and able to call external application dashboard, but I identified the prompt value changes do not. but finally I am able to find a solution for you.

    Use the following URL and he explained here

    http://localhost:9704/Analytics/saw.dll?dashboard&nquser=administrator&nqpassword=administrator&PortalPath=/shared/ABCD/_portal/Dash1&options=RMF&DSN=Madan

    CheminPortail is your dashboard location. / Shared/ABCD is the folder in which I recorded dashboards. Dash1 is my dashboard name.

    internally, this dashboard includes a lot of reports that use the session variable. After above that, I am able to update the session variable to the value I have given in the URL, DSN = value.

    You can observe here called the dashboard and happening of value, but its not updated to the prompt value. so this workaround is change the prompt,

    Replace the default - SQL result and place the code sql

    SELECT CASE WHEN 1 = 0 THEN ANOTHER VALUEOF Markets.Region (NQ_SESSION. DSN) END saw_0 OF paint

    again here Market.Region is a column in the presentation layer and paint material. After you complete this step, the command prompt displays always value in the default session variable.

    Now include reports and dashboard invites in the dashboard and run this url from external applications.

    http://localhost:9704/Analytics/saw.dll?dashboard&nquser=administrator&nqpassword=administrator&PortalPath=/shared/ABCD/_portal/Dash1&options=RMF&DSN=Madan

    It worked for me and blog it soon. If it works for you question mark as answered and mark my answers as being correct.

    Thank you
    -Madan

  • How do you reinstall to factory settings using the recovery disk

    Hi, I created the set of recovery disks. Can you please guide me how to reinstall to factory settings using the recovery disk.
    Thank you

    Put the first disc in the CD/DVD drive.
    Turn on the device, press F12, choose ODD as device boot and boot from the CD/DVD drive containing the recovery disc.
    Follow the instructions on the screen.

  • How to export PNGS with 300 res using Applescript

    How to export PNGS with 300 res in Applescript

    I want to copy an art and paste in the new document and export in PNG to the location on the desktop & file name should be my previous doc were I copy file form. and the saved file must be filename_PNG.png

    the value ((path to desktop) saveLocation as string)

    Tell application "Adobe Illustrator"

    If not then turn on

    If (County documents) > 0 then

    the selection from the active document selectedItems value

    If selectedItems is not {}, then

    copy

    the active document color space the color value

    do the new document with properties {color space: color space}

    dough

    end if

    end if

    tell the end

    Tell application "Adobe Illustrator"

    tell document 1

    the value visible limits SelectedArt

    the rectangle value Board chart of the artboard 1 SelectedArt

    export the current document for the file newFilePath as PNG8 ¬

    with options {class: PNG8 export options ¬}

    , color County: 64 ¬, ¬ reduction: web color

    , ¬ dither dither: color model

    , prevaricate for cent: €50

    {interlaced: true}

    close the document assets registration No.

    tell the end

    tell the end

    You will need to set the 416,67% (both horizontal and vertical) scale. Default export at 100% will give you a 72 dpi PNG.

  • How to pass values to the page to the Page target?

    Hi all

    I want to pass values from the 10 column to a report page (page 1 of source) to a target page 2 HTML region and 10 fields.
    These 10 fields held values that are passing in the report.

    Please suggest a solution here!

    Thank you and best regards,
    Robette.

    source page IE 1, since I can navigate to page 3, and also on page 2, I can navigate to the target 3 page, when I click on the back button Go it will navigate page 1 only.
    That is why I want the Go back button must redirect the target page, hence it is called.

    Create an application called PREV_PAGE, item in the link of the page 3 col page 2 * 3 * as a parameter of the element PREV_PAGE.
    So when you're on page 2 you will know the previous page is the value of the point of application PREV_PAGE 3
    So would be the url in your Go Back button

    f?p=&APP_ID.:&PREV_PAGE.:&APP_SESSION.::NO::
    

    There is something really need it please send your comments to this requirement. It will be really useful.

  • How to pass values to a variable of the file.

    Hello

    I want to pass values in a variable to a file. For example: I want to divide the records in the source based on the region and load a region at any given time. Is there a way I can tell ODI to load only one region at a time. Currently I think I have a varibale defined, pass the value from a file and use this variable in the source filter.

    All answers are appreciated.

    Thank you
    CHikk

    Hello

    Right thinking...

    Simply use the following command, to the updating of the ODI variable tab, to get the values directly in the file:

    Select REGION_NAME
    table
    / * $$ SNPS_START_KEYSNP$ CRDWG_TABLESNP$ CRTABLE_NAME = REGIONSNP$ CRLOAD_FILE = <%=odiRef.getSchemaName("D")%> \MY_FILE. TXTSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=09SNP$CRFILE_SEP_LINE=0D0ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=REGION_NAMESNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLINE_OFFSET=1SNP$CRLENGTH=500SNP$CRPRECISION=500SNP$CR$$SNPS_END_KEY*/

    (the command between ' / * ' and ' * / ' must be in a single line)

    Change the 'MyFile' the real file name

    This help you?

  • How to pass in shared room after creation with the api server2server objects

    Advice or code samples are welcome.

    Hello

    The feature that accomplishes this task for you is models. You can configure which

    sharedProperty only once, when the developer, then save it in an application

    (from the room Console or portal Dev) model, you use as second

    parameter in createRoom. Then all the new rooms are pre configured with the

    sharedProperty. Same values entered are registered.

    See: http://learn.adobe.com/wiki/display/lccs/6.3Templatesrooms

    Hope that helps,

    Nigel

  • How to pass values from method to method of CO AM return?

    Hello

    On my personal page, I have a method in the AM. This method calls a PL/SQL package to get some values in the database.
    I need to return values to my CO thos where I called the AM method. How to do that.
    Already, I did the following:

    in CO


    String ledgerId = null;
    String ledgerName = null;
    String countedLedgers = null;
    String budgetVersionId = null;
    String budgetName = null;

    [Serializable] parameters = {ledgerId
    ledgerName
    countedLedgers
    budgetVersionId
    budgetName
    };

    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    am.invokeMethod ("getLedgerData", parameters);


    in AM

    public void getLedgerData (String LedgerId
    String LedgerName
    String CountedLedgers
    String BudgetVersionId
    String BudgetName
    )
    throws SQLException
    {

    ......
    After call to PL/SQL
    ......
    After running you can get the value of a pl/sql block production
    ledgerId = callPLSQLStmt.getString (1);
    ledgerName = callPLSQLStmt.getString (2);
    countedLedgers = callPLSQLStmt.getString (3);
    budgetVersionId = callPLSQLStmt.getString (4);
    budgetName = callPLSQLStmt.getString (5);
    callPLSQLStmt.close ();

    System.out.println ("AM Ledger Info: ledgerId:" + ledgerId);
    System.out.println ("AM Ledger Info: ledgerName:" + ledgerName);
    System.out.println ("AM Ledger Info: countedLedgers:" + countedLedgers);
    System.out.println ("AM Ledger Info: budgetVersionId:" + budgetVersionId);
    System.out.println ("AM Ledger Info: budgetName:" + budgetName);

    LedgerId = ledgerId;
    LedgerName = ledgerName;
    CountedLedgers = countedLedgers;
    BudgetVersionId = budgetVersionId;
    BudgetName = budgetName;
    ....



    Thus, upon his return in the central, what should I do to get these values on 'settings [Serializable]", which I've provided?
    The end result should be to bring them to the screen...

    Thank you
    Ronny

    He is sure to get the values using the hash table.

    The AM procedure would be something similar to

    public HashMap getLedgerData (String pLedgerId)
    )
    Can be used get pLedgerIdto results... If you already know the value so no need for this parameter
    Run your PL/SQL
    HashMap ledgerDetailsHash = new HasnMap();
    ledgerDetailsHash.put ("LedgerId", value1);
    ledgerDetailsHash.put ("LedgerName", value2);
    ledgerDetailsHash.put ("CountedLedgers", value3);
    .......

    Return ledgerDetailsHash;
    }

    Your call to CO's going to be

    HashMap resultMap = (HashMap) am.invokeMethod ("getLedgerData", parameters, where applicable);
    String LedgerName = resultMap.get ("LedgerName");
    ......

    Kind regards
    Stephanie.

  • How to pass values from a Java class to a class of JavaFX?

    Hi Forum,
    I get nuts on this problem:
    I designed a program with Java and JavaFX classes. JavaFX classes handle the GUI and Java classes mix program logic. I think that's the way it is supposed to be. My program calculates something, so in my JavaFX GUI, I have a button to run this calculation. It's not a problem to call the start function calculation (which is in my Java class) on click of a button. But now I want to display the result of this calculation in my GUI. I can't just simply pass the result to my class of JavaFX GUI. I tried to import the JavaFX class in my Java class to call a set function, but I can't import them with the import statement. So my question is, how do I make the results to my GUI? What is the right way to do it?
    I hope someone can help, thanks in advance :)

    Two ways, either:

    -your JavaFX class asks the Java class for the result once the task completed in exactly the same way he instantiated to start the task. Of course, you should regularly check the completion of the task (a mere PauseTransition).

    - or your JavaFX class implements a Java INTERFACE and your Java class accepts (whether through the method or constructor) a variable of type of this interface. For example, you can set a reference to the subject of JavaFX itself in the Java object using the interface.
    When the task is completed, your Java class calls a method defined in the INTERFACE to set the result in the object of JavaFX.

    In addition, JavaFX 1.3.x provides an API to start asynchronous and be notified when a task is completed in the javafx.async package that allows you to run the task of basic Java (you mind that the class is named...) JavaTaskBase, see also the RunnableFutre interface) in a separate thread.

  • How to pass values to the place where conditon

    Hello people

    I m really new here and my first problem oracle Report Builder I contest...

    I m help IN the operand as follows

    ...
    where number IN (: P1)
    ...

    I tried to fill P1 in the param with 1,2,3,4 screen but still get the message, that the parameter is incorrect

    the parameter is declared under the NUMBER - I've tried all the available formats - and I also tried to use the brackets in all positionnelles variants.

    Thanks for help

    Hello

    If you are using:
    ...
    where number IN (: P1)
    ...

    in an SQL query in the reports, you will be able to 'pass' as a single value in P1.
    If you want to pass multiple values:
    for ex 1,2,3,4
    You must use a "lexical reference.
    ...
    where number IN (& P1)
    ...

    P1 must be declared as a parameter of character and must have an initial value. This initial value will use Report Builder when it analyzes the SQL query.
    Thus, this initial value must be somehting that will make the valid SQL query...

    Concerning

  • How to pass values to vCAC in a vCO workflow?

    I am working on a custom naming convention in vCAC 6.1 and I've got Setup custom properties vCO goes via the BuildingMachine stub by using workflows of extensibility module vCAC. I can create my custom in vCO name, but I don't know how to spend back in vCAC. I have seen a few examples using the vCAC Designer, but I'd stick rather just to vCO to if possible. I feel that it is probably quite simple, that I just haven't thought to it yet.

    Any tips?

    Thank you

    Jake

    Thanks, I thought to use that, but wanted to learn the process anyway in case I need to do with another property at any given time. I could find the answer here: Re: how to update vCAC VM workflow BuildingMachine name

  • How to pass values from one stage to the other

    I have two steps (called primary and secondary). The primary stage creates the secondary stage. When the school is open I can access all the members (say according to) of the 1st stage and try to set a value. But in the 1st stage, I think the value is not defined. I think it is because 1 is executed before the 2nd. I used showAndWait() in 1st then show() on 2nd, then it is thrown exception.

    So I want to use the values defined by the 2nd step of the 1st stage.
    How to synchronize their?
    Thank you.
    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 will see the change in 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() {
    
          @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() {
    
          @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() {
          @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() {
          @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() {
          @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
    
    }// class
    

    You can also use an IntegerProperty to hold the variable and listening to the amendments on this subject:

    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() {
    
          @Override
          public void changed(ObservableValue 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() {
    
          @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() {
    
          @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() {
          @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() {
          @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() {
          @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
    
  • How to pass values from one function to the other

    Hello

    I am a school teacher and a beginner in Flash Actionscript. I am creating a countdown for use in my classroom during testing. The beginning and break according to need, but not the pause button functions. When I click on the pause button, the timer is reset to 0:00:00. Help, please. Here is the code that I had written so far:

    var Subject1timeLeftHr;

    var Subject1timeLeftMin;

    var Subject1timeLeftSec;

    Subject1start_btn._visible = true;

    Subject1pause_btn._visible = false;

    Subject1rotor_mc.gotoAndStop (1);

    Subject1rotor_mc._visible = false;

    Subject1durationHr_txt. Text = "0";

    Subject1durationMin_txt. Text = "00";

    Subject1durationSec_txt. Text = "00";

    Selection.setFocus (Subject1durationHr_txt);

    function SubjectdurationHr (SubjectxdurationHr_txt, SubjectxdurationMin_txt)

    {

    if (SubjectxdurationHr_txt.length == 1)

    {

    Selection.setFocus (SubjectxdurationMin_txt);

    }

    }

    function SubjectdurationMin (SubjectxdurationMin_txt, SubjectxdurationSec_txt)

    {

    if (SubjectxdurationMin_txt.length == 2)

    {

    Selection.setFocus (SubjectxdurationSec_txt);

    }

    }

    function SubjectdurationSec (SubjectxdurationSec_txt, SubjectxdurationHr_txt)

    {

    if (SubjectxdurationSec_txt.length == 2)

    {

    Selection.setFocus (SubjectxdurationHr_txt);

    }

    }

    Subject1durationHr_txt. OnChanged = function()

    {

    SubjectdurationHr (Subject1durationHr_txt, Subject1durationMin_txt);

    };

    Subject1durationMin_txt. OnChanged = function()

    {

    SubjectdurationMin (Subject1durationMin_txt, Subject1durationSec_txt);

    };

    Subject1durationSec_txt. OnChanged = function()

    {

    SubjectdurationSec (Subject1durationSec_txt, Subject1durationHr_txt);

    };

    function startcountdown (SubjectxdurationLeft, SubjectxdurationHr, SubjectxdurationHr_txt, SubjectxdurationMin, SubjectxdurationMin_txt, SubjectxdurationSec, SubjectxdurationSec_txt, Subjectxduration, SubjectxstartTime, SubjectxendTime, Subjectxtimer_mc, Subjectxpause_btn, Subjectxstart_btn, Subjectxrotor_mc, SubjectxtimeLeft, SubjectxtimeLeftHr, SubjectxtimeLeftMin, SubjectxtimeLeftSec, SubjectxtimeLeftHr_txt, SubjectxtimeLeftMin_txt, SubjectxtimeLeftSec_txt)

    {

    delete SubjectxdurationLeft;

    delete SubjectxdurationHr;

    delete SubjectxdurationMin;

    delete SubjectxdurationSec;

    delete Subjectxduration;

    delete SubjectxdurationHr_txt.text;

    delete SubjectxdurationMin_txt.text;

    delete SubjectxdurationSec_txt.text;

    SubjectxstartTime = getTimer();

    Subjectxtimer_mc.onEnterFrame = function()

    {

    if (SubjectxdurationHr_txt.text == Nan |) SubjectxdurationMin_txt.text == Nan | SubjectxdurationSec_txt.text is Nan)

    {

    }

    else

    {

    SubjectxdurationHr = 60 * 60 * 1000 * Number (SubjectxdurationHr_txt.text).

    SubjectxdurationMin = 60 * 1000 * Number (SubjectxdurationMin_txt.text).

    SubjectxdurationSec = 1000 * Number (SubjectxdurationSec_txt.text).

    Subjectxduration = SubjectxdurationHr + SubjectxdurationMin + SubjectxdurationSec;

    SubjectxendTime = SubjectxstartTime + Subjectxduration;

    SubjectxdurationLeft = SubjectxendTime - getTimer();

    if (SubjectxdurationLeft > 0)

    {

    SubjectxdurationHr_txt._visible = false;

    SubjectxdurationMin_txt._visible = false;

    SubjectxdurationSec_txt._visible = false;

    Subjectxpause_btn._visible = true;

    Subjectxstart_btn._visible = false;

    Subjectxrotor_mc._visible = true;

    Subjectxrotor_mc.play ();

    SubjectxtimeLeft = SubjectxdurationLeft / (1000 * 60 * 60);

    SubjectxtimeLeftHr = Math.floor (SubjectxtimeLeft);

    SubjectxtimeLeftMin = Math.floor ((SubjectxtimeLeft-SubjectxtimeLeftHr) * 60);

    SubjectxtimeLeftSec = Math.floor (((SubjectxtimeLeft-SubjectxtimeLeftHr) * 60 - SubjectxtimeLeftMin) * 60);

    SubjectxtimeLeftHr_txt.text = String (SubjectxtimeLeftHr);

    if (SubjectxtimeLeftHr_txt.length < 1)

    {

    SubjectxtimeLeftHr_txt.text = '0' + SubjectxtimeLeftHr_txt.text;

    }

    SubjectxtimeLeftMin_txt.text = String (SubjectxtimeLeftMin);

    if (SubjectxtimeLeftMin_txt.length < 2)

    {

    SubjectxtimeLeftMin_txt.text = '0' + SubjectxtimeLeftMin_txt.text;

    }

    SubjectxtimeLeftSec_txt.text = String (SubjectxtimeLeftSec);

    if (SubjectxtimeLeftSec_txt.length < 2)

    {

    SubjectxtimeLeftSec_txt.text = '0' + SubjectxtimeLeftSec_txt.text;

    }

    }

    else

    {

    delete Subjectxtimer_mc.onEnterFrame;

    SubjectxtimeLeftHr_txt.text = "";

    SubjectxtimeLeftMin_txt.text = "";

    SubjectxtimeLeftSec_txt.text = "";

    SubjectxdurationHr_txt._visible = true;

    SubjectxdurationMin_txt._visible = true;

    SubjectxdurationSec_txt._visible = true;

    Subjectxrotor_mc.gotoAndStop (1);

    Subjectxrotor_mc._visible = false;

    SubjectxdurationHr_txt.text = '0 '.

    SubjectxdurationMin_txt.text = "00";

    SubjectxdurationSec_txt.text = "00";

    Subjectxpause_btn._visible = false;

    Subjectxstart_btn._visible = true;

    Selection.setFocus (SubjectxdurationHr_txt);

    }

    }

    };

    }

    function pausecountdown (SubjectxdurationHr_txt, SubjectxtimeLeftHr, SubjectxdurationMin_txt, SubjectxtimeLeftMin, SubjectxdurationSec_txt, SubjectxtimeLeftSec, Subjectxstart_btn, Subjectxpause_btn, Subjectxrotor_mc)

    {

    delete Subjectxtimer_mc.onEnterFrame;

    SubjectxdurationHr_txt.text = String (SubjectxtimeLeftHr);

    SubjectxdurationMin_txt.text = String (SubjectxtimeLeftMin);

    SubjectxdurationSec_txt.text = String (SubjectxtimeLeftSec);

    Subjectxstart_btn._visible = true;

    Subjectxpause_btn._visible = false;

    Subjectxrotor_mc.stop ();

    }

    Subject1pause_btn.onRelease = function()

    {

    pausecountdown (Subject1durationHr_txt, Subject1timeLeftHr, Subject1durationMin_txt, Subject1t, imeLeftMin, Subject1durationSec_txt, Subject1timeLeftSec, Subject1start_btn, Subject1pause_btn, Subject1rotor_mc);

    };

    Subject1start_btn.onRelease = function()

    {

    startcountdown (Subject1durationLeft, Subject1durationHr, Subject1durationHr_txt, Subject1dura, tionMin, Subject1durationMin_txt, Subject1durationSec, Subject1durationSec_txt, Subject1durati, Subject1startTime, Subject1endTime, Subject1timer_mc, Subject1pause_btn, Subject1start_btn, Subject1rotor_mc, Subject1timeLeft, Subject1timeLeftHr, Subject1timeLeftMin, Subject1timeLeftS ec, Subject1timeLeftHr_txt, Subject1timeLeftMin_txt, Subject1timeLeftSec_txt);

    };

    Subject1cancel_btn.onRelease = function()

    {

    Subject1timeLeftHr_txt.text = "";

    Subject1timeLeftMin_txt.text = "";

    Subject1timeLeftSec_txt.text = "";

    Subject1durationHr_txt._visible = true;

    Subject1durationMin_txt._visible = true;

    Subject1durationSec_txt._visible = true;

    Subject1durationHr_txt.text = '0 '.

    Subject1durationMin_txt.text = "00";

    Subject1durationSec_txt.text = "00";

    Subject1timeLeftHr_txt._visible = true;

    Subject1timeLeftMin_txt._visible = true;

    Subject1timeLeftSec_txt._visible = true;

    Subject1pause_btn._visible = false;

    Subject1start_btn._visible = true;

    Subject1rotor_mc._visible = false;

    Subject1rotor_mc.gotoAndStop (1);

    delete Subject1timer_mc.onEnterFrame;

    delete Subject1durationLeft;

    delete Subject1duration;

    delete Subject1durationHr_txt.text;

    delete Subject1durationMin_txt.text;

    delete Subject1durationSec_txt.text;

    };

    I think you need to spend time by reducing your code at a practical level.  You seem to be any passage in the book in each function and I think that probably none of this is necessary.  If you have declared these variables at the beginning, then you don't need to transfer them to any function, because they are gobally available to one of the functions/code that follows.  Similarly, if you have some textfields on stage, it is pointless to pass those in all functions for the same reason.

    I see you doing the overuse of 'delete' (and possibly errant use as well).  Is probably the only thing you might want or need to use...

    delete Subjectxtimer_mc.onEnterFrame;

    Which stops the enterframe trigger activity, which I think is used to update the textfields which indicate the time.

    And that conditional uses == Nan is not likely to do anything except wonder what is a Nan.  TextFields hold the strings, which are cited.  SO unless you have a variable named Nan somewhere that has a value of string assigned to her, this condition will do nothing for you.  You probably don't need it at all if you get this working properly.

  • help me on how to update values with certain condition?

    Hello..

    I have data like below: -.

    Select the nv2_audit_log qualifier where the qualifier like '% NXPRI % NXUPM % ';

    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691811_691910
    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691811_691910
    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691811_691910
    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691811_691910


    The question is how could I update all the qualifier of
    / CRCA/nv2am/Data/Input/NXPRI/NXUPM. P691811_691910 to/crca/nv2am/data/input/NXUPM/NXUPM. P691811_691910 where the qualifier like '% NXPRI % NXUPM % '? Could someone help me?

    In fact I want to change the NXPRI to be NXUPM only for all recording with the qualifier like '% NXPRI % NXUPM % '.

    The output should be like this: -.
    / CRCA/nv2am/Data/Input/NXUPM/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXUPM/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXUPM/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXUPM/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXUPM/NXUPM. P691011_691110
    / CRCA/nv2am/Data/Input/NXUPM/NXUPM. P691811_691910
    / CRCA/nv2am/Data/Input/NXUPM/NXUPM. P691811_691910
    / CRCA/nv2am/Data/Input/NXUPM/NXUPM. P691811_691910
    / CRCA/nv2am/Data/Input/NXUPM/NXUPM. P691811_691910


    Thank you
    balleur

    Hello

    Use the update statement.

    Update
    nv2_audit_log
    Set
    qualifier = replace(qualifier,'NXPRI','NXUPM')
    Where
    qualifier like '% NXPRI % NXUPM % ';

    I hope this helps!

    Kind regards
    Rajesh.

Maybe you are looking for