Thank you all VERY much.  I got it working.  However, you said 

>>           def FullDocumentName = source.getSpaceName() + "." + 
>>  documentName; 
>
> It's recommended to use DocumentReference instead: 
> def newDocRef = new DocumentReference(documentName, 
> source.getDocumentReference().getLastSpaceReference()) 

I am not sure what you are telling me.  In this step, I am getting the space
name for the current document and combining it with the name the user
specified in the field.

I looked up "DocumentReference" in the Wiki API and it took me here. 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Model+Module

I don't see how to get the space name from a DocumentReference. 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Looking-for-help-with-groovy-tp7589782p7589850.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to