Having an issues with an action hotspot and Querysave--how do I get around this?

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

Subject: SOLVED: Having an issues with an action hotspot and Querysave–how do I get around this?

D’oh! it must be one of those days.

Turns out my custom class had a boolean value that needed to be set to true in order to get the script to loop past its first iteration and I forgot the set it.

Sorry to waste everyone’s time. Have a good weekend.

Brandt

Subject: RE: SOLVED: Having an issues with an action hotspot and Querysave–how do I get around this?

Don’t worry Brandt, often the solution arrives just a millisecond after you post your thing on the forum. Part of the developer’s life I suppose.

Subject: RE: Having an issues with an action hotspot and Querysave–how do I get around this?

There no such issue known. Are you sure your class isn’t doing something like setting SaveOptions, which might affect this?