Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Agent using Formula 1

Status
Not open for further replies.

BlackHawk2

Technical User
Jan 29, 2002
124
US
Is it possible to call an agent using an @function. Basically I would like to press a button on a form that does other things, but as part of the formula it runs an agent.

Thanks

BH2
 
@Command([ToolsRunMacro] ; "Agent name")

Should do the trick.
 
That works great. But only if I click on the command. When others try to do it, they get a "Trust Signer, etc." message and then they get an agent not found message.

What am I doing wrong?

BH2
 
If you are not listed in the users extended acl, they will get the trust signer prompt appear, however once they have clicked "trust signer" they should not get it again. this is suposed to prevent people automatically running code from an unknown source (unlike microsoft which just runs it).

you can add yourself to the extended users from the domain address book, by actions edit administration ECL (as long as you have access. however this will only apply to users that are set up after this. you can however use the @refreshecl command to update their local copy (this will however also bring up the trust signer box).

As to the agent not found:
1. Is the agent a hidden agent. ie in the agent list does it have brackets round it. If so you have to include the brackets when you call it. eg @Command([ToolsRunMacro] ; "(hidden agent)".
2. Can you run it youself. If not it is probably the above. If you can then have you created the agent as a 'Shared agent' (thats the little tick box under the agent name) if not the agent is stored on your local machine and not the server.

If it's none of these post again and I'll have another think.


chris

 
Thanks for the ALC help.

The agent does not have brackets.
I tried to share it, but the check box is greyed out.
I can run the agent myself, it is when others try to run it that there are problems.

BH2
 
once an agent is created as not shared you cant reverse it. you will have to rename it. the re create it, making sure you check the shared agent box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top