On Mar 27, 2014 8:26 PM, "DeHaynes" <ew1560(a)wayne.edu> wrote:
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.
documentReference.getLastSpaceReference().getName()
"last space reference" because we'd like to support nested spaces in the
future.
Hope this helps,
Marius
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Looking-for-help-with-groovy-tp7589782p75…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs