Returns Control.

Hi Experts,
Returns order is referencing more than one time from an invoice without checking reference document (invoice) qty. 
For eg: Invoice qty -100 pcs
Return order qty based on invoice - 100 pcs, PGR 100
If i again ref the same invoice system allows to create return order for the whole quantity which shouldnt be allowed by the system. Also if i edit returns qty to 150 also, system is accepting and allow to do PGR.
My reqmt, system shudn't allow returns qty more than ref document.
Please advise.
Regards,
Deepu Pillai

HI
The system allows you to create sales returns as many times you want when created with invoice as reference.
System just gives only a warning message that XX qty already exists.
You have to explore an user exit at the time of saving the returns order where the system should check the
invoice qty with qty in returns order and also any previous returns exists.
like as per the requirement you can give logic to your ABAPer
regards
Prashanth

Similar Messages

  • Adobe Illustrator API - delay in returning control to calling app?

    Hi! We have developed a windows application that adds texts from a XML file to series (hundreds) of EPS files in batch mode by communicating with Illustrator CS4 using the API.
    The application runs fine, but rather slow. We found out that the application runs much faster when keeping it’s window active by constantly clicking the main window title with the left mouse button. It seems that after performing a command Illustrator somehow waits some time before returning control to the calling application. A process that can be speeded up by manually activating the calling application with a mouse click. We found a tool that can simulate the mouse clicking, which is a nice work around. However, we would rather find out what causes this behavior and deal with it in the application itself.
    Any suggestions?

    You need to give a bit more detail about what you are doing if you want to get help.
    You say you have written a windows application that communicates with Illustrator "using the API". You also say the application runs faster by "constantly clicking on the main window title" are you talking about the Illustrator window or your applications window?
    This forum is about the Illustrator SDK that is used by Illustrator plugins which are not separate applications with their own window.
    If your application is really a separate executable with its own window, I am not sure how you are communicating with Illustrator but it sounds like there is a problem in your applications message loop.

  • Submit batch job and return control to the user

    Hi
    Have a situation where we need to submit a batch report and then return control to the user of the application before the report is finished. What is the best way to do this? The old application is written using Java and the application is using threads to do this. However, the application is being re-written in App Ex.
    Any ideas would be appreciated.
    Thanks

    You need to use package APEX_PLSQL_JOB.
    You can use the APEX_PLSQL_JOB package to run PL/SQL code in the background of
    your application. This is an effective approach for managing long running operations
    that do not need to complete for a user to continue working with your application.
    Just look for it in the help.

  • How to return control to parent VI

    What I want to do is monitor an Abort button and when it goes true I want to stop/close the current VI and return control to the parent VI.  I tried using an Application Stop function, but this stops the entire execution and I only want to stop the current VI.
    So how can I stop the current VI and turn control back to the parent VI without stopping execution?
    Screenshot of the VI that dosn't work is attached. 
    Thanks in advance.
    Attachments:
    dwell_vi.jpg ‏53 KB

    Dubs,
    I second Russ's thoughts that "aborting" a VI is a "bit brute force" and generally not a good programming practice.
    I would suggest using while loops coupled with the Elapsed Time VI to create an interruptible wait function similar to what is in the following screenshot:
    I hope this helps,
    Simon H
    Applications Engineer
    National Instruments
    Message Edited by Simon H on 11-16-2006 03:14 PM
    Attachments:
    interruptible wait.png ‏9 KB

  • Function returning control via CType. Is this risk-free?

    I want an easy way to get a TabPage's child (user)control without writing CType() functions everywhere.
    For this I created a function that returns the control via CType:
    Private Function ChildIRCControl() As IRCControl
    Return CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl)
    End Function
    Now, is this risk-free to do or are there any chances that it will bug or don't work in some cases?
    Thanks
    //Visual Vincent
    EDIT:
    Now to rephrase and explain my badly written question:
    The user is able to create new tabs, and for each new tab a IRCControl (which is a UserControl) is added to the tab's controlcollection.
    Now there's no problem doing the above. BUT since the tabs are created programmatically, I cannot get the control inside the tabpage without some kind of cast function.
    Example of creating a new tab:
    Private Sub CreateNewTab()
    Dim IRCc As New IRCControl 'This is a normal UserControl.
    Me.TabControl1.TabPages.Add("New Tab")
    Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls.Add(<a control that has nothing to do with this question>)
    Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls.Add(IRCc)
    End Sub
    Now to access the UserControl in the currently selected tab I need some kind of Cast function. I use CType for this:
    CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl)
    But typing this long CType function in every If statement needed and every Loop used takes time, and is horrible to read.
    Now, will it work just like the normal CType if I access it like this instead?
    Private Function ChildIRCControl() As IRCControl 'The UserControl
    Return CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl)
    End Function
    Private Sub ModifyTextBox() 'Example
    ChildIRCControl().TextBox1.Text = "Hello World!"
    End Sub
    Hope this explanation is better for you guys, and sorry for not bringing all this up before.
    I hope your day has been better than yesterday, but that it's worse than tomorrow...
    Please mark as answer if I solved your problem. :)

    Now, is this risk-free to do or are there any chances that it will bug or don't work in some cases?
    To make it safe you would subclass the Tab and TabPage controls and make this method a function of the new Tab.  Then, that class would include code to ensure that only your custom tab pages were added, and that for each added tab page the first
    control was the correct type - presumably creating it automatically or from a value passed to it in the constructor.  That control is then a property of the tab page, and there is no need to use the Controls collection or do any type conversion.
    The problem is that you actually have no control over the order of items added into the Controls array if you are using the designer.   Even if you are sure that each tab page has one of the controls, it might not be at index 1.  
    You could scan the tab page Controls collection, but if there are several of that control type then you also need a way to know which one you really want.  That's what your code should be checking.   If you correctly identify the control in
    the collection there is no need for CType - it's already the correct type.   You can check the type without trying to do the conversion by using TypeOf.  See
    https://msdn.microsoft.com/en-us/library/0ec5kw18.aspx
    Thanks for the answer.
    I guess I could have added this to my initial question too: I'm creating the TabPages and UserControls programmatically and that's why I need to use some kind of Cast function. There are two controls in each tabpage, and they're added in this order:
    Private Sub <Some kind of sub>()
    Dim IRCc As New IRCControl 'The UserControl
    <The new TabPage>.Controls.Add(<The other control>)
    <The new TabPage>.Controls.Add(IRCc)
    End Sub
    So the only thing I wanted to know was if I could do this:
    If ChildIRCControl().TextBox1.Text = "blahablaha"
    ChildIRCControl().RichTextBox1.Text = "blabla"
    End If
    Instead of writing the long CType, or any other cast function all the time,
    If CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl).TextBox1.Text = "blahablaha" Then
    CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl).RichTextBox1.Text = " "blabla"
    End If
    as it's both a readability and writability nightmare.
    And at last I apologize for the badly explaining question that I wrote.
    I hope your day has been better than yesterday, but that it's worse than tomorrow...
    Please mark as answer if I solved your problem. :)

  • Sales Return Control

    Hi,
    I want to apply a business rule in sales return as below:
    If i am creating a return sales order with reference to a sales order and the return date is after 30 days of sales order date, then the system should not allow to create the return order for that sales order.
    How do i do this. Should i write a user exit or is there any standard functionality exist for this.
    Regards,
    Vivek.

    If i am creating a return sales order with reference to a sales order
    Standard procedure is that we create a return sale order referencing the billing document and not the origin sale order.  This being the case, you have to add this logic in your existing routine and add the same in copy control VTAF and not VTAA.
    Alternatively, you can try with sale order exit
    a)  User-Exits in program MV45AFZB - USEREXIT_CHECK_VBAP  or
    b)  User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
    thanks
    G. Lakshmipathi

  • Calling BSP from report and return control back ?

    Hi All,
          My requirement is as follows :-
    1. I am calling a BSP from report using CL_GUI_HTML_VIEWER->show_url. The BSP page is displayed successfully.
    2. Then, I perform some operations and want to return some data back to the main program (from where it was called - Report) and continue execution from there
    How do I accomplish the second requirement (Control doesnt come back once I close the BSP) ?
    Regards,
    Ashish

    how to generate events from html code in the html control back to your ABAP check out this demo program
    SAPHTML_EVENTS_DEMO
    say for example, in your case you are showing the BSP in GUI HTML control and on clicking a link you want to pass some data from your link to ABAP program and the ABAP should receive the value and process it and may be comeback to same BSP or go some to some other screen/transaction.
    steps to follow:
    after creating the html control
    register event for call back and call the BSP url.
    create object hviewer
                 exporting
                   parent = mycont.
        myevent-eventid = hviewer->m_id_sapevent.
        myevent-appl_event = 'x'.
        append myevent to myevent_tab.
        call method hviewer->set_registered_events
          exporting
            events = myevent_tab.
        create object evt_receiver.
        set handler evt_receiver->on_sapevent
                    for hviewer.
        hviewer->enable_sapsso(
          exporting
            enabled    = 'X'
          exceptions
            cntl_error = 1
            others     = 2
        if sy-subrc <> 0.
        endif.
        call method hviewer->show_url
          exporting
            url = wf_url.
    in your BSP the link should look like below
    A HREF=SAPEVENT:TAGS?value to be passed to your ABAP> link text </a
    when you click this link in bsp then you can then capture the value "TAGS" to know which link was clicked and the value passed after the ?
    link is just one option, you can also send whole form data.
    this type of link and form will only work when your BSP is invoked within HTML contro. if its invoked from standalone browser these wont work. so you amy want to dynamically show/hide "sapevent" links based on where it runs.
    Hope this is clear. if not do getback.
    Regards
    Raja
    Edited by: Durairaj Athavan Raja on Sep 9, 2008 1:04 PM

  • Thread doesn't return control to main() after being interrupted, why?

    Hello,
    From the following code you would expect control returned to main() after a thread is interrupted. But output shows otherwise. Why?
    Thank you in advance for your help!
    public class HelloRunnableInterruptB implements Runnable {
         public void run() {
              System.out.println("Hello from a thread!");
              while (true) {
                   if (Thread.interrupted()) {
                        System.out.println("Interrupt received in infinite loop");
                        return;
         public static void main(String[] args) {
              HelloRunnableInterruptB threadObj = new HelloRunnableInterruptB();
              Thread thread1 = new Thread(threadObj);
              thread1.start();
              thread1.interrupt();
              System.out.println("main: 1st statement after interrupt()");
    /*Output:
    Hello from a thread!
    Interrupt received in infinite loop
    */

    From the following code you would expect control returned to main() after a thread is interrupted. But output shows otherwise. Why?No. It is giving result as expected. Thread dies when its run() method complete execution.
    Moreover, when you call a start() method , the result is that two threads runs concurrently: the main thread and the other thread. They have two different lines of execution.

  • Return control key to the way it was?

    Hi gurus, somehow I messed up my control key in Mountain Lion. I used to be able to use it to modify other keys, for example, control right arrow would move to another desktop. However, now just pressing the control key exposes all of the open files of the highlighted application, and pressing other keys may or may not have an effect. For example, control down arrow does "clear the desktop" but control right arrow no longer changes to another desktop. I've combed through System Preferences a million times, and haven't found a solution. (Move right a space is checked in the Keyboard shortcuts of System Preferences.) Any help would be greatly appreciated.

    Sadly, I never did figure this out. I made a new user and proved to myself that the new user had the typical control key behavior. I poked around in plists for a while, diffing them, etc., and couldn't find anything that changed the behavior. I finally restored the entire ~/Library/Preferences from a backup, rebooted, and now the control key is behaving itself again, but that was an ugly fix. I think whatever I did managed to map control down arrow onto control. Computers these days, so complicated

  • Returning control from your program to command window

    When I run my program using -
    java testIt take contol of the command window and the prompt doesn't reappear untill I close the program (it has a gui), does anyone know any way I can run my program and keep the prompt on the screen?
    Thanks.

    Windows: javaw test (I think)
    Unix: java test &

  • How to return control to a calling jsp

    I want to know that can i include a jsp page in another and change the content of the included page whenever the user clicks on a button on the main jsp or the included jsp whatever the case maybe?? please help. thanks

    The included page can access the request object from the main page, so on click of a buttun on the main page pass a parameter and depending on this parameter u can change the display of the included page.

  • Drawing and some layout help for a simple control: thin lines and application start

    I am trying to create a new, simple control. The control should act as a grouping marker much like that found in the Mathematica notebook interface. It is designed to sit to the right of a node and draw a simple bracket. The look of the bracket changes depending on whether the node is logically marked open or closed.
    After looking at some blogs and searching, I tried setting the snapToPixels to true in the container holding the marker control as well as the strokewidth but I am still finding that the bracket line is too thick. I am trying to draw a thin line. Also, I am unable to get the layout to work when the test application is first opened. One of the outer brackets is cut-off. I hardcoded some numbers into the skin just to get something to work.
    Is there a better way to implement this control?
    How can I get the fine line drawn as well as the layout correct at application start?
    package org.notebook;
    import javafx.beans.property.BooleanProperty;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.scene.control.Control;
    * Provide a simple and thin bracket that changes
    * it appearance based on whether its closed or open.
    public class GroupingMarker extends Control {
      private final static String DEFAULT_STYLE_CLASS = "grouping-marker";
      private BooleanProperty open;
      private IntegerProperty depth;
      public BooleanProperty openProperty() { return open; }
      public IntegerProperty depthProperty() { return depth; }
      public GroupingMarker(boolean open) {
      this();
      setOpen(open);
      public GroupingMarker() {
      open = new SimpleBooleanProperty(true);
      depth = new SimpleIntegerProperty(0);
      getStyleClass().add(DEFAULT_STYLE_CLASS);
      // TODO: Change to use CSS directly
      setSkin(new GroupingMarkerSkin(this));
      public boolean isOpen() {
      return open.get();
      public void setOpen(boolean flag) {
      open.set(flag);
      public int getDepth() {
      return depth.get();
      public void setDepth(int depth) {
      this.depth.set(depth);
    package org.notebook;
    import javafx.scene.Group;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.FillRule;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import com.sun.javafx.scene.control.skin.SkinBase;
    * The skin draws some simple lines on the right hand side of
    * the control. The lines reflect whether the control is considered
    * open or closed. Since there is no content, there is no
    * content handling code needed.
    public class GroupingMarkerSkin extends SkinBase<GroupingMarker, GroupingMarkerBehavior> {
      GroupingMarker control;
      Color lineColor;
      double shelfLength;
      double thickness;
      private Group lines;
      public GroupingMarkerSkin(GroupingMarker control) {
      super(control, new GroupingMarkerBehavior(control));
      this.control = control;
      lineColor = Color.BLUE;
      shelfLength = 5.0;
      thickness = 1.0;
      init();
      * Attached listeners to the properties in the control.
      protected void init() {
      registerChangeListener(control.openProperty(), "OPEN");
      registerChangeListener(control.depthProperty(), "DEPTH");
      lines = new Group();
      repaint();
      @Override
      protected void handleControlPropertyChanged(String arg0) {
      super.handleControlPropertyChanged(arg0);
        @Override public final GroupingMarker getSkinnable() {
            return control;
        @Override public final void dispose() {
        super.dispose();
            control = null;
        @Override
        protected double computePrefHeight(double arg0) {
        System.out.println("ph: " + arg0);
        return super.computePrefHeight(arg0);
        @Override
        protected double computePrefWidth(double arg0) {
        System.out.println("pw: " + arg0);
        return super.computePrefWidth(40.0);
         * Call this if a property changes that affects the visible
         * control.
        public void repaint() {
        requestLayout();
        @Override
        protected void layoutChildren() {
        if(control.getScene() != null) {
        drawLines();
        getChildren().setAll(lines);
        super.layoutChildren();
        protected void drawLines() {
        lines.getChildren().clear();
        System.out.println("bounds local: " + control.getBoundsInLocal());
        System.out.println("bounds parent: " + control.getBoundsInParent());
        System.out.println("bounds layout: " + control.getLayoutBounds());
        System.out.println("pref wxh: " + control.getPrefWidth() + "x" + control.getPrefHeight());
        double width = Math.max(0, 20.0 - 2 * 2.0);
        double height = control.getPrefHeight() - 4.0;
        height = Math.max(0, control.getBoundsInLocal().getHeight()-4.0);
        System.out.println("w: " + width + ", h: " + height);
        double margin = 4.0;
        final Path VERTICAL = new Path();
        VERTICAL.setFillRule(FillRule.EVEN_ODD);
        VERTICAL.getElements().add(new MoveTo(margin, margin)); // start
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, margin)); // top horz line
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, height - margin)); // vert line
        if(control.isOpen()) {
        VERTICAL.getElements().add(new LineTo(margin, height - margin)); // bottom horz line
        } else {
        VERTICAL.getElements().add(new LineTo(margin, height-margin-4.0));
        //VERTICAL.getElements().add(new ClosePath());
        VERTICAL.setStrokeWidth(thickness);
        VERTICAL.setStroke(lineColor);
        lines.getChildren().addAll(VERTICAL);
        lines.setCache(true);
    package org.notebook;
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    public class GroupingMarkerBehavior extends BehaviorBase<GroupingMarker> {
      public GroupingMarkerBehavior(final GroupingMarker control) {
      super(control);
    package org.notebook;
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextArea;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestGroupingMarker extends Application {
      public static void main(String args[]) {
      launch(TestGroupingMarker.class, args);
      @Override
      public void start(Stage stage) throws Exception {
      VBox vbox = new VBox();
      BorderPane p = new BorderPane();
      VBox first = new VBox();
      first.getChildren().add(makeEntry("In[1]=", "my label", 200.0, true));
      first.getChildren().add(makeEntry("Out[1]=", "the output!", 200.0, true));
      p.setCenter(first);
      p.setRight(new GroupingMarker(true));
      vbox.getChildren().add(p);
      vbox.getChildren().add(makeEntry("In[2]=", "my label 2", 100.0, false));
      Scene scene = new Scene(vbox,500,700);
      scene.getStylesheets().add(TestGroupingMarker.class.getResource("main.css").toExternalForm());
      stage.setScene(scene);
      stage.setTitle("GroupingMarker test");
      stage.show();
      protected Node makeEntry(String io, String text, double height, boolean open) {
      BorderPane pane2 = new BorderPane();
      pane2.setSnapToPixel(true);
      Label label2 = new Label(io);
      label2.getStyleClass().add("io-label");
      pane2.setLeft(label2);
      TextArea area2 = new TextArea(text);
      area2.getStyleClass().add("io-content");
      area2.setPrefHeight(height);
      pane2.setCenter(area2);
      GroupingMarker marker2 = new GroupingMarker();
      marker2.setOpen(open);
      pane2.setRight(marker2);
      return pane2;

    The test interfaces are already defined for you - the 3rd party session bean remote/local interfaces.
    It is pretty trivial to create implementations of those interfaces to return the test data from your XML files.
    There are a number of ways to handle the switching, if you have used the service locator pattern, then I would personally slot the logic in to the service locator, to either look up the 3rd party bean or return a POJO test implementation of the interface according to configuration.
    Without the service locator, you are forced to do a little more work, you will have to implement your own test session beans to the same interfaces as the 3rd party session beans.
    You can then either deploy them instead of the 3rd party beans or you can deploy both the test and the 3rd party beans under different JNDI names,and use ejb-ref tags and allow you to switch between test and real versions by changing the ejb-link value.
    Hope this helps.
    Bob B.

  • Problem with custom control and focus

    I've a problem with the focus in a custom control that contains a TextField and some custom nodes.
    If i create a form with some of these custom controls i'm not able to navigate through these fields by using the TAB key.
    I've implemented a KeyEvent listener on the custom control and was able to grab the focus and forward it to the embedded TextField by calling requestFocus() on the TextField but the problem is that the TextField won't get rid of the focus anymore. Means if i press TAB the first embedded TextField will get the focus, after pressing TAB again the embedded TextField in the next custom control will get the focus AND the former focused TextField still got the focus!?
    So i'm not able to remove the focus from an embeded TextField.
    Any idea how to do this ?

    Here you go, it contains the control, skin and behavior of the custom control, the css file and a test file that shows the problem...
    control:
    import javafx.scene.control.Control;
    import javafx.scene.control.TextField;
    public class TestInput extends Control {
        private static final String DEFAULT_STYLE_CLASS = "test-input";
        private TextField           textField;
        private int                 id;
        public TestInput(final int ID) {
            super();
            id = ID;
            textField = new TextField();
            init();
        private void init() {
            getStyleClass().add(DEFAULT_STYLE_CLASS);
        public TextField getTextField() {
            return textField;
        @Override protected String getUserAgentStylesheet() {
                return getClass().getResource("testinput.css").toExternalForm();
        @Override public String toString() {
            return "TestInput" + id + ": " + super.toString();
    }skin:
    import com.sun.javafx.scene.control.skin.SkinBase;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.EventHandler;
    import javafx.scene.control.TextField;
    import javafx.scene.input.KeyCode;
    import javafx.scene.input.KeyEvent;
    public class TestInputSkin extends SkinBase<TestInput, TestInputBehavior> {
        private TestInput control;
        private TextField textField;
        private boolean   initialized;
        public TestInputSkin(final TestInput CONTROL) {
            super(CONTROL, new TestInputBehavior(CONTROL));
            control     = CONTROL;
            textField   = control.getTextField();
            initialized = false;
            init();
        private void init() {
            initialized = true;
            paint();
        public final void paint() {
            if (!initialized) {
                init();
            getChildren().clear();
            getChildren().addAll(textField);
        @Override public final TestInput getSkinnable() {
            return control;
        @Override public final void dispose() {
            control = null;
    }behavior:
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.EventHandler;
    import javafx.scene.input.KeyCode;
    import javafx.scene.input.KeyEvent;
    public class TestInputBehavior extends BehaviorBase<TestInput> {
        private TestInput control;
        public TestInputBehavior(final TestInput CONTROL) {
            super(CONTROL);
            control = CONTROL;
            control.getTextField().addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {
                @Override public void handle(final KeyEvent EVENT) {
                    if (KeyEvent.KEY_PRESSED.equals(EVENT.getEventType())) {
                        keyPressed(EVENT);
            control.focusedProperty().addListener(new ChangeListener<Boolean>() {
                @Override public void changed(ObservableValue<? extends Boolean> ov, Boolean wasFocused, Boolean isFocused) {
                    if (isFocused) { isFocused(); } else { lostFocus(); }
        public void isFocused() {
            System.out.println(control.toString() + " got focus");
            control.getTextField().requestFocus();
        public void lostFocus() {
            System.out.println(control.toString() + " lost focus");
        public void keyPressed(KeyEvent EVENT) {
            if (KeyCode.TAB.equals(EVENT.getCode())) {
                control.getScene().getFocusOwner().requestFocus();
    }the css file:
    .test-input {
        -fx-skin: "TestInputSkin";
    }and finally the test app:
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.GridPane;
    import javafx.stage.Stage;
    public class Test extends Application {
        TestInput input1;
        TestInput input2;
        TestInput input3;
        TextField input4;
        TextField input5;
        TextField input6;
        Scene     scene;
        @Override public void start(final Stage STAGE) {
            setupStage(STAGE, setupScene());
        private Scene setupScene() {
            input1 = new TestInput(1);
            input2 = new TestInput(2);
            input3 = new TestInput(3);
            input4 = new TextField();
            input5 = new TextField();
            input6 = new TextField();
            GridPane pane = new GridPane();
            pane.add(input1, 1, 1);
            pane.add(input2, 1, 2);
            pane.add(input3, 1, 3);
            pane.add(input4, 2, 1);
            pane.add(input5, 2, 2);
            pane.add(input6, 2, 3);
            scene = new Scene(pane);
            return scene;
        private void setupStage(final Stage STAGE, final Scene SCENE) {
            STAGE.setTitle("Test");
            STAGE.setScene(SCENE);
            STAGE.show();
        public static void main(String[] args) {
            launch(args);
    The test app shows three custom controls on the left column and three standard textfields on the right column. If you press TAB you will see what i mean...

  • Taking control back while calling stored procedure using java programme

    I have stored procedure to load data. This procedure is invoked by java program.
    The stored procedure take around 10 to 15 minutes to do complete loading of database. I want to write stored procedure when it starts loading of database at the same return the control to calling java programme so that java program can do other operation i.e. java program can not wait for control back from stored procedure.
    In short stored procedure runs in background and return control back to java program when stored procedure is invoked. Is it possible then How we can achieve this.

    U can acheive this using Java Threads. Create a thread submit this loading job. Once you submit the thread, you will get the control back to do other stuff.
    Documentation:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html
    -aijaz

  • RETURN STATEMENT IN A PROC PROGRAM

    HI,
    I have written a small program in proc which is supposed to pick
    up records from a table matching a certain criteria.The records
    will be displayed in the screen one after the other. For every
    record displayed there is an option to perform certain
    operations such as
    (1) authorise the record which will update certain values to
    certain fields in the table
    (2) skip the record which would display the next record from the
    cursor
    (3) Reject the record which will delete it from the table and
    then fetch the next record from the cursor
    (4) quit - which should return control out of the function to
    the place where the function was called. This has been done by
    way of a return statement.
    There are only two ways to come out of the function
    (1) one is when the quit option is chosen as explained above
    (2) when the control goes past the last record in the cursor
    (when 1403 is raised)
    However, when the above two conditions are met (for eg I skip
    all the records and the reach the end of the cursor) or when i
    explicity choose the quit option, the control does not come out
    of the function, but keeps calling the function repeatedly .
    The only time when it comes out is when the cursor does not
    fetch any records.
    The program works perfectly fine in a solaris machine (oracle
    version 8.1.7). The problem is faced in a DEC ALPHA machine
    with an oracle 8.0.6 version.
    Has this anything to do with the machine set up, compilation
    script etc...or pls suggest what could be the other
    possibilities.
    Please note that the return statements used in the sub functions
    are working properly.
    Regards...Rajee

    If nothing strange hapens in the try code, the return
    statement will be achieved. In this case, what will
    hapen ? The code in the finally block will be executed
    ??Yes. Hence the word "finally".

Maybe you are looking for

  • How to upload file on Application Server with Forms 6i?

    Please, I need to upload .csv file from local to Application Server, I think to use .jsp application, but I don't know where I had to put it...Apache can't read .jsp file without Tomcat? If I launch my .jsp file from Apache/htdocs directory can't vie

  • How to maintain QR Code & BAR Code in SAP Script and Smart Form ?

    I want to place QR code (Quick Response Code) and Bar Code In my invoice . I searched  from many resources but i couldn't get any appropriate answer . So , Please help me  to solve this problem.

  • SANE-TWAIN

    All of a sudden my scanner doesn't work. It's a Umax Astra 1220u. I have it plugged into this MacBook. When I first got this scanner some years ago, it came without the software. Someone told me about SANE. After a websearch I found the SANE project.

  • Handling Recurring Journal Entries in BPC 7.0NW

    Hi all, I'm looking for suggestions on handling the posting of Recurring Journal entries in a Legal Consolidation.  I'm new to BPC, and am afraid I don't know the "best" way to do this.  Currently, we are assuming that we would "copy" the previous mo

  • TS3988 How to solve the problem: "The maximum number of free accounts have been activated on this iPhone"

    Please i need help i bought a second hand iphone 4 and when i try to log in icloud with my account i always get the message "The maximum number of free accounts have been activated on this iPhone" how can i solve this issue? i dont have information a