The object represents a notification sent by the program.
| Availability | The object is returned by a method or a property of another object |
notification = program.newnotification()
notification.adduser("help@d-one.info")
notification.title = "notification"
notification.description = "test notification"
notification.actionallert()
notification.datereminder = dataview.getvalue("data_scadenza")
notification.typebefore = 1
notification.save()
actionallert
| Description | Sets the notification as an alert |
| Value Type | |
| Format | notification.actionallert() |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
Examples
notification.actionallert()
actionemail
| Description | Sets the notification as email type |
| Value Type | |
| Format | notification.actionemail(email) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| email | string | The email to send the notification to |
Examples
notification.actionemail("info@d-one.info")
actionopendataview
| Description | Sets the notification as an alert with the option to open an associated form |
| Value Type | |
| Format | notification.actionopendataview(tablename, gguid) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| tablename | string | The table containing the record to be loaded |
| gguid | string | The unique identifier of the record |
Examples
notification.actionopendataview("orders","XXX-XXX")
adduser
| Description | Adds a user to the notification so that they also receive it |
| Value Type | boolean |
| Format | boolean = notification.adduser(username) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| username | string | The email or username of the user to be added |
Examples
bool = notification.adduser("info@d-one.info")
addvaluetemplatemail
| Description | Adds a value to the parameters used to compose the email template |
| Value Type | |
| Format | notification.addvaluetemplatemail(key, value) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| key | string | The key of the parameter |
| value | object | The value of the parameter |
Examples
notification.addvaluetemplatemail("namecustomers","Bob")
clearvaluetemplatemail
| Description | Removes all template mail parameters from the notification |
| Value Type | |
| Format | notification.clearvaluetemplatemail() |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
Examples
notification.clearvaluetemplatemail()
datecreation
| Description | Sets the creation date of the notification, in timestamp format |
| Value Type | double |
| Format | double = notification.datecreation |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
datenotification
| Description | Sets the date in timestamp format for when the notification should appear or the email should be sent |
| Value Type | double |
| Format | double = notification.datenotification |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
datereminder
| Description | Sets the date in timestamp format for the notification reminder |
| Value Type | double |
| Format | double = notification.datereminder |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
dateuntil
| Description | Sets the deadline for when the notification should be automatically rescheduled |
| Value Type | double |
| Format | double = notification.dateuntil |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
delete
| Description | Deletes the notification from the database if it has been previously saved |
| Value Type | boolean |
| Format | boolean = notification.delete() |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
Examples
notification.delete()
description
| Description | Sets the description displayed in the notification |
| Value Type | string |
| Format | string = notification.description |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
gguid
| Description | Returns the unique identifier of the notification used to save it in the database |
| Value Type | string |
| Format | string = notification.gguid |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
hide
| Description | Sets or retrieves the value that identifies whether the notification should be shown in the notifications list or not |
| Value Type | boolean |
| Format | boolean = notification.hide |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
idtemplatemail
| Description | Sets the template of the email that will be sent by the notification |
| Value Type | |
| Format | notification.idtemplatemail(value) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| value | integer | The numerical value of the ID retrieved from the Brevo email sender manager |
Examples
notification.idtemplatemail(105)
listusers
| Description | Returns the list of users currently associated with the notification |
| Value Type | list<string> |
| Format | list<string> = notification.listusers() |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
read
| Description | Sets or retrieves the value that identifies whether the notification has been read or not |
| Value Type | boolean |
| Format | boolean = notification.read |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
removeuser
| Description | Removes a user from a notification |
| Value Type | boolean |
| Format | boolean = notification.removeuser(username) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| username | string | The email or username of the user to be removed from the notification |
repetition
| Description | Sets the repetition value of the notification |
| Value Type | integer |
| Format | integer = notification.repetition |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
save
| Description | Saves the notification in the database |
| Value Type | boolean |
| Format | boolean = notification.save() |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
title
| Description | Sets the title of the notification |
| Value Type | string |
| Format | string = notification.title |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |
typebefore
| Description | Sets the type of time interval used for the reminder |
| Value Type | integer |
| Format | integer = notification.typebefore |
| Type | Property |
| Systems | Windows, Web, Android, IOS, Mac OS |