Hi
I'm trying to execute another script on "Save" event. I've created a
notification class (based on xwiki example
http://dev.xwiki.org/xwiki/bin/view/Drafts/GroovyNotifications) and
pointed to it in "Administration > Programming > Notification pages".
This script gets called every time which is fine and when I try to
display name of a document that is being saved (doc.fullName) all works
well. document name it works fine but when I try to display one of the
fieldnames doc.display('Summary') I get
groovy.lang.MissingMethodException: No signature of method
com.xpn.xwiki.doc.XWikiDocument.display() is applicable for argument
types: (java.lang.String) values: {"Summary"}
I tried
def tmpDoc = context.getWiki().getDocument(doc.fullName, context);
But again fullName is OK but display('Summary') isn't
Am I missing something in my syntax? How do I make document values
available in my Notification class?
Ajdin B.
Coventry University
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the addressee only and may
contain information that is confidential or privileged. Unauthorised use is strictly
prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise
use this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this e-mail are those of the author and do not
necessarily represent those of Coventry University.