ijbranch@outlook.com

  • 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]

  • 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]

  • 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]

  • 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]

  • 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]

  • Tks Kim.

    If the loaded structure/definitions are exactly the same as the pre-defined fields, will that still invalidate?

    Ian

  • 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