@Command agents in 9.0.1

A change has been made to a database field. I need to refresh all documents so that these new field values are visible for the View’s SELECT and @Contains code. I am trying to create a simple agent that will open, save and close each document in a View. The error – Formula error: @Command and other UI functions are not allowed with this search type; please select ‘None’ as your runtime target – appears when the agent is run. I cannot find where to change the Runtime Target. I go to the agent properties but this option is not available.

My first question, are @Command agents still allowed in 9.0.1? Second question, where can I find the Runtime Target option?

Thank you for any input.

Anita

Subject: And just for the record, I use [ToolsRefreshSelectedDocs] here with little problem.

Often I only want some of the docs refreshed, so just writing this and then select-all, that’ll work when I want 'em all.

I also have a toolbar icon for it.

Subject: See example

For Browser users who can’t see the above screenshot:

  • Create an @Formula agent
  • Open Agent Properties
  • On the first tab, section ‘Runtime’, of the Agent Properties box, select ‘Target: None’.
  • In the code pane of the agent, enter @Command([ToolsRefreshAllDocs])