Monday, July 25, 2011

Difference between Alert() and SWEAlert Functions

  • In Siebel 2000 and earlier releases, developers could use the application methods such as MsgBox and InputBox to create a dialog box and get input from the users.
  • In Siebel 7, these methods are not supported, but the developer could still achieve the same in browser script with the help of JavaScript functions such as Alert, Prompt and Confirm.
  • Siebel applications version 7.5.3 and higher also includes a method known as SWEAlert method 
The Alert Function and SWEAlert Method:
These functions allow you to display messages and obtain input through browser scripting.

The alert function will pop up a message box and display an OK button.
The syntax is as follows: alert(The Message To Display );

Where as from Siebel applications version 7.5.3 and higher, the Alert function is incorporated into the Siebel interfaces methods through the application SWEAlert method.
and you should use the SWEAlert method rather than the alert function in versions 7.5.3 and higher, unless the script is running in standard interactivity (SI) mode.

PLEASE Note:
The Alert function is only supported in Standard Interactivity mode. 
while the SWEAlert method is only supported in high interactivity mode.

the syntax for SWEAlert method is :
theApplication().SWEAlert("message")

One advantage of using the SWEAlert method instead of the Alert function is the behavior. If the alert is invoked on a popup applet such as an MVG applet. When Alert window displayed using Alert(), the MVG applet disappears behind the main application applet, but it won't when used with SWEAlert().

No comments:

Post a Comment

Followers

Search This Blog