Still investigating the issue. Still have plenty of memory for Eclipse. Sitting at 150M/462M before any further memory requests. New start.
Edit
This line:
viewer = plugins.VelocityReport.previewToComponent(elements.bean_panel, template, getReportContext(), viewerSaveCallback);
Looks like the last argument or it isn’t global… Don’t know yet.
When selecting the ‘previewToComponent’ in the component.js script editor, on its fetch of information for this function, eclipse returns ‘Requesting Script AST from selection’ has encountered a problem. An internal error occurred during: “Requesting Script AST from selection”
Commenting out just this last took care of the General JavaScript error:
viewer = plugins.VelocityReport.previewToComponent(elements.bean_panel, template, getReportContext(), viewerSaveCallback);
Tried a global instead of a local. It looks like eclipse isn’t aware of the last parameter for callback.
Posted the error to ServoyForge. Apparently the sample Application is not updated to the latest Servoy and Velocity versions.
The sample solution hasn’t really been updated to latest version of Velocity and Servoy… so it’s possible there are bugs or incompatible things in there. What’s for sure is that the previewToComponent() method is only working in Smart Client.
My concern is that I needed to run the sample without errors for the functionality to be present in mine.