View Issue Details

IDProjectCategoryView StatusLast Update
0005512JEDI VCL00 JVCL Componentspublic2012-09-10 14:15
ReporterwindsoftAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.46 
Summary0005512: TJVDBCalcEdit Property DecimalPlaces AlwaysShown Incompatible with DefaultDisplayFormat
DescriptionThe Property DefaultDisplayFormat of component is ",0.##"
but when the property DecimalPlacesAlwaysShown is changed, the DisplayFormat is changed to "0.## 'and '0.00' without a thousands separator.
This has caused problems when editing fields that already have values?? and the DataSet is not in Editing Mode.
TagsNo tags attached.

Relationships

related to 0005916 resolvedobones Correction of 0005512 create new "bug" 

Activities

windsoft

2011-03-10 22:06

reporter   ~0018442

The Solucion is change JVBaseEdits.pas

function TJvCustomNumEdit.GetEditFormat:String;
begin
  // Alterado WindSoft
  // Result := '0'; <<<--- Only this line changed.
  Result := ',0';
  //
  if FDecimalPlaces > 0 then
    if FDecimalPlacesAlwaysShown then
       Result := Result + '.' + MakeStr('0', FDecimalPlaces)
    else
       Result := Result + '.' + MakeStr('#', FDecimalPlaces);
end;

obones

2011-06-07 17:45

administrator   ~0018607

Please provide the zipped sources of a sample application showing this

2011-08-07 22:06

 

JVExample.zip (8,741 bytes)

windsoft

2011-08-07 22:07

reporter   ~0018852

The example is attached.

obones

2012-02-23 11:18

administrator   ~0019501

Thank you for the demo and the suggestion, this is now fixed in SVN

Issue History

Date Modified Username Field Change
2011-03-10 22:03 windsoft New Issue
2011-03-10 22:06 windsoft Note Added: 0018442
2011-06-07 17:45 obones Note Added: 0018607
2011-06-07 17:45 obones Status new => feedback
2011-08-07 22:06 windsoft File Added: JVExample.zip
2011-08-07 22:07 windsoft Note Added: 0018852
2011-09-21 11:59 obones Status feedback => acknowledged
2012-02-23 11:16 obones Status acknowledged => confirmed
2012-02-23 11:18 obones Note Added: 0019501
2012-02-23 11:18 obones Status confirmed => resolved
2012-02-23 11:18 obones Fixed in Version => Daily / SVN
2012-02-23 11:18 obones Resolution open => fixed
2012-02-23 11:18 obones Assigned To => obones
2012-06-27 13:10 Arioch Relationship added related to 0005916
2012-09-10 14:15 obones Fixed in Version Daily / SVN => 3.46