WQO's agent fill value in document

I have an application which has 1 form, 1 field and 1 button on the form (button just do @Command([FileSave])).

on the WQO event I run agent:

Dim s As New notessession

Dim d As NotesDocument

Dim v As Variant



Set d = s.DocumentContext

'd.a = "as1111111"    does not as well

v = Evaluate({@SetField("a"; "123")}, d)

and form opens with vallue 123 in field A, then I change that value to 123456 and then click on the button (savedocument).

and it does not save new value 123456, there still 123 :frowning:

where I made mistake?

Thnx

Subject: WQO’s agent fill value in document

Your code seems to be fine .

Did you checked the backend document ?

It should have the correct value

Sine you are setting the value of a in WQO

Once the page refreshes after saving the value is again set to “123” in field “a”

Subject: RE: WQO’s agent fill value in document

yes backend document has correct value, it is great, at least this question.

but now the question what I have to do with this :slight_smile: