How to display an alert from server script in Siebel? -


We have a Siebel 7.8 application, and there is a requirement to show a message when the user record meeting saves some conditions Something like this:

  function BusComp_WriteRecord () {if (conditions) {TheApplication (). RaiseErrorText ("Very Important Message"); }}  

The problem is that I can not use RaiseErrorText because it prevents further event execution. This leaves me with alert or SWEAlert (unless there is no other option that I do not know). Both are supported in the browser script, and there is no browser version of the BusComp_WriteRecord event. This means that I must keep my beliefs in the server script event, and any By the way, invite a browser script function that shows the message.

Server script (in business component):

  function BusComp_WriteRecord () {if (conditions ) {TheApplication (). SetProfileAttr ("MyMessage", "Very Important Message"); Browser script (in an applet that always loads before BC):   
  function applet_load () {listenerAlert (); } Function listener () {var message = theApplication (). GetProfileAttr ("MyMessage"); If ((message! = Null) & amp; amp; (Message! = "")) {TheApplication () SetProfileAttr ("MyMessage", ""); warning message); } // Check for every 0,5 seconds for the message, always ... setTimeout ("listenerAlert ()", 500); }  

This works, but its server performance has a great impact on our server per server, and approximately 60 users, one profile attribute for each user is twice the second (CPU usage increases up to 100%).

So, there is no other way to show a warning to the user in Siebel 7.8? It should be a warning or similar, i.e. the Sebel broadcast message is not an option. Or, alternatively, if I stick with SWEAlert: there is no other way to communicate between the server script and the browser script without endless voting,

If you still can use browser script, you can type in the code applet at applet level

Function applet_PreInvokeMethod (name, inputpropetate)

You can check the name == "record to write", there your mother The Ytaon can, and can pop up prompt warning ().

Let us know if this has worked.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -