cancel
Showing results for 
Search instead for 
Did you mean: 

How to add new Object to generic MegaCollection using API

Occasional Contributor

How to add new Object to generic MegaCollection using API

We are trying to dynamically create the structure of a Book using Java-API.

When trying to add a new Part of the Book using the Collection “Book Part Element” and MegaCollection#add(String name), it doesn’t work complaining about adding to a generic Collection.

How can we tell the API to add a new Object of type “Book Part” to this collection? When using the Object explorer and clicking “new”, a Dialog appears to allow choice of the MetaClass.

Tags (2)
1 Reply
MEGA

Re: How to add new Object to generic MegaCollection using API

Hello

 

In a certain extend, it is possible to use API script to manage the content of a book

 

See in the Knowledge Base

http://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=501D00000012jSpIAI

Jerome