Notifications

The Notification object allows you to manage and create directly via script program notifications

notification = program.newnotification()
notification.adduser("help@d-one.info")


notification.title = "notifica"

notification.description = "notifica di prova"


notification.actionallert()


notification.datereminder = dataview.getvalue("data_scadenza")

notification.typebefore = 1


notification.save()

notification.actionallert()

Set the notification as a warning.

notification.actionopendataview(*tablename*,*gguid*)

Set the notification to open a tab. You must pass the table name and gguid of the desired record to it.

*value" = notification.read

Returns or sets the value for reading the notification.

*value* = notification.datecreation

Returns or sets the notification creation date.

*value* = notification.dateuntil

Returns or sets the date indicating until the notification is repeated.

*value* = notification.datereminder

Returns or sets the date that indicates when to display the notification.

*value* = notification.listusers()

Returns the list of users associated with the notification.

*value* = notification.removeuser(*username*)

Removes a user from the notification.

*value* = notification.adduser(*username*)

Adds a user from the notification.

*value* = notification.repetition

Resets or sets the repetition time of the notification.

0 = Never


1 = every day


2 = every week


3 = every month


4 = every year


5 = every 2 years


6 = every 3 years


7 = every 4 years


8 = every 5 years

*value* = notification.typebefore

Returns or sets the display time of the notification before the actual requested date.

0 = Noone


1 = 5 minutes before


2 = 10 minutes before


3 = 30 minutes before


4 = 1 hour before


5 = 2 hours before


6 = 12 hours before


7 = 1 day before


8 = 2 days before


9 = 1 week before

*value* = notification.description

Returns or sets the notification description.

*value* = notification.title

Returns or sets the notification title.

*value* = notification.delete()

Just delete the notification.

*value* = notification.save()

Save the notification.

*value* = notification.gguid

Returns or sets the gguid of the notification.