update : This now works fine under 8.5.1 Beta ( CD8 ) out of the box so the problems has gone away
OK, this should be trivial, what am I doing wrong ??
I can’t get the post save event to run an agent but I can run it via a button.
I have an Xpage here >> http://www.seancull.co.uk/Public/Examples/agenttest.nsf/simplexpage.xsp
which is very simple. It is bound to a form with a single field and has two buttons. There is a post save event which should run an agent which also creates a new agent log document. i.e. TWO documents should be created. The agent log document does not have a form name when displayed in the view.
New documents appear in the view.
When I press the button to runt he agent a new formless document ( i.e the agent log ) is created – great
When I save the document the back end agent does not run – i.e. no formless ( i.e. agent log ) document
I am doing something really stupid – what is it ?
some screenshots of the setup and the code is at the end
update – screen shot of button properties as mentioned by Graeme below – although there is a workaround I still don’t understand it the problem is me or xpages ?