Running a background agent and updating document

Hi…

I have a document which shows document counts (based on condition) from diff. dbs

the code consists of simple formula lang. eg. @setfield(“T_pending”;@elements(@DbColumn(“…”)));

but since there are many calculations it takes long time to reflect it on the document when run this agent from action menu…

I wanted this agent to run in background so that once this agent is triggered by the user…while it is calculating the values user can keep doing other things in lotus notes…

i tried converting the agent to background but it does not update the values on the document…

Is there any other way to run the background agent?

any suggestions please…

Subject: running a background agent and updating document

Have you tried “Agent.RunOnServer”?

Sharjeel.

Subject: RE: running a background agent and updating document

yes … i tried…actually the problem is that the agent containing formula runs, but the fields are not getting set on the required document.

Subject: RE: running a background agent and updating document

can i have a glimpse of the code plz?