Hi all,
I'm trying to create a flexible document using datamodel of another flexible document. Both have the same type_name.
I use a code like :
firstDocDataModel = firstDocProxy.getDataModel(firstDocProxy)
SecondDocProxy=createCPSDocument_cb('type_name',firstDocDataModel)

But unfortunatly this doesn't copy me flexible fields in the second document. I think this is becoz their schemas and layouts were not copied as for flexible docs, schemas and layouts are created in the document proxy.

Is there a way to create such a document using the datamodel of another? Thanks by advance!


Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici.
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to