View Issue Details

IDProjectCategoryView StatusLast Update
0033259LazarusPackagespublic2018-02-28 14:39
ReporterStephanoAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product VersionProduct Build 
Target VersionFixed in Version1.9 (SVN) 
Summary0033259: FPReport designer (feature request): Implement formats in TFPReportMemo
DescriptionFields/variables should have an option to have a format applied to them.
As far as I gather, floats and integers are currently not formatted, and dates have a fixed yyyy-mm-dd format.
This is actually more than a feature request.
TagsNo tags attached.
Fixed in Revision57417
LazTarget-
Widgetset
Attached Files

Activities

Michael Van Canneyt

2018-02-27 21:03

administrator   ~0106704

This will not be implemented. You must use the formatting functions yourself in the memo text.

Stephano

2018-02-27 21:11

developer   ~0106706

That's exactly what I meant...but how? There is no documentation nor examples.

Michael Van Canneyt

2018-02-27 21:53

administrator   ~0106708

Well, the usual functions from the sysutils unit are available. You can see this in the demos in FPC.

But you are right. I will add a 3rd tab next to data/variables with the available functions. I planned to do this anyway.

It's maybe an idea to pop up a dialog that asks if you want to apply formatting to a field when you drag & drop a field from the data or variable tabs.

The memo editor should also get some kind of formula editing capabilities.

if you feel like taking on any of these tasks to speed up development, feel free ;)

Stephano

2018-02-27 22:27

developer   ~0106709

Last edited: 2018-02-27 22:31

View 3 revisions

Got it finally!
Examples for future reference:
 [FormatFloat('#,##0.00', Data1.SALARY)]
 [FormatDateTime('DD-MM-YYYY', Data1.HIRE_DATE)]

Any assistance the designer can offer especially for formatting would be invaluable.

Michael Van Canneyt

2018-02-28 14:25

administrator   ~0106752

I added a list of functions.

A function from the list of functions can also be dragged&dropped, after which the memo editor will pop up automatically. The memo will have the function name plus placeholders for the arguments.

Stephano

2018-02-28 14:39

developer   ~0106754

Excellent!

Issue History

Date Modified Username Field Change
2018-02-27 21:02 Stephano New Issue
2018-02-27 21:03 Michael Van Canneyt Note Added: 0106704
2018-02-27 21:03 Michael Van Canneyt Status new => resolved
2018-02-27 21:03 Michael Van Canneyt Resolution open => won't fix
2018-02-27 21:03 Michael Van Canneyt Assigned To => Michael Van Canneyt
2018-02-27 21:11 Stephano Note Added: 0106706
2018-02-27 21:12 Stephano Status resolved => feedback
2018-02-27 21:53 Michael Van Canneyt Note Added: 0106708
2018-02-27 22:27 Stephano Note Added: 0106709
2018-02-27 22:27 Stephano Status feedback => assigned
2018-02-27 22:31 Stephano Note Edited: 0106709 View Revisions
2018-02-27 22:31 Stephano Note Edited: 0106709 View Revisions
2018-02-28 14:25 Michael Van Canneyt Fixed in Revision => 57417
2018-02-28 14:25 Michael Van Canneyt Note Added: 0106752
2018-02-28 14:25 Michael Van Canneyt Status assigned => resolved
2018-02-28 14:25 Michael Van Canneyt Fixed in Version => 1.9 (SVN)
2018-02-28 14:25 Michael Van Canneyt Resolution won't fix => fixed
2018-02-28 14:39 Stephano Note Added: 0106754
2018-02-28 14:39 Stephano Status resolved => closed