How can I specify that I want to run an agent in the current database?

We need to run an agent (like a WebQuerySave agent) to fix some issues left over by service calls when a user saves a document. We have placed the agent in the Volt database (as the data is here) but we cannot select "current database" (nor the Volt database for that matter) when setting up a Domino service to call the agent....

The reason we want to run in "current database" is that we have one environment for developing/testing code changes and one for production usage. When code is ready we export it and then use that file to upgrade the production app. However, we need to call the agent in the same database as the app is running (and the data resides).

Ideas?

Domino Volt: 1.0.4 on Domino 11.0.1 FP3 on Windows 2012 server.

Just for completeness, I found some notes from @Marty Lechleider for a similar problem. One was to create a service to run an agent - as is difficult in our setup.

The other was to edit the Volt database in Domino Designer and add code to run "on save" in the Notes form. I have now tried out a number of things to pursuit this principle. However, nothing triggers. I have tried:

  • WebQuerySave event
  • PostSave event
  • onSubmit event

But my simple test agent that writes to the console never triggers. Not that I'm overly surprised as Domino Volt is quite a different creature than traditional Notes forms and traditional web forms....

Ok, I ended up doing it the "hard way" by creating a specific url for agent using the appid for the database - and then called the agent using jQuery in the afterSave event of the form.

Not very "low code" - but it works...

hi John, have the same issue, can you be so kind to share the solution code? how do you create the specific url & run an agente using jQuery?

i'm a new one on Leap, thanks in advance