Project

General

Profile

Defect #1332

SampleSolution shows NullPointerException Problem related to previewToComponent, viewerSaveCallback argument

Added by Joe Collins almost 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
06/06/2018
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Velocity Reports has been installed as per the servoyforge.net instructions.

The sample VelocityReport solution has been installed.

Under Problems, the only error is "NullPointerException: null", both in 7.4.8 and 8.2.3.

Component component_test.js
Path /VelocityReport/forms
Location Unknown
Type JavaScript Problem

Report folder is setup as well as the URL under Plugins on Developer.

Commenting out this line in the sample solution removed the error:

if (useCallback == 0) {
viewer = plugins.VelocityReport.previewToComponent(elements.bean_panel, template, getReportContext());
} else {
//viewer = plugins.VelocityReport.previewToComponent(elements.bean_panel, template, getReportContext(), viewerSaveCallback); <---- This line. Callback argument creates issue.
}

Reports can be created from a modified template file.

History

#1

Updated by Patrick Talbot almost 6 years ago

  • Status changed from New to Feedback
  • Assignee set to Joe Collins

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.

#2

Updated by Patrick Talbot about 5 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF