ArticleRefreshId Method (Fred)

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

Description

Refreshes the article with the specified id.

Syntax

Fred.ArticleRefreshId (selectedId)

Remarks

The method returns error code.

Example

  <ShellCommand(CanExecute:="Ena_HasCurrentArticle")> _

  Public Sub Send()

    Dim selectedId As Integer = SelectedFolderObjectId

 

    If selectedId > 0 Then

      Dim sendDialog As New EditorialClient.SendCopyFlowDialog(Main.Window)

      sendDialog.SpecifiedFolderId = SystemUserOptions.Send_LastSendOnFolderId

      sendDialog.FolderObjectIds = New Integer(0) {selectedId}

      If sendDialog.ShowDialog() = True Then

        SystemUserOptions.Send_LastSendOnFolderId = sendDialog.SpecifiedFolderId

        Fred.ArticleRefreshId(selectedId)

        Main.Refresh()

        ActiveArticle.Refresh()

      End If

    End If

  End Sub

Context

Fred application dispatcher commands