OnToolCreateNewArticle Event (Fred)

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:12

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