@Compose

I have a frameset where the top frame is a form with actions.

I use simple @command([compose]) to create documents.

When creating a response from the action it says no doc selected HOWEVER is I use the create menu = no problem. ??

Any thoughts?

Subject: @Compose

It’s a matter of focus. The actions in your action form in top frame work in the context of that form. As soon as you click some target in this frame (like an action), the focus switches from the original document (which is probably in a frame below) and that means that your action does not see a main document any more.

If, on the other hand, you use the action menu, the original focus is not lost (because the action menu is not part of the display windows, so they don’t fight for focus). If you would first click somewhere in your top frame (but not on any action) and then use the action menu to create a response, you will get the same error.

Oh, and I almost forgot: One solution is to use @SetTargetFrame(“NameOfMainDocFrame”) prior to @Command([Compose], …).

Subject: RE: @Compose

Thanks for your response!

I do understand what you are saying but this is what I’m doing and it doesn’t work:

@SetTargetFrame(“NotesView”);

@Command([Compose];“Add”)

Subject: RE: @Compose

What is actually displayed in frame NotesView when you click the action? A document or a view?