cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add new Object to generic MegaCollection using API

RalfMieke
Super Contributor

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.

1 Reply

jhorber
MEGA
MEGA

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