View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005558 | JEDI VCL | 00 JVCL Components | public | 2011-04-27 16:46 | 2011-09-21 11:39 |
Reporter | matheusd | Assigned To | obones | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | suspended | ||
Product Version | 3.40 | ||||
Target Version | Fixed in Version | ||||
Summary | 0005558: fix for TJvCsvDataSet add fields from csv | ||||
Description | When the definition of a csv dataset is changed (with field additions), when loading an older version of the csv file you cannot modify the value of the new fields (the component raises an Exception with the message 'GetCsvRowItemData: Column index values are corrupt.'). To fix this message, when loading a csv file new fields must be added to all records. This is already 99% implemented in the current (3.40) version of the component, but it was missing the actual appending of the new fields to a record during parsing. This is done in jvCsvData.pas, in the method procedure TJvCustomCsvDataSet.InternalOpen() around line 3770 change {$IFDEF UNICODE} if FUtf8Detected then ProcessCsvDataRow(Utf8ToAnsi(CsvLine), Counter) else {$ENDIF UNICODE} ProcessCsvDataRow(string(AnsiString(CsvLine)), Counter); to {$IFDEF UNICODE} if FUtf8Detected then ProcessCsvDataRow(Utf8ToAnsi(CsvLine+AppendStr), Counter) else {$ENDIF UNICODE} ProcessCsvDataRow(string(AnsiString(CsvLine+AppendStr)), Counter); | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-04-27 16:46 | matheusd | New Issue | |
2011-06-07 17:55 | obones | Note Added: 0018627 | |
2011-06-07 17:55 | obones | Status | new => feedback |
2011-09-21 11:39 | obones | Note Added: 0018909 | |
2011-09-21 11:39 | obones | Status | feedback => resolved |
2011-09-21 11:39 | obones | Resolution | open => suspended |
2011-09-21 11:39 | obones | Assigned To | => obones |