Moving from doclink to view

Hello @allI have the following problem: When I have opend a document through a doclink I need an action to go to a view containig this doc with this doc marked.

Any ideas?

Regards

Nico

Subject: Moving from doclink to view

A little search of the designer help and voila:

@Command( [GoUpLevel] )

Usage

If you open a document by activating a link, use GoUpLevel to display the view in which that document appears rather than close the database when you close the document.

This command does not work on the Web.

Subject: RE: Moving from doclink to view

Thanks a lot for your help! @David: I already tried that, but the focus then points not to the right document. It points to the document you accessed last time when you selected a document from the view.

So Bill’s solution is what I was looking for. I tried to solve the problem with script-code but Bill’s way is much shorter.

Again, thanks for your help, you saved me a lot of time.

Nico

Subject: The following code in a action/button on the form will work

UNID := @Text(@DocumentUniqueID);@Command([GoUpLevel]);

@Command([OpenDocument]; “0”; UNID);

@Command([FileCloseWindow])

Subject: RE: The following code in a action/button on the form will work

FYI I expanded and improved on this code in my blog at http://www.lotusguru.com/lotusguru/LGBlog.nsf/d6plinks/JDOZ-6T5Q2D

Kevin