Alert Message displayed according to WebService response
I've created and used a Web Service in my VC application which simply send a mail. This Web Service returns a boolean response which indicates if the mail has been correctly sent. I want to inform the user accordingly with an alert message.
If the response is correct, I want the user to be processed to confirmation page;
If the response is uncorrect, I want to inform th user accordingly.
Which operator should I use?
Do I have to use the output point of my Web Service object?
Thanks
Hi,
Thanks Fabien for your answer ... but it hasn't solved completely my problem.
My webservice effectively returns a boolean, and I use this boolean to show wether a confirmation message or a error alert. But the alert form (which is normally displayed only if WSReturn == "false") is by default always displayed. The response sent by my webservice seems to be by default set to false... very strange, isn't it?
Has anybody encountered such a situation? I just would like to display one form or the other depending of the result of my WS call.
Similar Messages
-
How to verify JavaScript alert message display on page with C#?
Hi All,
I have a question about verify the JavaScript alert message on page. For example, I input the script in browser address like: "javascript:onmouseover=alert('popup windows')" . How to verify there's a alert message displayed on page with C#?
ThanksAre you trying to use some automation or ? What the previous solution is they have put the text in the dom for you to pull out with C# or other languages.
if you are trying to automate this through a browser maybe look into WebDriver
WebDriverWait wait = new WebDriverWait(driver, 2);
wait.until(ExpectedConditions.alertIsPresent());
Alert alert = driver.switchTo().alert(); var alertText = alert.Text;
alert.accept(); -
Re: Alert message display
Dear Experts,
I have written an query for Sales Order Due date, and I have activated the Alert.
My problem is when I execute the query manually the line Items in the query is about 150 lines, But when the system is prompting for the alert I can only view 65 line items in the message window .
Can anyone hwlp me to slove the problem
With Regards,
G.Eshvanth Singh,Please note that the Alerts message window only allow 4000 CHARACTERS. You may need to reduce the number of columns in your query result to be within this maximum.
Regards,
David -
Hi,
My name is Norbert. I am having some difficulties restoring my icloud back up. My ipad was doing an icloud back up and the alert message displayed on the ipad after my internet was interrupted "A wi-fi connection is required to download your apps and media".
I got the internet working, my ipad is receiving internet network but the alert message is still displayed on the ipad and won't go away, to make matters worse the ipad is frozen and i can't do anything.
Please can anyone with a similar experience tell me what to do in this situation?
Thank youWelcome to the Apple Community.
Have you tried a hard restart. Press the on/off button and homescreen buttons together until the device shuts down. -
Is it possible to control the position of where to alert message display on screen (like LOV window)?
NB: I am deploying the forms on Intranet via oracle application server.
Can anyone help?
Thanks in advance,
StanSze,
no. The alert dialog always comes up in the center of the form.
Frank -
How to display an alert message on click of link in tableview
Hi,
Following is the code for a tableview in layout section of a BSP( i have specified only one tableview column here). The requirement is to display an alert message on click of link in the first column that is "evbeg". Can anyone please help me how to achieve this? Appreciate quick response on this.
CREATE OBJECT lr_dateiterator TYPE cl_lso_bsp_it_trdates
EXPORTING im_application = application
im_tform = trainingform.
<htmlb:tableView id = "dates"
table = "<%= dates %>"
iterator = "<%= lr_dateiterator %>"
width = "100%"
rowCount = "<%= lp_len %>"
footerVisible = "FALSE"
sort = "SERVER" >
<htmlb:tableViewColumn columnName = "evbeg"
type = "user"
title = "<%= otr(LSO_FRONTEND/schedule) %>"
tooltipHeader = "<%= otr(LSO_FRONTEND/schedule) %>"
sort = "TRUE" >
</htmlb:tableViewColum>
Thanks and Regards,
Archana.you have to code in the iterator for this.
in the render_cellstart method of the iterator you need to code.
this is for a column.
when 'MATNR'.
data: text type string.
text = 'disp_alert()'. "this java script i placed in the page
data: lo_link type ref to cl_htmlb_link.
create object lo_link.
lo_link->id = p_cell_id.
lo_link->onclientclick = text.
lo_link->text = <fs>-matnr.
p_replacement_bee = lo_link.
below is the java script i added in my page..
< sc ri pt type="text/javasc ript" >
f u n ction disp_alert()
a l e rt("helloworld");
< /s c ript > -
Check File Existence and display alert message
Hi,
I have a servlet which uploads file to server. Below is my code and is working file. Now, I want to check if the file uploading by the user is already exists. If so , I have to display a message to user "The file you are trying to upload already exists. Do you want to overwrite" with YES or NO actions.
How can I display this alert message from user.
//item.write(tosave);
FileItemFactory factory = new DiskFileItemFactory();
boolean isMultipart = FileUpload.isMultipartContent(request);
System.out.println(isMultipart);
Map fileDetails = new HashMap();
ServletFileUpload upload = new ServletFileUpload(factory);
List items = upload.parseRequest(request);
Iterator iter = items.iterator();
while (iter.hasNext()) {
item = (FileItem) iter.next();
if (item.isFormField()) {
String fieldName = item.getFieldName();
String fieldValue = item.getString();
fileDetails.put("fileName",item.getString());
else {
fileDetails.put("path",item.getName());
cfile=new File(item.getName());
onlyFileName = cfile.getName();
if (! folder.exists()) folder.mkdirs();
if(cfile.exists()){ //THIS CHECK THE FILE EXISTENCE. HOW CAN I DISPLAY ALERT MESSAGE TO USER HERE.
System.out.println("File Already Exists Path is ");
Can anyone suggest me on this.It won't work like that because JavaScript will run either before the form is submitted or after the page has been generated. In either case, you can't really communicate between the server side code and client side code.
What you can do is use Ajax to communicate with a servlet that checks for the duplicate file and responds accordingly. You can then perform the appropriate action on the page. This should be very simple to setup, take a look at this basic tutorial [1].
[1] http://www.w3schools.com/ajax/default.asp
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://www.catb.org/~esr/faqs/smart-questions.html
---------------------------------------------------------------- -
Display an Alert message in PL/SQL block in APEX
Hi,
we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
we tried doing this with below code:
Begin
INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
exception when others then
htp.p('<script language="javascript">');
htp.p('alert("Exception");');
htp.p('</script>');
end;
If anybody knows .... please reply.
Thanks,
Subarna
Edited by: user9955252 on Apr 21, 2010 1:47 AMHello,
APEX Forum is here : Oracle Application Express (APEX)
Regards -
How displaying an alert message called from a database procedure
Hi,
How can I display an alert message that is called from a database procedure.
I've tried the following code:
l_al_button NUMBER;
l_al_message VARCHAR2(80);
l_al_id ALERT;
Set_Alert_Property(l_al_id, alert_message_text,l_al_message);
l_al_Button := show_alert(l_al_id);
When trying I receive an error that says that the word ALERT need to be declared.
Any suggestions?
ThanksHi,
leave the procedure without error handling.
This is what you can do:
1.Inside the database procedure-
BEGIN
RAISE_APPLICATION_ERROR (-20001, 'The chosen length of the Public Key Exponent ....');
END;
2.Into your Form -
BEGIN
EXCEPTION
WHEN OTHERS THEN
IF sqlcode = '-20001' THEN
Display Your Messages.
END IF;
Monica
END; -
Display an alert message through javascript when report column item is null
Hello,
I have a report column item which is an select list item and now i want to display an alert message when value is null, I mean no value is selected, this alert message should be fired when update button is clicked.
Can anyone please help me with this issue.
Thanks,
OrtonYou could try something like this:
declare
x INTEGER;
err_ct INTEGER := 0;
begin
x := 5; -- number of rows displayed
for i in 1 ... x (
IF wwv_flow.g_f08(i)) IS NULL THEN err_ct := err_ct + 1;
END IF;
end loop;
IF err_ct = 0 THEN
RETURN NULL;
ELSE
RETURN 'Nice error message: you must supply a value.';
END IF;This would be used with a PL/SQL validation: Function Returning Error Text. -
Display an Alert message from PL/SQL block in APEX
Hi,
we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
we tried doing this with below code:
Begin
INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
exception when others then
htp.p('<script language="javascript">');
htp.p('alert("Exception");');
htp.p('</script>');
end;
If anybody knows .... please reply.
Thanks,
SubarnaIf your end goal is showing a pretty error message instead of the message that the tables unique constraint raises try the following. This logic will show a nice message and not try to insert non-unique data.
(1) Create a validation of type "Function Returning Error Text".
(2) Place similar code like the following in your validation. Notice that if the unique name does not exist the no_data_found returns null allowing the validation to pass.
DECLARE
v_error varchar2(100);
BEGIN
SELECT 'A person by this name already exists.'
INTO v_error
FROM your_table
WHERE your_name = :P1_YOUR_NAME;
RETURN v_error;
EXCEPTION
WHEN no_data_found THEN
RETURN NULL;
END; -
Not able to display javascript alert message from within a pl/sql block
Hello,
Can anyone please help me out with this issue. I wanted to display an javascript alert message from within a pl/sql block for an update button. Below is sample code which i am using. P1_ITEM is my hidden item on the report.
begin
if :P1_ITEM IS NOT NULL then
HTP.p ('<script type="text/javascript">');
HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
HTP.p ('</script>');
end if;
end;
and I have made this code to be executed conditionally when request = Expression1
Expression1: SUBMIT
The thing is I am not able to display an alert message when the update button is clicked.
Can anyone please help me with this one.
Thanks,
Ortonvarad but I also have an update statement within that block for the update button something like this i want to achieve.
begin
if :P1_ITEM IS NULL THEN
update sample_tbl
set col1 =:APP_USER,
col2 = 'Y'
where pk_col = ---;
commit;
HTP.p ('<script type="text/javascript">');
HTP.p ('alert(''Successfully assigned an item!'');');
HTP.p ('</script>');
end if;
if :P1_ITEM IS NOT NULL then
HTP.p ('<script type="text/javascript">');
HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
HTP.p ('</script>');
end if;
end;
thanks,
Orton -
Partial display of large Alert message - SAP CRM 2007.
Hi,
I am using SAP CRM 2007.
I created a simple alert with 150 char message in IC which will be triggered on confirmation of an account.
The alert gets displayed on the IC agent screen but he can only see partial message of the alert.
Only the message that can come in the first line gets displayed. There is no option to scroll to see the remaining message.
Please suggest how can user see the complete alert message. Can the alert text area be controlled by some customization?
Regards,
AkankshaHi Antonio.
I'm wondering if/how you resolved this issue. I am currently facing the same problem on an upgrade to EHP1 for CRM 7.
Thanks,
//Eric
Edited by: Eric Roholt on Sep 9, 2011 9:03 PM -
How to display alert message box in sharepoint 2013 visual web part?
Hi,
I am developing a visual web part which submits data to the list. Once it submits the data, I should convey to the user that the data has been submitted successfully.
I tried using clientScript.RegisterStartUpScript etc, but, none of them are working. It is not throwing any error , but pop up is not getting displayed.
Preferrably, I would like to call this alert message from cs page, because, I will be using it in several places.
Please help me.!
Thanks in advance.
HepsiHepsi,
Step 1. On the Page_Load - This way you can pass parameters. Try this
btn.Attributes.Add(
"onclick", string.Format("return openSPPopup('{0}?{1}={2}', '{3}')", YourPage_URL, var1_Name, value1, Param1_PopupTitle));
Step 2 : Javascript function
function openSPPopup(navigateURL, popUptitle) {
var options = {
width: popupWidth,
height: popupHeight,
url: navigateURL,
scroll: 0
SP.UI.ModalDialog.showModalDialog(options);
return false;
Step 3: The popup close code (in .cs file) – I do it this way as it is just close dialog code and easy to write.
protected void btnClose_Click(object sender, EventArgs e)
{ this.Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "SP.UI.ModalDialog.commonModalDialogClose(1, 1);", true);
Courtesy -
Thread
Try this - https://bramdejager.wordpress.com/2011/03/21/using-sp-ui-dialog-and-sp-ui-notify-from-code-behind/
http://msdn.microsoft.com/en-us/library/ff798390.aspx
http://stackoverflow.com/questions/9833907/asp-net-confirm-before-executing-codebehind
http://www.codeproject.com/Questions/443131/Call-to-javascript-Function-from-code-behind-using
http://www.c-sharpcorner.com/uploadfile/ledomoon/calling-code-behind-function-in-javascript/
Hope they will help!
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply. -
Display alert message On successful submission of a form
I am trying display an alert message on a portal form when a user has saved their changes. I put the following code in the "On successful submission of a form" section.
It does the go URL correctly but it does not display the alert message.
url2 := 'PORTAL.wwa_app_module.link?' ||
'p_arg_names=_moduleid&p_arg_values=' || l_module_id ||
'&p_arg_names=_show_header&p_arg_values=YES' ||
'&p_arg_names=_school_cond&p_arg_values=%3D' ||
'&p_arg_names=_teacher_id_cond&p_arg_values=%3D';
go(url2);
htp.p('<SCRIPT LANGUAGE="JavaScript1.1">');
htp.p('alert("Transaction complete... Class/Period Attendance has been posted to database.")');
htp.p('</SCRIPT>');
END;In Forms, you have "call" and "go" interfaces. You can provide the calling page URL in "go" interface.
Maybe you are looking for
-
I want to use Bria (softphone) as my "phone" on the iPad 2 and be able to answer calls from the bluetooth deivce. Ideally, I would want Bria to run in the background, my ipad on my desk or backpack and be able to answer calls. Anyone have experience
-
Adobe Reader 9 in Browser blank when no internet DNS
Hi Guys, Since I installed Adobe Acrobat Reader 9 in our company network we get very slow responses opening PDF's in Internet Explorer 6. It can take up to 10 minutes for a 200 kb PDF te open. Now I found that the problem is caused by not having inte
-
Kernel panics, graphic file corruption with Firewire
I've been having consistent problems with Firewire since I got my Mac Pro last year. I only recently narrowed it down to Firewire so I thought I'd write it up here for the record. I never actually solved the problem, just started using USB-2 instead
-
Store thinks I have latest versions when I don't
Hi. I own Pages 08 and Rapidweaver 4, both of which are not the latest versions. The latest versions, Pages 09 and Rapidweaver 5 are both in the App Store. However, the App Store says that both programs are installed on my Mac, even though, as I said
-
Inventory Management Setup Table MC03BF0SETUP
Is there a limit to the number of records this setup table (MC03BF0SETUP) can hold? I am in the process of rebuilding InfoCube 0IC_C03. Thanks, Brendan.