$$ Return

Hi

I am facing a problem in $$ Return.

It has formula :

db := @ReplaceSubstring(@Subset(@DbName; -1); “\”; “/”);

docID := @Text(@DocumentUniqueID);

“[” + db + “/all/” + docID + “?EditDocument]”

Problem.: When I click on Save button which has @command([FileSave]) formula. AFter clicking it shows bank page then it executes $$Return formula and open the same document in edit mode. I do not know how this white blank page is coming.

Please suggest.

Thanks

Subject: RE: $$ Return

First, please read about @WebDBName function.

I think what’s happening, is that the $$Return executes right away, and it sends your browser a special type of response that tells the browser “Here’s a URL. Go to that URL: http://…all/hexvalue?EditDocument.” So the browser sends that URL back to your server, and it waits for the server to send that page. While it waits, the screen is blank.

To eliminate the blank screen, you could make $$Return return a [[double-bracketed]] value. There would still be a wait, but the user would be looking at the screen they just submitted while they waited.

Or, you could work on making the blank-screen wait shorter by making your form more efficient. You might start with this whitepaper on how to write well-performing Notes/Domino apps.