View Issue Details

IDProjectCategoryView StatusLast Update
0005613JEDI VCL00 JVCL Componentspublic2011-07-10 14:05
ReporterYEisenAssigned Tojfudickar 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0005613: TJvCustomAppStorage.WritePersistent does not pass IgnoreProperties to Recursive calls
DescriptionWhen setting IgnoreProperties for nested PropNames they are ignored since
TJvCustomAppStorage.WritePersistent does not pass IgnoreProperties to Recursive calls.


if (IgnoreProperties = nil) or (IgnoreProperties.IndexOf(PropName) = -1) then
  WriteProperty(PropPath, PersObj, PropName, Recursive);

should be
  WriteProperty(PropPath, PersObj, PropName, Recursive, IgnoreProperties);
  and passed back from WriteProperty.
TagsNo tags attached.

Activities

jfudickar

2011-07-04 22:39

developer   ~0018811

Did you have a sample showing the problem?

Regards
Jens

YEisen

2011-07-04 23:51

reporter   ~0018812

TableView1 points to a TcxGridDBTableView (DevExpress QuantumGrid), since DataSource is a Property of TableView1.DataController (class TcxGridDBDataController) all DataSource properties are included in the xml file generated.

HTH
 
procedure TForm1.Button1Click(Sender: TObject);
var
  AStringList: TStringList;
begin
  JvAppXMLFileStorage1.Xml.XMLData := '';
  AStringList := TStringList.Create;
  try
    AStringList.Add('DataSource');
    AStringList.Add('OptionsData');
    AStringList.Add('LookupItems');
    JvAppXMLFileStorage1.WritePersistent('TableView', TableView1, True, AStringList);
    JvAppXMLFileStorage1.Xml.SaveToFile('MyXmlTest.xml');
  finally
    AStringList.Free;
  end;
end;

jfudickar

2011-07-10 14:05

developer   ~0018818

Changed in SVN

Issue History

Date Modified Username Field Change
2011-07-04 18:57 YEisen New Issue
2011-07-04 22:39 jfudickar Note Added: 0018811
2011-07-04 23:51 YEisen Note Added: 0018812
2011-07-05 00:08 jfudickar Assigned To => jfudickar
2011-07-10 14:05 jfudickar Note Added: 0018818
2011-07-10 14:05 jfudickar Status new => resolved
2011-07-10 14:05 jfudickar Resolution open => fixed