Issue with EditInsertFileAttachment

We have an action where we are calling two agents using ToolsRunMacro

  1. First agent is lotus-script agent which set some value in Notes.ini file on client

  2. Second is the formula agent which reads the notes.ini file and accordingly inserts an attachment in the body field using “@command(EditInsertFileAttachment)”

The problem is the “@command(EditInsertFileAttachment)” does not work when we click on the action but the same code works properly if we call the formula agent in a different action button.

The formula agent fails to work if call both the agent in a single action.

Waiting for the reply.

thx

Subject: sounds like a focus issue maybe

but it’s hard to say because “does not work” is a little vague. Does the LotusScript agent do anything that might affect focus? Open or close windows, that sort of thing?

  • Andre Guirard, IBM/Lotus Development

Useful blog: Best Practice Makes Perfect

NOTE: My policy is to post only two responses to the same question. So that my second response can solve your problem rather than being a request for details, please read the C R I S P Y document.

Subject: Issue with EditInsertFileAttachment

Hi May be ur running agent in the background. You have to remember that @command(editinsertattachment) is UI function.

One more thing if u update Notes.ini and try to read the variable immediately then it will return nothing.

Subject: I have to disagree with you twice

If the agent is run by ToolsRunMacro command, it should have access to the UI.

And, I don’t know where you get the idea that you can’t set an INI variable and then immediately read its value. Of course you can.