I thought so also, so I looked into the JavascriptExtension and put the
following code into it.
document.observe("xwiki:actions:saved", function(event){
var doContinue = event.memo['continue'];
if (doContinue) {
alert('Saved It.');
}
});
The alert did not fire when I clicked the saved button. So I moved the
alert outside of the "If" block. It still did not fire.
While digging into this further, it occurred to me that I cannot just change
the value of some "DocumentName" field on the form because the document
document name is not on the form. So I would have to reach into the XWiki
object model somehow. I could not find an example of that or an API
listing. I decided to drop this researching the javascript solution because
what I really want to happen is going to occur at the server, not the
browser.
So I am not trying to figure out if there is another way to approach this.
I would love to know your thoughts on my logic. That could help me
determine which way is the correct way to accomplish this.
Thank you.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Change-Title-On-Save-tp7589667p7589731.ht…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.