This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 9, 2012, 10:20 AM
11 Posts

Showing alert in SSJS

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: alert in SSJs
  • Replies: 4
Hi,
how to show alert in SSJS.
Mar 9, 2012, 12:27 PM
261 Posts
Re: Showing alert in SSJS
You can't.
 
In SSJS you can use the print("") function to output information to the server console. If you want to send an alert() to a browser user, you need to use clientside javascript.
 
(you can of course show the clientside alert conditionally based on a serverside variable)
 
Mark
 

Mar 9, 2012, 2:19 PM
298 Posts
*The Extension Lib in OpenNTF has a dialog control
Mar 9, 2012, 4:21 PM
22 Posts
Re: Showing alert in SSJS
You can use the XSP messaging system with the extended @Functions provided by the Extension Library:
 
@ErrorMessage
@InfoMessage
@WarningMessage
 
/Newbs
Mar 12, 2012, 5:04 PM
26 Posts
Re: Showing alert in SSJS
What I did was to use the extension library dialog box.
 
I was unable to get @ErrorMessage or any of the other suggested functions to work.   As typical it isn't documented anywhere.
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal