How to prevent "...nested form event" in combination with save operation

When saving a newly created document, I have to store the NoteID in a hidden field. In ‘on submit’ I make a link to a custom sub with “On Event postsave From Source Call CustomSub”.

In this CustomSub this event is removed (On Event postsave From Source Remove) before “call Source.save” is invoked.

Everything works as intended exept the annoying message “Attempt to execute nested form events”.

Could anybody tell me how to avoid this message?

Regards!

Sieghard Wagner

Subject: How to prevent “…nested form event” in combination with save operation

Sieghard,

You cannot put source.save within a QuerySave or PostSave event. This is to stop Notes getting stuck in an infinite loop

You don;t need the line anyway as the document is about to be saved by the QuerySave Event (unless you specify Continue=False)

HTH

Mike