In version 1.6, the AddIn command MergeToSpecifiedArticle has been added to Ted4MainAddIn and uses the new SpecifiedArticleMergeDialog dialog to merge selected items with an Article specified in the dialog.
The Article is selected by way of a search that uses the ArticlePicker BaseQuery by default, although that can be specified in the SpecifiedArticleMergeDialog constructor. The MergeToSpecifiedArticle AddIn is accessible via various Merge to Specified Article menus.
<ShellCommand(CanExecute:="HasSelectedObject")>
Public Sub MergeToSpecifiedArticle()
Dim objType As Schema.ObjectType = articleObj.ObjectType(DataConnection.Instance.Schema)
Dim selection As IGenericAttrObjList = Main.GetSelectedObjects()
Dim articleMerge As New ArticleMerge(Main.Window) With {.Ids = selection.Ids}
Dim dlg As New SpecifiedArticleMergeDialog(Main.Window, articleMerge, "ArticlePicker")
There are two further optaion arguments to SpecifiedArticleMergeDialog; searchName which allows a particular search to be used from those sepecified in the BaseQuery, and isAutoApply which is a boolean value that makes the search query the database as and when any of the fields are modified.