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

I’ve built up a form.

If use a button with @Command([Compose];“Profile”)to create a new form, it works okay.

But,if from an outline entry within frameset, also want to use @Command([Compose];“Profile”) to link to the form, it doesn’t work.

Pls help.