View Issue Details

IDProjectCategoryView StatusLast Update
0033282LazarusPackagespublic2018-03-17 19:19
ReporterStephanoAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionProduct Build 
Target VersionFixed in Version1.9 (SVN) 
Summary0033282: TFPJSONReport loading and running a saved report
Description- Add to fpreport wiki sample code to load and run a TFPJSONreport from a report created and saved in the standalone designer.

- Create an event for TFPJSONReport to make creating the datasets easier

- Add to wiki some info (from bug 0033263):

1. The datasets are not considered part of the report.
2. The report streamer ignores any properties it does not know.

The report designer uses these facts to save the data definitions in a separate structure 'DesignData', which is not part of the actual report's JSON.

It is the task of the loading code to create the necessary datasets,
based on the definitions found in this data structure. See LoadDesignFromFile, there you see how this is done around line 1370
TagsNo tags attached.
Fixed in Revision57522
LazTarget-
Widgetset
Attached Files

Activities

Michael Van Canneyt

2018-03-17 17:49

administrator   ~0107206

Fixed.

Refactored out all the data handling, it is now part of fpReport and can be used without designer.

Stephano

2018-03-17 18:00

developer   ~0107207

fpreportdatajson.pp(92,36) Fatal: Can't find unit fphttpclient used by fpreportdatajson
Fatal: Compilation aborted

Michael Van Canneyt

2018-03-17 18:21

administrator   ~0107209

dependency on fcl-web was missing. Added in rev 38552.

Forgot to mention: Please also see the wiki for extra info. (main page, and usage page)

Issue History

Date Modified Username Field Change
2018-02-28 17:37 Stephano New Issue
2018-02-28 22:58 Michael Van Canneyt Assigned To => Michael Van Canneyt
2018-02-28 22:58 Michael Van Canneyt Status new => assigned
2018-03-17 17:49 Michael Van Canneyt Fixed in Revision => 57522
2018-03-17 17:49 Michael Van Canneyt Note Added: 0107206
2018-03-17 17:49 Michael Van Canneyt Status assigned => resolved
2018-03-17 17:49 Michael Van Canneyt Fixed in Version => 1.9 (SVN)
2018-03-17 17:49 Michael Van Canneyt Resolution open => fixed
2018-03-17 18:00 Stephano Note Added: 0107207
2018-03-17 18:00 Stephano Status resolved => assigned
2018-03-17 18:00 Stephano Resolution fixed => reopened
2018-03-17 18:21 Michael Van Canneyt Note Added: 0107209
2018-03-17 18:21 Michael Van Canneyt Status assigned => resolved
2018-03-17 18:21 Michael Van Canneyt Resolution reopened => fixed
2018-03-17 19:19 Stephano Status resolved => closed