iNotes customization - mail -

Hello,

I customized iNotes 8.5 with a new menu in the s_MailMemo Scene_Action and i have overwritten the “send” button to call a new form.

The function that overwrites the “send” button of the mail Scene calls a modal window which returns a javascript object (similar to the example of the customization).

Now i want to call the agent of the original “send button” after the modal window is closed, but i can´t figure out how. I tried to call the AAA.DSq.ELU (original onclick event), but that doesn´t work.

So my question:

How to call the agent to send an email in iNotes 8.5?

Subject: Send Agent

Well i managed to call the original “send” onclick event and that works fine so far, but now i still need to modificate the agent which is sending the email.

Somebody knows if the emails in iNotes are sent by an Agent and if so whats the name of the agent?

Subject: No agent

No, there is no agent involved when sending an email. If you want to modify what happens when an email is sent, you can insert code in the Custom_Scene_PreSubmit callback function (in Custom)JS). You can check for s_SceneName equal to “s_MailMemo” and s_SubmitAction equal to “h_ShimmerSend” or “h_ShimmerSendAndFile”.

Subject: send event

Thank you Eric!

I thought so, my problem is that i want to archive the documents sent via iNotes. I resolved my problem temporary increasing these documents with a flag and than archiving them with an Agent. I do this because the function that archives the documents already exists for the Notes Client and i do not want to change the way it works, besides that i do not want to re-write the whole code in java. Is there any function that is called after the email was sent? If so i just could call the agent that is archiving the documents afterwards.

Thank you in advance.

Subject: Calling the send event in iNotes 8.5.2

How do you call the send event in the new “lite” design? I am migrating old customizations to iNotes 8.5.2 and can’t figure out you to accomplish the send on a new action button in a memo. In the “classic” version I called CgH(‘’,‘h_ShimmerSend’).

Subject: Solution

AAA.DSq.ELU(event, ‘e-actions-mailedit’, ‘EbK’, {sAction: ‘a-send’});

I used Firebug to look at the action called by the existing Send button.

Subject: Try QuerySave agent

You could try defining a QuerySave agent. It would run when the mail message is sent. See an example in this article:

Subject: QuerySaveAgent

Thank you Eric,

it worked.Could have figured that out myself to use a QuerySaveAgent. Took a while to customize the iNotes the way i needed to, but overall thank you for your great distribution on this topic (also in the IBM Wiki). Without that i wouldn´t have gone that far.