Can i fire process and javascript one after other???

What i am basically trying to do is display a alert message which tell that a specific process(i.e. add, delete, etc.) has taken place.
Here, I have created a process for each and have written a query in 'Process' block and fire it condition of a button.
Suppose for insertion, I have created an 'insert query' and condition is that it should happen in click of 'insert button'.
Simultaneously, I have also wriitten target URL for that button to a javascript.
But, the trouble I am getting is that without inserting data, the button directly fires javascript and thus no process takes place.
Does anyone have solution or an alternative??? Plz help soon.

I have a solution for that on my demo page:
http://htmldb.oracle.com/pls/otn/f?p=31517:50
Have a look and see if it helps. The link to the related thread is also there.
Denes Kubicek

Similar Messages

  • Can we perform two actions with one button with two clicks one after other?

    Sir,
    can we perform two actions with one button with two clicks one after other?
    I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
    Regards
    Tanvir

    In code it should be easy.
    The following code adds a button called butman with a text "ADD".
    It then registers a listener that will be called if the button is clicked.
    This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
    Therefore it will swap the button's functionality between ADD and CLEAR on every click.
    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});I hope this is what you wanted.
    Some extra food for thought.
    You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
    I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed.

  • Loading multiple swf's in runtime and playing them one after other

    Hi,
    I am looking for help in loading multiple swf's as a playlist and playing them one after other on top of the other, so here even we have to play with display list for the visiblity.
    Tried to load single files but not getting for multiple files, what will be the event with which the dynamically loaded swf switch to other.These file names will be mentioned in XML file.
    Please let me know your thoughts and will be greatfull if anybody can help with the script or any kind of tutorials.

    Hi,
    First of all am thanking you for showing your kind intrest towards this thread, and appreciate for spending time to work out this issue.
    I will explain you in deatil the issue what am facing,I am working on a project where basically dealing with flv player and videos, am trying to play multiple flv videos of a 3d human character who is speaking out a number like 3550.
    Here we are using multiple video files and joining them like videos where character says 3 then 1000 then  5 then 50.
    The issue here is after every video there is a fraction of second where the character is disappearing from the stage which we can't afford because all the numbers have to be played at once to show it as one single digit.
    So thought of trying swf's instead of flv so that we can omit the gap between the numbers, but even in this swf's also having same issue for a fraction of second the character is missing from the stage.
    I am looking for a solution to this, either the way can work out as flv or swf.For flv am trying to edit some player where we can remove the delay between the clips.
    I am attaching new swf where the character is speaking 3 numbers like 3,1000,40.You can notice there is a flicker between the swf's.
    Can we use Display list with which we can omit that gap.
    Looking for your thoughts and help.
    Thank you

  • HT204053 i have two apple id one for Store purchases and the other for iCloud, and i want to merge them into one, can i transfer all app from one to other ?

    i have two apple id one for Store purchases and the other for iCloud, and i want to merge them into one, can i transfer all app from one to other ?

    It is not possible to merge Apple IDs.

  • I have 2T imac running lion Can I re-partition and use one half as a back up disk?

    Bought a new mac in November and it is refused to start up yesterday. Spoke with Apple  and they said I should make sure I do regular back ups in case I l ose my hard drive?!?! I did a clean install of the Operating software but was advised to erase and install.
    I have taken all my important stuff off and can reinstall my programs once I get to the next stage so what I am wondering is
    I have 2T imac running lion Can I re-partition and use one half as a back up disk for use with time machine so that I do not have to buy an external HD?
    Cheers J

    You could partition the drive, I read that Time Machine will work on if you HD partition.
    BUT, it will do you no good if you HD fails.
    Usually, if a HD fails it's the entire drive that is dead not just a partition.
    So your time machine back would be on a dead disk, useless!

  • Why can't I send and receive pictures after the new update

    Why can't I sent and receive pictures after the new update

    Don't know.  Have you taken the basic troubleshooting steps outlined in the User Guide?  What exactly have you done to troubleshoot your issue?

  • I have 2 computers. Do I have to buy 2 separate downloads for each computer? Or can I save money and buy one download for both laptops.

    I have 2 computers. Do I have to buy 2 separate downloads for each computer? Or can I save money and buy one download for both laptops.

    Also, downloads are for only one platform, so the answer is yes only if both computers are windows computers or both are macs. To do one each you need the boxed version.

  • With new Photos app, I can no longer drag and drop photos into other applications as I did in the past with iPhoto.

    With the new Photos app, I can no longer drag and drop photos into other applications as I did with iPhoto.  For instance, I have a photo collage app that in the past, I could just drag in the photos I wanted to include.  Now, I can DRAG the photos, but they do not DROP.  So, I have to go through the export process.  It is tedious.  What am I missing?  Where can I turn on the drag and drop feature for Photos?

    YOu're not looking in the right palce. That's inside the iPhoto Application.
    You need to look inside the iPhoto Library
    As I sid above:
    Go to your Pictures Folder and find the iPhoto Library there
    Regards
    TD

  • Starting new project means i can no longer open and existing one?

    Ok, so i'm working on a project over a few weeks, save it all up, give it new file names and everything. I then have to do a second project along side the first, so naturally i open a brand new project, give it a totally different name, and work as i wouls expect on the second project. However i then go to makes some changes to the first, and bang, final cut can't find the previous project file, and in trying to do so, jams my mac, meaning i have to reboot it before i can do anything else....
    Is there something really obvious that i should be doing to avoid this, or is this just another massive blunder from apple, which seems to be common in the new final cut 'pro'

    You can definitely work on more than one project with FCPX.
    What do you mean that FCPX "can't find the previous project file"? When you go to the project view (command-zero) you should see all your projects listed, based on what hard drive they are on. Are you saying you no longer see one of the projects you worked on?

  • When I open several Raw files and edit one, the others disappear

    Sometimes I open numerous raw files simultaneously and they appear on the left in a sidebar. Then I choose one to edit and when finished the others have disappeared and I have to load them again. Is there a keystroke that will bring them back without entirely reloading? Are they still in PSE but hidden? This seems like peculiar and poor design. (Mac version)

    Using Preview is quite simple. I open the group of files I want to view and edit. I select one and drag it on top of the PSE icon in the dock, and it opens in the PSE raw editor. When I've saved the file I simply click on the Preview dock icon to return to that app. and repeat the select-and-drag to PSE. Preview provides a full screen display of file icons for the files I want to edit, so it is quite quick and transparent.
    I don't necessarily want to Open a file; I might simply Save it from the raw editor. If I have 10 raw files, five of which I want to edit and Open, 3 of which I don't want to edit, and 2 of which I want to Save within the raw editor, the simplicity you describe disappears. Using my Preview-to-PSE scheme, I work on one file at a time and dispose of it when done. I don't have to keep track of which file needs what disposition, as seems to be the case in the process you describe. Please correct me where I'm mistaken.

  • Playing multiple movie clips one after other on main timeline

    Excuse the probably simple question but I'm just starting off with Flash.
    I have imported a few video trailers directly into flash and saved them as movie clips.
    I want to be able to insert these movie clips onto the main timeline and play them one after the other, repeating once they have all played.
    On the main timeline I have set a layer for each clip and a keyframe where the clip is inserted for each layer.
    When I go to play the flash file, it is showing the first frame from each movie file and then moving to the first frame of the next movie file.
    What do I need to do to make flash play the entire movie file in that specific frame before moving to the next frame where the next movie file is and playing all that movie?
    Sorry for what is probably a simple thing to ask.
    thanks

    Create an actions layer on the main timeline and place stop(); commands on that layer in each frame where a movieclip resides.
    Within in each movieclip, at the end (last frame) you want to tell the main timeline to play(); so that it moves to the next frame (where it will stop because of the stop() commands you add).
    So at the end of each movieclip you will put either:
    for AS2:  _parent.nextFrame();
    for AS3: MovieClip(parent).nextFrame();
    For the last movieclip in the lineup you will replace nextFrame() with gotoAndStop(1);

  • When ever I try to sync my iPad2 to itunes i can never completely "update and download" because after the entire process it says "Error: unable to complete update /download, network timed out"!  Why? I have wi-fi in my house

    I can't complete my iPad2 update and download, ever.  It says my network timed out and I don't know why.

    Temporarily turn off any firewall or anti-virus software you have on your PC while downloading.

  • Supplier and subcontractor one after another - problem with PR and SchedLines

    Hi,
    We have following business scenario:
    We buy material A from supplier 123 and send it directly to subcontractor 456 from which we received processed part B. Due to logistic cost involved in the process, we receive material A directly at subcontractor 456 and not in our facilities. So we have created a normal LPA-type scheduling agreement for material A and supplier 123 and in the "vendor to be supplied/who is to receive delivery" field (EKPO - EMLIF & LBLKZ) we have put our subcontractor 456.
    The problem we have is that even though we have correct subsequent requirements for A and we set the source lists correctly and run the MD02 the way it should be done, the MRP creates only purchase requisitions and not the scheduling lines.
    Any clues what can be wrong?
    Regards,
    Radek

    Hi Caetano,
    Ok it took me some time, because I had to activate MRP Areas (and since it's done on client level and there is no way back from the conversion, I had to ask for a special server for testing).
    I followed pretty much the scenario in the document (except SD and EDI part which I don't need) but I got stuck again.
    I have created MRP area for 456 subcontractor and I have assigned it to the A material. The thing is that either I don't understand MRP Areas (it's something new for me) or the requirements are not passed correctly. I mean, I run MD02 for B (with "Also plan unchanged components" and "Display material list" and MRP Area on the plant level) and it plans B and creates planned orders for A (on the MRP Area=plant level). So later I run MD02 just for A with MRP Area 456 (the one I have created for subcontractor) but it does nothing - I don't see any requirements from A (plant level) nor from B.
    If I force the requirements for A with MRP Area 456 (by setting Safety stock in material master) it does plan for S.A. (just this safety stock - it still ignores what's in A on the plant level).
    These are my settings from MRP Views for A:
    On general level
    MRP Type: PD
    Lot Size: EX
    Procurement type: F
    In the 456 MRP Area:
    MRP Type: PD
    Lot Size: EX
    Special procurement: 20 (I tried also with special procurment type which they defined in the word document from your link - the one which has U (stock transfer) and plant - but unfortunely the result was the same)
    Safety stock: 2000
    Any clues on what might be wrong?

  • Firefox contantly hangs, can't End Process and have to reboot

    Why can't firefox.exe be killed in Windows? I'm getting daily crashes in FF5, and jusding by thousands of posts so are others. I could live with these IF Windows allowed me to End Process, but it does not. I've even tried to end firefox.exe at the command line against the PID, but despite saying it had been teminated it has not. Having to close all my work and reboot Windows every time FF decides to longer work is VERY frustrating!!

    Well I'm at a loss. I've followed above links. Problem is that it will work fine often for anywhere between 1 minutes and 2 hours and then suddenly hang for no reason. I've run safemode for an hour or so and it was fine. I re-added Firebug (my only extension and it also rank fine for hours then hung. How long Am I supposed to run in safe mode? days? If Firebuf was the issue why would it run for hours fine the hang?
    I thought maybe there wasa issue with Flash Player, so re-installed that, but makes no difference. Anyway.. back to my original topic.....
    WHY WHY WHY unlike most other windows apps can't I End Process for Firefox when it hangs? Having to reboot my machine every time it hangs is far more annoying than FF hanging itself. If Firefox process could be killed like any other process I could live with a hang every few hours. PLEASE PLEASE can Firefox team do something to allow it easy to terminate FF when issues occur without it locking your profiole or whatever else it is that prevents a 2nd application from being loaded.

  • Can't open AppStore and Email app after installing the OSX Update 10.8.3

    Hi there, after I installed the OSX 10.8.3 update I can't open my Email and App Store apps. This is the popup message that appears when i try to open those apps. I tried to reinstall the app but I can't open my App Store. I also downloaded and installed the OSX Update 10.8.3 and the 10.8.2 again from the download support page, but I couldn't solve my problem. Does anyone knows how can i fix it?

    Back up all data.
    Boot into Recovery by holding down the key combination command-R at the startup chime. Release the keys when you see a gray screen with a spinning dial.
    Note: You need an always-on Ethernet or Wi-Fi connection to the Internet to use Recovery. It won’t work with USB or PPPoE modems, or with proxy servers, or with networks that require a certificate for authentication.
    When the OS X Utilities screen appears, follow the prompts to reinstall the OS. You don't need to erase the boot volume, and you won't need your backup unless something goes wrong. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.

Maybe you are looking for

  • How do I get pages documents to share between a PC and an IPad?

    I have read the instructions for both the IPad and the PC cloud installation and the document sharing portion. I did everything that the apple website said to do but my documents aren't sharing. Everything is up to date: itunes, pages.  How do i get

  • URGENT HELP WITH N97

    I cannot update my N97. The current firmware is V 12.0.024 I have tried everything that I know how to. Also I cannot update or download the new Ovi Maps for my phone as well. Please help me with this. Solved! Go to Solution.

  • How to pass SOAP Attachments with JAX-RPC Web Service

    I'm confused... This sample shows how to send/receive SOAP attachments by using the JAX-RPC Handler mechanism. Can somebody confirm if this is the preferred way to do this. I've seen an example wich does something like:   public interface AttachmentS

  • PS CS3: How to load all (Styles, Brushes, Custom Shapes, etc.)

    Is there something I'm missing regarding the loading of Styles, Brushes, Gradients, whatever... - en masse? In CS2 you could load all Styles at once, or brushes, or any other "Preset". Now in CS3, when I'm in (for example) the Styles palette and clic

  • Sorry server redirect

    is it possible to confider the css so that is one of the servers goes down that it will redirect the request to the sorry server, as per the documentation all servers have to be done, i want it to go to sorry server if one of the servers goes down. a