Description
This event runs when a new article is created by Tool.
Syntax
OnToolCreateNewArticle |
Code
This code is available in the PageDesignerAddIn Class in the Page.Vb file within FredSystemAddInExpress project.
Public Overridable Function OnToolCreateNewArticle() As Integer Implements IFredEvent.OnToolCreateNewArticle
Dim dlg As INewObjDialog = New NewObjDialog(FredApp.AppBase.Windows.Item(0), DataConnection.GetIDataConnection(), True)
dlg.TitleFormat = "New article"
dlg.SetObjectType("article")
If dlg.ShowDialog() Then
Return dlg.ObjectId
End If
Return 0
End Function
Context
Fred application dispatcher events