Woops! I wrote the article and forgot about another trick needed. I was wrong
to fool people in to thinking the $$Return field had anything to do with the
logic. Sorry. The trick is that the Save button has this formula in it:
So, it only closes the page if there are no errors. $$Return only kicks in when
CloseWindow is triggered. Hence until hasErrors=false it will simply save and
so you see &Seq=1
Woops! I wrote the article and forgot about another trick needed. I was wrong to fool people in to thinking the $$Return field had anything to do with the logic. Sorry. The trick is that the Save button has this formula in it:
@Command([FileSave]); @If(hasErrors;"";@Command([FileCloseWindow]))
So, it only closes the page if there are no errors. $$Return only kicks in when CloseWindow is triggered. Hence until hasErrors=false it will simply save and so you see &Seq=1