How do I detect that a document is in a frame in the Notes client

I have an application that displays the documents in the left frame (as a view), selecting a document displays this in the right frame.Doubleclick opens the document in “fullscreen”

The user can edit this document, but the save and close button :

@Command([FileSave]);

@Command([CloseWindow])

This will close the the whole frameset, when editing within the frameset, but work as planned when the document is “fullscreen”

Does anybody know of a @isinframe function or similar LS to detect the document beeing in a frameset ?

Subject: How do I detect that a document is in a frame in the Notes client

I found a solution to my problem :Put a @settargetframe(“FrameName”) before the @fileclose etc.

I would still like a method of detecting the presence of frames… but… problem solved for now