RaiseInternalAlert Method

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:07

Description

Notifies various user interface elements that a database object has been inserted, deleted or updated.

Look here:

http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4WinUIApplicationBaseClassRaiseInternalAlertTopic3.html

http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4WinUIContractsIShellAppClassRaiseInternalAlertTopic3.html

http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4WinUIApplicationBaseClassRaiseInternalAlertTopic.html

http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4WinUIContractsIShellAppClassRaiseInternalAlertTopic.html

http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4WinUIApplicationBaseClassRaiseInternalAlertTopic2.html

http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4WinUIContractsIShellAppClassRaiseInternalAlertTopic2.html

Syntax

RaiseInternalAlert(GNClient.TriggerCause.cause,string objectTypeName, int id)

or

RaiseInternalAlert(GNClient.TriggerCause.cause,IGenericAttrObjList selection);

or

oid RaiseInternalAlert(IList<AlertItem> alertItems);

cause

The cause indicates the action that has occurred, typically TriggerCause.Spike, TriggerCause.Create or

TriggerCause.Modify.

objecttypename

The objectTypeName should be objectType name of the objects involved.

id

The id parameter is the id of the database object.

 

Examples

App.RaiseInternalAlert(GNClient.TriggerCause.Create, "lib", dlg.ObjectId)

App.RaiseInternalAlert(GNClient.TriggerCause.Spike, "libObj", libId)

App.RaiseInternalAlert(GNClient.TriggerCause.Modify, "task", task.Id)

ApplicationBase.Current.RaiseInternalAlert(AlertItem.CreateList(GNClient.TriggerCause.MarkAsRead, selection))

main.App.RaiseInternalAlert(GNClient.TriggerCause.Spike, main.GetSelectedObjects())

ShellApp.RaiseInternalAlert(GNClient.TriggerCause.Modify, "article", ids)

TedApp.ClientApp().RaiseInternalAlert(AlertItem.CreateList(GNClient.TriggerCause.Modify, editDialog.ObjectTypeName, ids))

App.RaiseInternalAlert(alertItems)