I'm trying to generate a model with the method below from the ModelGeneration class:
generateModel ( Model[] models, String sName, int nModelType, Group group, ModelGenerationOptions options )
It fails because my "models" parameter is a standard javascript array, rather than a com.aris.modeling.common.serverremoteapi.cscommon.webreportbase.reportObjects.IModel[] interface. (see attached screenshot for error message)
How can I create a proper Model[] array of my own so that this method will work? Using ArisData.getSelectedModels() is not enough as I need to be able to select the right models on runtime.
Didier Nowak on
Hello Mattias,
You can use this function to create a typed array:
Cheers,
Didier