120 pts.
 possible to create call a Domino Agent form a Web Button?
Is it possible to create a button on a Domino Web Page, and have that button call a Domino Agent in the same DB?



Software/Hardware used:
Domino iSeries
ASKED: September 30, 2009  6:38 PM
UPDATED: October 8, 2009  2:44 PM

Answer Wiki:
have you looked at calling the agent via @command; eg @Command([ToolsRunMacro];"notify_acct_mgr")
Last Wiki Answer Submitted:  October 1, 2009  1:11 pm  by  Wolfen   395 pts.
All Answer Wiki Contributors:  Wolfen   395 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Couldn’t get that to work, but I ended up with this

function runAgent() {
self.location.href=’AgentName?OpenAgent’;
}

<input type=”button” value=”Button Text” class=”submit” onClick=”runAgent();”>

 120 pts.

 

If want to use formula:
@URLOpen(“/”+ @WebDbName+”MyAgent?OpenAgent&Var1=”+value+”&Var2=”+value2)
where “MyAgent” is the name of your agent and “&Var1=value” is a normal querystring, if needed.

 40 pts.