[daisy] Programmatically create a link (VariantKey)
Robert Cecil
rob.cecil at gmail.com
Mon Dec 4 14:58:06 CST 2006
Hi,
In one of my flow scripts I am calling into the Repository to connect
two instances of documents. I have mapped a field in one of my doc
types as a Link to the second doc type via a query (documentType =
second type). Programmatically, I am creating an instance of both,
saving the second (the target of the link), and calling a setField()
method on the first, passing in the instance variable of the second
as a parameter. When I run this form I get:
Expected was a link (org.outerj.daisy.repository.VariantKey) but got
a org.outerj.daisy.repository.commonimpl.DocumentImpl
How do I 'wrap' the document instance with a Link? I could not find a
createLink(Document doc), createVariantKey(), or createLink() method
in the API.
Thanks
Rob Cecil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20061204/54f22534/attachment.htm
More information about the daisy
mailing list