Select SearchUIs in the Shell tab from scripting

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:35

Since the version 1.6, added the ShowNavTabSearch function to the MainAddIn that will display the navigator that matches the given BaseQuery name and selects the displayed SearchObjectUI setting the focus to the first search field.

The ShowNavTabSearch only works with a navigator that is populated with NavigatorTabItems, e.g. the Shell Main Tab.

The following snippet shows a command that will show the navigator tab associated with the WireShell BaseQuery and selects the Advanced search:

<ShellCommand()>

  Public Sub SearchWires()

  ShowNavTabSearch("WireShell", "Advanced")

End Sub

The second search name argument is optional and if it is omitted or nothing, the search will not be changed from the current one.