Invalid or nonexistent document when composing and view is not in focus

Greetings all,

I have a main database that has three frames. A link in the navigator frame opens a view from a second database in the contents frame. This view has a “New document” action button with this formula: @command([compose] ; @dbname ; “document”).

This action works if the view is in focus but if another frame is in focus it gives the error: “Invalid or nonexistent document”

This is a problem because when the users open the view the navigator frame remain in focus and they will get the error if they directly click the action.

How can I make the view or “contents” frame in focus before composing document in the formula?

Thanks in advance

Subject: Invalid or nonexistent document when composing and view is not in focus

Try the RefreshFrame @Command in your action button.

Gary.

Subject: Tried. didn’t work…

Subject: Invalid or nonexistent document when composing and view is not in focus

The problem is @DbName – you are pointing at the wrong database if you aren’t using the “foreign” view at the time. Your link is going to have to explicitly point at the foreign database using either the server and path or the replicaid.

Subject: RE: Invalid or nonexistent document when composing and view is not in focus

seems just removing the @dbname solved the problem - thanks Stan.