-
ijbranch@outlook.com started the topic Filter when Loading data?? in the forum kbmMemTable 1 year, 3 months ago
Hi Team,
if the kbmMemTable has a filter set in the component, will it respect that filter during LoadFromDataSet?
i,e, if the source dataset has a boolean field called blocked, and the filter in the kbmmemtable is set to bolcked=Flase, and Filtered is enabled, what will it do with any records from the source that have blocked = true?
Regards &…[Read more] -
ijbranch@outlook.com replied to the topic Short form field name?? in the forum kbmMemTable 4 years ago
Hi Kim,
Given your comment above, I suspect I am not using kbmmemtable correctly. 🙁
In my datamodule (dmQ) I have the Database Tables, including the Company Table, it is an ElevateDB database, and only a kbmmemtable component (mtCompany), no stream format component.
In dmQ I have the following…[Read more]
-
ijbranch@outlook.com replied to the topic Short form field name?? in the forum kbmMemTable 4 years ago
Thanks Kim,
I have settled for using the field variables directly, defining them at design time.
The kbmmemtable component is in a Datamodule called dmQ.
Using the field variables directly in the datamodule works fine.
What doesn’t work is trying to access the field variables from the Main form..
i.e. sQuoteReportName :=…[Read more]
-
ijbranch@outlook.com replied to the topic Short form field name?? in the forum kbmMemTable 4 years, 1 month ago
OK. I thought I had it sorted.. 🙁
It all looks OK in the Datamodule (dmQ) where the above code is located.
But, in the mainform code it doesn’t like code like the following..
” sQuoteReportName := Trim(dmQ.mtCompanyCompanyInit.AsString) + ‘General Quote’;”
I have to make it..
“sQuoteReportName :=…[Read more]
-
ijbranch@outlook.com replied to the topic Short form field name?? in the forum kbmMemTable 4 years, 1 month ago
Hi Kim,
You did answer my question, I just didn’t read it right. 🙁
So, If the fields are predefined and I have this..
{code}
…
//
Open;
//
mtCompany.LoadFromDataSet(Company, [mtcpoStructure, mtcpoOnlyActiveFields, mtcpoProperties, mtcpoFieldIndex, mtcpoDontDisableIndexes, m…[Read more] -
ijbranch@outlook.com replied to the topic Short form field name?? in the forum kbmMemTable 4 years, 1 month ago
Tks Kim.
If the loaded structure/definitions are exactly the same as the pre-defined fields, will that still invalidate?
Ian
-
ijbranch@outlook.com started the topic Short form field name?? in the forum kbmMemTable 4 years, 1 month ago
Hi Guys,
I can access a field in the normal way – kbmTable.FieldByName(‘SomeField’).AsString.
Having defined the field ‘SomeField’ in the kbmTable, is there any way to use the short form?? – kmbTableSomeField.AsString.
If not would it be possible to implement?
Regards & TIA,
Ian
