@Command([ToolsRefreshSelectedDocs])

Hello

I have a problem, I want to refresh response document, using @Command([ToolsRefreshSelectedDocs].

Form “RA” ← response

From “MR” <-response to response

I open response to response document,

and on save button I put this action:

@Command([FileSave]);

@Command([CloseWindow]);

@Command([OpenView];“(System Zintegrowany: Raporty - Wg. obszaru)”); ← View

@Command([OpenDocument];“0”;@text($Ref)); ← Open response document

@UpdateFormulaContext;

@Command([CloseWindow]);

@Command([ToolsRefreshSelectedDocs]); ← update selected in view document

This function work sometimes… because one time view open and select corect document (response) to refresh. But sometimes views open and select different then response document. @Command([ToolsRefreshSelectedDocs]); → gives results only when view open and select/scrol to response document @text($Ref).

Have you got any idea?

Subject: Use LS

The code you have relies on the view not changing for the entirety of the run, and obviously that’s not happening for you some of the time.

I suggest you rewrite.

LotusScript will be a lot more reliable for you.