@Command and other UI functions are not allowed in this context

I have a button on a form that compose a response doc :@Command([Compose];“”;“Minutes”)

I clicked on it and got this pesky “@Command and other UI functions are not allowed in this context” . Form “Minutes” does not have QueryOpen or anything that check when it is opened/composed.

What should I do ? Where should I look for causes of this error ?

Many thanks in advance for your help/suggestion/reply .

Subject: @Command and other UI functions are not allowed in this context

Is this button calling an agent that executes this command?

Subject: RE: @Command and other UI functions are not allowed in this context

That is the code on that action button :@Command([Compose];“”;“Minutes”), where “Minutes” is a response doc . It does not call any agent . It has a QuerySave but it fails even before composing the form ???

Many thanks for your reply . Really appreciate your helps.

Subject: RE: @Command and other UI functions are not allowed in this context

The there is something somewhere causing the error as I cannot re-create your problem in 6.0.3…

Not sure how to help at this point…is that the only code in the button?

Subject: RE: @Command and other UI functions are not allowed in this context

I found the problem - It’s on a field of form “Minutes” that inherit from the parent doc. The field Author on the parent doc is coded as @UserName , and on the response doc , a field is set to @Command([CN];Author) instead of @Name([CN]…) Dummy me . That was the problem

I did a cut-and-paste to another form, using field elimination to find the problem field.

Anyway, I really appreciate your help . Your kind help is very much appreciated . Thanks again.