This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


May 14, 2014, 4:21 PM
1 Posts

iNotes customization - QueryOpenAgent

  • Category: iNotes
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 1

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


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal