Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Notification API

Notification API: createNotification

Scroll Prev Next More

 

Alternative syntax of addNotification function.

Syntax

CommonFunctions.addNotification(dynamic message, dynamic title = null, dynamic icon = null, dynamic url = null, dynamic expire = null, dynamic user = null, dynamic provider = null)

Arguments

params

array with parameters. Corresponds to parameters of addNotification function.

params["message"] - message

params["title"] - notification title

params["icon"] - icon

params["url"] - URL

params["expire"] - expiration datetime or time in minutes

params["user"] - user

params["provider"] - security provider

Return value

No return value

Example

This example shows how to add a notification for all users when a new record added to the Categories table. This code needs to be added to AfterAdd event of the Categories table.

 

CommonFunctions.createNotification( new XVar("message""list1", "title", "icon" ) );  

 

See also:

About Notification API

Function createNotification

Function makePageLink