Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >
SWEAlert
SWEAlert displays a modal dialog box containing a message to the user.
Syntax
TheApplication().SWEAlert(message)
Returns
Undefined (similar to returning nothing)
Usage
Use SWEAlert instead of Alert. With Alert, popup applets such as Mvg and Pick applets are hidden (sent to the background) when a JavaScript Alert() is raised by a Browser side event. With SWEAlert, the dialog's parent applet is not sent to the foreground.
Used With
Browser Script
Example
The following example displays a status message to the user.
function BusComp_PreSetFieldValue (fieldName, value) {
if (fieldName == "Account Status") {
var cVolume = this.GetFieldValue("Current Volume");if ((value == "Inactive") && (cVolume > 0)) {
TheApplication().SWEAlert("Unable to inactivate an account that has a current volume greater than 0");return ("CancelOperation");
}
else
return ("ContinueOperation");
}
else
return ("ContinueOperation");
}
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |