Hi all,
I tried looking for a solution for this in the forum but came up empty. Here’s my situation.
I have a form with an action hotspot submit action with the following formula in it:
@SetTargetFrame(“Main”);
@SetField(“ActionTaken”;“1”);
@If(@Command([FileSave]);@Command([OpenPage];“Success”);“”)
When I perform this action, I then have code in the QuerySave event that executes:
Sub Querysave(Source As Notesuidocument, Continue As Variant)
Dim doc As NotesDocument
Dim request As Request
Dim rfv As New RequestFieldValidation(Source)
Set doc = Source.Document
If Cint(doc.ActionTaken(0)) <> ACTION_SAVEDRAFT Then
Continue = rfv.ValidateDocument
If rfv.IsValid Then
Set request = New Request(doc,Cint(doc.Doctype(0)))
Call request.SubmitRequest
Call doc.RemoveItem(FIELD_ACTIONTAKEN)
End If
End If
Here’s the problem–the first time the action is executed, the Querysave event runs. But each subsequent time it is executed (after say a field has been modified according to the error thrown by the RequestFieldValidation class) nothing happens.
I am assuming this is happening because I set continue = False. the question I have is if there is a way to get the Querysave event to execute the next time I try clicking the action hotspot.
Any help on this would be greatly appreciated. Thanks.
Brandt