How to programatically press button

Hi experts,
I want to validate some inputs and after that i should execute code similar to what my command buttos have, so I want to press those buttons programatically.
It goes something like this:
save_but.click = powerbuilder language
save_but.submit = ASP language
Is it possible on oracle 5?
If so, how should I do that?
Thanks in advance.
Wency
[email protected]

HI
write here clear ur requirement & what is Oracle5?
Rizwan

Similar Messages

  • LV 8.6: programatically pressing button only works in some VIs, not all?

    Setup is an old labview 8.6
    I'm tasked with fixing some strange old engine test bench which has a ~1E-6 measurement drift.
    The "easiest" work around fix would be to run the mechanics to a bottom end point then press the "reset" measurement button automatically.
    !!:  A "drive" vi and a "measurement" vi has to be running at the same time. The drive vi will then periodically drive the test bench to a mechanical end point and reset the measurement vi. This would get rid of the drift.
    !!:  Both vi's must be started manually and running. I cannot start one vi from the other. It messes things up. I know not why. There seems to be some strange dependency over compiled FPGA code somewhere.
    I'm no lab view wizard. It was 20 years since I touched it last.
    So digging through examples on how to press a button in one VI from another VI I found this:
    https://decibel.ni.com/content/docs/DOC-15962
    Which I built into a sub-vi and a test setup to see if I could make it work on the test bench. With some tweaking it works.
    A test "master" vi can press any button in a test "slave" vi.
    However. It is impossible to press the "reset" button in the "measurement" vi.
    Labview reports no errors, it just doesn't execute the value change event as far as I can understand.
    In fact, I can copy exactly the same code from the working "slave" vi into the "measurement" vi and it stops working. !!??
    How can code work perfectly well in one vi but not in another ?
    The "measurement" vi has some sort of compilation requirements, meaning any change to the vi takes >30min to "compile" before it can be run. Can this have something to do with why remote button pressing doesn't work?
    It also interfaces with some FPGA somewhere, can that have something to do with it ?
    I have no clue. Happy for any help here.

    Here it comes -- WARNING -- ugly code, this is my first labview in 20 years and I'm very short on time.
    press-button.vi
      the sub vi I mangle up from the example (https://decibel.ni.com/content/docs/DOC-15962)
    master.vi
      the test event sender
    slave.vi
      the test event receiver
    measurement.vi
      the real vi, where no buttons can be pressed
    In master.vi you can reconfigure the input to press-button to which vi and button to target. Right now it is set for the test slave vi (I think) to verify that it actually works as intended in the test environment.
    Hmm, seems there is a limit to 3 attachments, will post the measurement.vi in next post
    Attachments:
    press-button.vi ‏15 KB
    master.vi ‏19 KB
    slave.vi ‏29 KB

  • How can I get the screen to lock on my iPhone 4, so I don't press buttons while talking?

    I just upgraded to the iPhone 4.  When I am talking on the phone, the screen doesn't lock, so I am constantly pressing buttons or hanging up on the person I'm talking to.  How can I get the screen to lock while I'm talking?  It's driving me NUTS.

    The otterbox is one of the culprits. Take the phone out of the case and see if it still happens. If so it is not the case. If the problem goes away, then you may need to make the hole slightly larger. My family has three iPhone 4's in otterboxes and none have this problem. Other users on this forum have reported success with the above methods.

  • How to programati​cally set front panel objects (buttons) to enable, disabled, and disabled and gray

    I'm writing a program that when I am iterating through a loop, I want to have some buttons disabled and grayed. Once the loop is done, I want those buttons to now be enabled.
    But I have no clue how to programatically do this
    (aka enable and disable while the program is running, NOT before the program starts)
    Any help would be appreciated

    Create a property node, & select the 'Disabled' property.  Set it to 0 for enabled, 1 for disabled, & 2 for disabled & grayed.
    Paul Cardinale

  • How to cach enter button pressing in java 2D API

    hi guys,
    how to cach enter button pressing in java 2D API
    thanks
    siva

    thats input handling -> Belongs to AWT.
    Tip-> register an KeyListener and search for KeyEvent.VK_ENTER
    lg Clemens

  • Firefox: how to press button using keyboard?

    In Firefox, anyone know how to choose a button on a web page without using the mouse? tabbing doesn't work.

    Open up System Preferences and click on Keyboard & Mouse. Now click on the Keyboard Shortcuts tab. At the bottom of the window, choose Full Keyboard Access: All Controls. Close System Preferences. Tabbing through a page in Firefox should now stop at buttons.

  • How to programatically select text for editing in an af:inputText control?

    Hello, I am new to jdeveloper 11.1.1.3.0 and have searched and searched for info. I must be using the wrong terms as I cannot find any info or example on how to programatically select text for editing in an inputText field.
    My request is to change an existing app so when the user presses a button, control should go to the inputText control (this part works, see existing backing bean code from another developer below) but automatically select the text within for editing by the user (saving the user from having to select the text first before editing).
    Backing bean code to set the focus to an inputText field:
    * sets the cursor to the given component id
    * @param  componentId of item on page
      public void setFocusOnUIComponent(String componentId) {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        ExtendedRenderKitService service =
          Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
        UIComponent uiComponent = facesContext.getViewRoot().findComponent(componentId);
        service.addScript(facesContext,
          "Component = AdfPage.PAGE.findComponentByAbsoluteId('" + componentId + "'); Component.focus();");
      } I hope this isn't a dumb question and would appreciate it if someone can steer me in the right direction.
    Thank you for any info,
    Gary

    Hi,
    not a dumb question at all. Before answering it, here some comments on the code you pasted in your question
    1. UIComponent uiComponent = facesContext.getViewRoot().findComponent(componentId);
    This code line is not used at all in your method. So it seems you can get rid of it
    2. "Component = AdfPage.PAGE.findComponentByAbsoluteId('" + componentId + "'); Component.focus();");
    I suggest to change it to
    "var component = AdfPage.PAGE.findComponentByAbsoluteId('" + componentId + "'); component.focus();");
    as it is better coding practice to have variable names starting with a lower case letter and being flagged with the "var" identifier
    For pre-selecting text in an an input component, there is no API available in ADF Faces, which means you need to reach out to the rendered HTML ouput. To access the markup for the rendered component, you can try
    var markup = AdfRichUIPeer.getDomContentElementForComponent(component)
    If this markup returns the HTML input component then you can use JavaScript you find on the Internet to select the area of it. If it does not return the input component then you may have to use
    document.getElementById(componentId+'::content')
    Note however that working directly with generated HTML output bears the risk that your code breaks when - for whatever reason - the ADF Faces component rendering changes in the future
    Frank
    Frank

  • How to make a button to stop and run a for loop?

    How to make a button to stop and run a for loop?  and if it is stopped it shall start from where i t stopped.

    Your VI has some very fundamental flaws.
    The start/stop button is outside the FOR loop, thus it will NOT get read during execution of the FOR loop, but only before the FOR loop starts. Think dataflow!
    Thus the terminal of the start/stop button belongs inside the FOR loop.
    Your FOR loop iterates 20x, which probably takes about a nanosecond. You will NOT be fast enough to reliably press the start/stop button during a specific iteration of the FOR loop.
    Your code does not "stop and run" a FOR loop (sic). The loop always spins, but executes an empty case when "Stopped". I guess that's what you actually want?
    Once you solve (2), the x indicator will contain a random value whenever you "stop".
    As soon as the 20 iterations complete, the outer while loop spin an things start over, another nanosecond later.
    Place e.g. a 500ms wait inside the FOR loop to solve this.
    Don't place terminals of indicators on top of formula nodes.
    Your formula does not produce any output, so really has no purpose.
    Use a real "stop" button to terminate the while loop (mechanical action: latch when released). Right now you are using a plain switch, which does not reset to false before the next run. This means that you need to manually reset it before running the program again.
    It is oftern useful to operate the VI in execution highlighting mode. You will immediately see that your button does not get read during execution of the FOR loop. Try it!
    LabVIEW Champion . Do more with less code and in less time .

  • HorizontalList - How to programatically select an item

    Hi All,
    I am new to flex and new to this forum. I am building an
    application that uses a HorizontalList and a button.
    When the button is clicked, I need to add a new item (image +
    label) on the HorizontalList, and I need to make the newly added
    item the default selection.
    I tried to set the selectedIndex property, but that does not
    work.
    Any idea how to make this work ? ie how to programatically
    select an item in the HorizontalList
    Regards
    Roni

    This code seems to do what you want:

  • GIF image as a press button icon

    How can I apply a gif image on press button as icon, in oracle 10g forms.

    Hello,
    please do a search in the "Forum search" dialog box.
    This question has been posted hundred of times.
    Francois

  • Press button with CL_SALV_FUNCTIONS_LIST

    I made press button on an ALV available with:
    gr_func_list->set_all(
       value  = IF_SALV_C_BOOL_SAP=>TRUE
    I want to delete just one these buttons (LOTUS).
    How can I do this with CL_SALV_FUNCITONS_LIST?

    Sample from some of my SALV code:
    data: gr_f_list  type ref to cl_salv_functions_list....
    * gui status contains Refresh button &XXL for Excel import
      gr_alv->set_screen_status( pfstatus      = 'SALV_TABLE_STANDARD'
                                 report        = sy-repid
                                 set_functions = gr_alv->c_functions_all ).
    * SALV toolbar & GUI functions
      gr_f_list = gr_alv->get_functions( ).     "Get Toolbar functions
      gr_f_list->set_all( abap_true ).          "All On
      gr_f_list->set_view_lotus( abap_false ).  "Lotus 123 off
      gr_f_list->set_view_excel( abap_false ).  "Excel in Place Off Use &XXL instead
      gr_f_list->set_graphics( abap_false ).    "Graph tool off

  • How to prevent (X button) closing window

    Hi!
    I am wondering how to prevent X button on
    the right top corner on the window closing
    the window.
    My jdev java app is intended to close window
    when user explicitly presses return button.
    That's works fine ... but how to catch
    window close event (X sys btn) and stop it?
    null

    Hi,
    You need to change the default close operation of JDialog or JFrame:
    myFrame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);

  • How to set default button?

    How can make a button so when I press enter, the button is activated?

    Note: This thread was originally posted in the [New To Java|http://forums.sun.com/forum.jspa?forumID=54] forum, but moved to this forum for closer topic alignment.

  • How to make a button load a sprite from library??

    PLEASE HELP!!
    Hey everyone.. iv been looking for help for a few weeks but cant seem to find the awnsers
    I am trying to create a newspaper that consists of four pages. Each   page i have created and are sitting in the library as sprites. Each page   has buttons that need linking so that when pressed it loads the next   page or page that i want. This is the part i am confused with =/ how do i   make the buttons on each page load the next page (sprite) from the   library??
    Basically i want to no how to make a button load a sprite from the library when clicked. Does anyone no the script for this?
    Thanks for any help

    A question arises as to whether or not you are posting in the right forum.  Sprites are AS3 objects.
    If you want to add movieclips to the stage from the library using AS2, then you need to assign them each an Identifier via right clicking them in the library and selecting the Linkage option... from there you slect the option to Export for Actionscript and then assign the Identifier.
    You then use the attachMovie() method to make use of that Identifier to dynamically load the library object.

  • Programm to press button

    Hello. I have a question. Is it possible on Java from a console application programmatically press buttons and menus of another application? I write automated tests, and I need to change the proxy server in the browser Chrome. I think the best option if java is running browser, and my software will change the proxy automatically. Just a question. How to programmatically press the menu button or any other program? Thanks.

    Yes, there's the java.awt.Robot class. As its API documentation says:
    This class is used to generate native system input events for the purposes of test automation, self-running demos, and other applications where control of the mouse and keyboard is needed.

Maybe you are looking for