I am trying to customize iNotes to: add an extra field to the main Mail Memo form, populate that field when a new memo is created, and add that field to the Subject when the email is sent.
I have successfully added an <input> field to the l_MailMemoEdit subform, and I have added tags for QueryOpen and QueryClose agents at the top of that subform:
<NotesDictionary>
<NotesField Name={EmailClassification}>
<NOTESVAR NAME={$$QueryOpenAgent} VALUE={"wqo_EmailClassification"}>
<NOTESVAR NAME={$$QuerySaveAgent} VALUE={"wqs_EmailClassification"}>
</NotesDictionary>
The QuerySaveAgent runs every time any email is either saved or sent, and it can access the EmailClassification field on the document, and deal with it accordingly. That's all fine.
However, the QueryOpenAgent only runs once, and then won't trigger again for that session. To get it to trigger again, I have to refresh iNotes in the browser (I'm testing in both Firefox 29 and IE 10) and I also have to edit and save the agent.
I've already added both the following notes.ini settings to the server:
iNotes_WA_QueryAgents=1
iNotes_WA_RunQOAgentsForNewLiteForm=1
The latter setting was supposed to fix this behaviour in 8.5.3 - I am on 9.0.1 FP1 for Windows 64-bit.
The server I am testing on also has Traveler installed.
Any ideas how I can force the QueryOpenAgent to run every time a new mail is created?
Alternatively... is there any way in the l_MailMemoEdit subform itself that I could detect whether the user is creating a new memo or replying to an existing memo - that's ultimately what I'm trying to do.
Thanks,
Stuart Orford