How to stop a process from running and display a message
I have a button that inserts data into a table based on bind variable selected on the page. I would like to add code to that button that will check to see if certain data already exists in the table, for that bind variable, and if that data already exists, stop the process and display a message that says "you have already inserted that information - bla bla bla". If not, continue inserting. What would be the best way to do this?
Currently, the button is a plsql that inserts the data.
Any help or examples would be greatly appreciated!
mholman
Edited by: user10488561 on Jul 27, 2009 8:48 AM
Use a validation process for that. If the validation fails (data exists) the processes will not be run. If it doesn't then the processing will continue.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------
Similar Messages
-
hello
I can't reinstall osx lion from internet, and display a message"cannot find installation information ,please contact applecare, what should i do?
thanksI'm no Lion expert, but I believe you can boot from the Recovery partition by pressing the Command and R keys on startup, then reinstall.
-
How to retrieve xml file from BLOB and display on browser with css/xslt
Hi All,
I am new to xml. I am storing my xml file into BLOB in database. Now in my jsp page I want to retrieve this xml file from BLOB and display in HTML/CSS/XSLT form...
Pl. guide me.. any docs..?? Logic...??
Thanks in Advance.
Sandeep OzaHello Sandeep!
I'm not familiar with jsp but logic should be as follows:
-in jsp page instantiate XML parser
-load specified BLOB into parser
Now you may traverse the XML tree or you might load XSL file and use transform method to transform XML according to XSL file.
I have an example where I'm selecting XML straight from relational database and then transform it using XSL into appropriate HTML output, but it's written in PSP.
You can try http://www.w3schools.com/default.asp for basics on XML, CSS, XSL. It's easy to follow with good examples.
Regards!
miki -
How To : Call External Webservice from BPEL and pass SOAP Message to the WS
Hello All-
Greetings to all BPEL gurus. I am currently facing difficulties in calling an External Webservice from my BPEL Process and passing SOAP Message to it. The details are below:
<strong>1. The BPEL process, using database polling feature of DB Adapter, will get the records from the database.</strong>
<strong>2. Transform the message</strong>
<strong>3. Call the External Webservice and pass the transformed message as the input to it. However the Webservice expects the BPEL process to send SOAP headers in the input message.</strong>
I am struggling on how to put the transformed message within a SOAP envelope in the BPEL process.
If anyone had similar requirements and have successfully been able to send SOAP messages from BPEL process to an external webservice, kindly let me know.
Also if there is some kind of documentation or any link in the forum that I can refer, please let me know that as well.
I am new to Webservice integration using BPEL and would really appreciate your help.
Thanks In Advance
Regards,
DibyaHi Dharmendra,
I am trying to send a SOAP message from my BPEL process to a web service. I have a complete SOAP message in a complex variable defined in the wsdl for the partnerlink (web service). My problem is that when I invoke the partnerlink it fails even though the content shown in the BPEL console looks valid.
I have set up obtunnel to see what I am actually sending out from BPEL. You mention that BPEL creates the SOAP envelope automatically.
I think that my problem is a result of this automatic SOAP envelope that BPEL is creating. Do you know if there is a way to turn it off?
This is what I see in the TCP monitor, please note the double SOAP env:Body:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <RCMR_IN000002NR01 xmlns="urn:hl7-org:v3" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<env:Header>
<wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://testhost/CCS/Service_Endpoint</wsa:To>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://localhost/CCS/Service_Endpoint</wsa:Address>
<wsa:Metadata>
<device xmlns:hl7="urn:hl7-org:v3">
</device>
</wsa:Metadata>
</env:Header>
<env:Body>
<RCMR_IN000002NR01>
</RCMR_IN000002NR01>
</env:Body>
</RCMR_IN000002NR01>
</env:Body>
</env:Envelope>
Any help is appreciated.
Regards,
Aagaard
Edited by: Aagaard on Oct 30, 2008 8:59 PM
Should have mentioned. I am using BPEL 10.1.3.4
Edited by: Aagaard on Oct 31, 2008 8:43 AM
I have opened a new thread for this question so as to not confuse the issue more than necessary.
How many SOAP envelopes do you really need? -
How to get Date value from database and display them in a drop down list?
Hello.
In my Customers table, I have a column with Date data type. I want to create a form in JSP, where visitors can filter Customers list by year and month.
All I know is this piece of SQL that is convert the date to the dd-mm-yyyy format:
SELECT TO_CHAR(reg_date,'dd-mm-yyyy') from CustomersAny ideas of how this filtering possible? In my effort not to sound like a newbie wanting to be spoonfed, you can provide me link to external notes and resources, I'll really appreciate it.
Thanks,
Rightbrainer.Hi
What part is your biggest problem?? I am not experienced in getting data out of a database, but the way to get a variable amount of data to show in a drop down menu, i have just messed around with for some time and heres how i solved it... In my app, what i needed was, a initial empty drop down list, and then using input from a text-field, users could add elements to a Vector that was passed to a JComboBox. Heres how.
package jcombobox;
import java.awt.*;
import java.awt.event.*;
import java.util.Vector;
import javax.swing.*;
public class Main extends JApplet implements ActionListener {
private Vector<SomeClass> list = new Vector<SomeClass>();
private JComboBox dropDownList = new JComboBox(list);
private JButton addButton = new JButton("add");
private JButton remove = new JButton("remove");
private JTextField input = new JTextField(10);
private JPanel buttons = new JPanel();
public Main() {
addButton.addActionListener(this);
remove.addActionListener(this);
input.addActionListener(this);
buttons.setLayout(new FlowLayout());
buttons.add(addButton);
buttons.add(remove);
add(dropDownList, "North");
add(input, "Center");
add(buttons, "South");
public void actionPerformed(ActionEvent e) {
if (e.getSource() == addButton) {
list.addElement(new SomeClass(input.getText()));
input.setText("");
} else if (e.getSource() == remove) {
int selected = dropDownList.getSelectedIndex();
dropDownList.removeItemAt(selected);
public void init(String[] args) {
setSize(400,300);
getContentPane().setLayout(new BorderLayout());
getContentPane().add(new Main());
}And that "SomeClass" is show here
package jcombobox;
public class SomeClass {
private String text;
public SomeClass(String input) {
text = input;
public String toString() {
return text;
}One of the things i struggled a lot with was to get the dropdown menu to show some usefull result. If the list just contains class references it will show the memory code that points to that class. Thats where the toString cones in handy. But it took me some time to figure that one out, a laugh here is welcome as it should have been obvious :-)
When the app is as simple as this one, using a <String> vector would have been easier, but this is just to demonstrate how to place classes in a vector and get some usefull info out of it, hope this answered some of your question :-)
The layout might have been easier to write, than using the toppanel created by the JApplet and then the two additional JPanels, but it was just a small app brewed together in 15 minutes. Please comments on my faults, so that i can learn of it.
If you need any of the code specified more, please let me know. Ill be glad to, -
How to compare two currency form fields and display a message if the fields do not equal?
My form has 2 fields named Total_1 and Total_2. If one of the fields does not equal the other, a hidden field will display a message in red on the form alerting the user. Otherwise, the message does not display. Looks like a validation script but I would greatly appreciate help in getting it started. Any ideas?
Thanks, Charlie
charlie6067Since the field values that you want to compare are the results of calculations, you should not normally compare their string values, but rather their numeric values when rounded appropriately (and perhaps then converted to a string). For example, if you have two values that display as 3.14, one could be 3.1400000001 and the other could be 3.13999999999991234. When you get the field values as strings and compare them, they won't be equal though they appear to be. Even some values that are numerically identical won't be equal when compared as strings ("0.0" != "0.00") So the code could be changed to:
// Get the two field values, rounded to two decimals
var v1 = util.printf("%.2f", getField("Total_1").value);
var v2 = util.printf("%.2f", getField("Total_2").value);
// Hide/Show the error message
event.value = (v1 === v2 || (+v1 === 0 && +v2 === 0)) ? "" : "Error message here."; -
how do you stop apps with out deleting them i have looked for something like a task manager and nothing and researched about it and it says to go into your settings and then click applications but i dont have one can someone please help[ me thank you
Double click the Home button. The bottom row shows the recently used apps. Touch and hold the app until they all start to wiggle then tap the circled minus sign by apps you want to remove. Press the Home button to return to normal.
However, that is recently used apps not apps doing something. Some apps will do things all the time/periodically like checking for Notification, new mail. Yu can turn those off in the apps themselves.
Just what are you trying to accomplish? -
How to stop as files from running until a certain frame
Hi all,
I have a simple flash game with two frames at the moment.
Most of the stuff that happens is in as files linked to
different movie clips.
I orignially only had one frame my background frame and when
testing I just press ctl+enter and bamm away it goes the
actionscript runs as soon as the movie/game starts and ergo the
game plays.
My problem is this, I now want to have a start/home frame at
the beginning (of course) which has the start game button on which
when clicked THEN starts the game.
Currently the game starts in the first frame along with the
start button :(
How do I stop the game running straight away and my first
frame only contains the start button, which when clicked then goes
to the 2nd frame and starts the game?
Reagrds,
Red.A friend resolved the issue for me;
By renaming the main contrustor and calling this in the start
button Example action script applied to the button:
START OF ACTION SCRIPT
import flash.events.MouseEvent;
stop();
startBTN.addEventListener(MouseEvent.CLICK, startClick);
function startClick(event:MouseEvent):void
trace ("Button clicked");
gotoAndStop(2);
gameGo();
/*gameGo() is the renamed main document class, renaming it
prevents it from been run instanly
and it is called from the button*/
END OF ACTION SCRIPT -
How to stop YouTube audio from popping and crackling
running latest version of Firefox on desktop PC
OS Win 7 Home Premium 64bit (recently migrated from Win XP Pro SP3 32 bit
Audio on YouTube videos pops and crackles; does it all the time when video is full screen... does it with small screen when mouse pointer is moving
Tried running Firefox in safe mode... no joy.. still popping.
Would appreciate a solution.
By the way this problem does not happen with Chrome... but Chrome is getting so bloated with features I prefer to use Firefox.
ThanksYou can check for problems with current Shockwave Flash plugin versions and try this:
*check for updates for your graphics drive drivers<br>https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration
*disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
*disable hardware acceleration in the Flash plugin
See also:
*http://kb.mozillazine.org/Flash#Troubleshooting -
How to stop a dialog from running
I have an appliaction that opens a splash screen dialog when it starts.
I want to put a 'Cancel' button on the splash so that I can abort the application.
I wnat to know if there is any way to do this without calling System.exit()?Hi,
You should be able to call dispose on the dialogs' parent which hopefully will be your main window. That should do it.
Regards,
Manfred. -
How do I get Firefox to run and display applets without asking for my permission for each one?
Each time I load a web page with a new applet I get asked whether I want to run it. I don't want this. I just want the applets to be run. I read in the help section about using the java console but I can't find how to display the java console either.
hello, lower the security level within the java settings in the system control panel: http://www.java.com/en/download/help/jcp_security.xml
-
How to stop a process in a process chain?
Hi
I've got a process chain that calls several processes. It's still running one of the processes but I want to stop the two that will run after (as it is now in the day time and they will impact on performance in our R3 system).
I've looked on SM37 but when I put in BI_* nothing comes up. Do anyone know how I can stop these processes from running before they start ?
Thanks in advance
SandraHi Sandra,
Just goto the process types that are supposed to run afterwards... and rt click select released job-> select the job and press shift + F6 (from scheduled state to release state)
If u observe in PC now after refreshing this step will not be green (grey meaning not scheduled to run)
similar for other.
thanks -
HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING IN THE PRODUCTION?
HI ALL,
CAN ANYONE TELL ME HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING DAILY AT 5.00 PM. I NEED TO STOP THE PROCESS CHAIN FOR COUPLE OF DAYS AND THEN RESTART IT AGAIN.
cAN ANYONE TELL ME THE PROCEDURE TO STOP THE ENTIRE PROCESS CHAIN RUNNING IN THE PRODUCTION.
THANKS
HARITHAHi,
First and foremost let me advice you to be very careful while doing this.
For Rescheduling
RSPC> chain > Goto > Planning view and
click on Execution tab > select > Remove from Schedule and then in Maintain variant of start process reschedule for the day you require it to run.
For terminating active chain
You can start from SM37, find the process WID/PID then go to SM50 or SM51 and kill it. Once its done come back to RSMO and check the request, it should be red but again manually force to red and save by clicking on the total status button in the status tab. This shuld ensure that the process is killed properly.
The next step will be to go to targets that you were loading and remove the red requests from those targets.
Note: For source system loads you may have to check if the request is running in the source system and kill if needed and pull it again.
But for BW datamart delta loads u may have reset the datamarts in case u are going to pull the delta again.
Re: Kill a Job
Re: Killing a process chain.
Regards,
JituK -
How to stop a process chain when its running?
Dear Experts,
How to stop a process chain when its running? is it that a chain can be stoppend when we open an info package of that chain ?
Thank you,
RajHi,
Goto the main menu process chain --> choose the remove from the Schudule...
Regards
sathis
I hope it helps to u... please assign the points -
How to schedule reports to be run and sent from Ad-hoc query.
Dear Abapers,
I got a requirement in which the user wants to know how to schedule reports to be run and sent from Ad-hoc query.
Regards
VenkatAsk him to look more carefully at the menu : Quickview > Execute > Exec. in background, then click on schedule
Regards,
Raymond
Maybe you are looking for
-
Error when Trying to Upgrade from 8.1.7.4 to 10.2.0.3
Hello - I am getting this error, when attempting to run the ultu102i script in preparation for an upgrade to 10g: SQL> @utlu102i DECLARE ERROR at line 1: ORA-01403: no data found ORA-06512: at line 1560 I have upgraded many databases to 10g from 8i,
-
Connect phone to new MacBook Pro in Itunes - "cannot allocate resource"??
When I connect my iphone 5 to my new MacBook Pro via USB, I get the message "iTunes could not connect to this iPhone. Could not allocate a resource" How can I successfully connect and sync my devices.
-
Hello. Yesterday we made the upgrade in our system to version 10.5.7. Onlyone 1 of our 6 computers had a problem importing quicktime to the shake. It's only with the shake, I tested in the final cut, in motion application and it's fine. Am I missing
-
The URL below ought to take you to a marvellous web cam of a nesting eagle on Bowen island, just off the coast of Vancouver, BC. Can someone please tell me why Safari brings up only a distorted video image composed of numerous odd colours, whereas ac
-
Lock icon next to iPod in iTunes
ok, i have a 30GB Video iPod. every time i try to load anything on it on iTunes, down at the bottom, where it tells you how much space is used, there's a lock icon next to where it says how much room is on my iPod. it won't let me load any kinds of m