Programmatically fire GlobalSearch
Possibly a silly question here, but I'm having a heck of a time trying to .Execute the Geocortex.EssentialsSilverlightViewer.Infrastructure.Commands.SearchCommands.Globalsearch command.
I know that I'm missing something, as I'm currently trying to fire it off through an otherwise working custom module
with the line Geocortex.EssentialsSilverlightViewer.Infrastructure.Commands.SearchCommands.GlobalSearch.Execute(text), and the program will flip through the line with no errors and, seemingly, no results. In my mind, I expect this command to run a search on all layers for whatever string is passed to it, returning results to the results window as normal, as if running a search through the default search box. Am I wrong in this assumption? Feel free to set me straight!
-
Ignore the above; problem solved. Classic case of disabling the entire Global Search module when I should have just disabled the View. Very neat modularity though, I'm really impressed.
0 -
Hi Eric,
You can check for this in the log. If a command is fired but it has no implementation(s) registered (e.g. you're missing a module), you will see "Command executed but no implementation registered".
The log is opened by holding Shift and pressing Escape twice.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer