As Uwe Raabe says. Manually, or in previous version, there is a Resource property with a sub property which is a file name and an option to activate. Not sure about the property names, but it is not intuitive... which is why we aded the direct feature.
Uwe Raabe Thanks, found it there, but this was in XE5 (I should have been more specific). Marco Cantù thanks for the pointer. I found the PersistentFileName property under ResourceOptions. Haven't tried it yet, but guess you just set the Active property to True.
ok, tried that - I retrieved the data from a database and saved to file. Then in design time I set the filename and tried to set active and got
"[FireDAC][Comp][DS]-206. Cannot open dataset [TimeLogTbl]. A DataTable or a DataView must be supplied. Hint: if that is TFDMemTable, use CreateDataSet or CloneCursor to open dataset."
Any ideas? I can't see a CreateDataset on the popup menu
If you right-click on the component, you should see something like "load from file" (checked in XE7).
ReplyDeleteAs Uwe Raabe says. Manually, or in previous version, there is a Resource property with a sub property which is a file name and an option to activate. Not sure about the property names, but it is not intuitive... which is why we aded the direct feature.
ReplyDeleteUwe Raabe Thanks, found it there, but this was in XE5 (I should have been more specific). Marco Cantù thanks for the pointer. I found the PersistentFileName property under ResourceOptions. Haven't tried it yet, but guess you just set the Active property to True.
ReplyDeleteRussell Weetch Yes, that's correct.
ReplyDeleteok, tried that - I retrieved the data from a database and saved to file. Then in design time I set the filename and tried to set active and got
ReplyDelete"[FireDAC][Comp][DS]-206. Cannot open dataset [TimeLogTbl]. A DataTable or a DataView must be supplied. Hint: if that is TFDMemTable, use CreateDataSet or CloneCursor to open dataset."
Any ideas? I can't see a CreateDataset on the popup menu
Ok, sorted. Loaded the form in XE7, did what I needed there :-)
ReplyDelete