#1 2020-04-16 18:48:09

lagodny
Member
Registered: 2015-01-28
Posts: 50

Need access to fRecordReferences

I need to find all the references to the record, just like the TSQLRestServer.AfterDeleteForceCoherency method does. All the information I need is stored in fRecordReferences, but I can’t get to it.

  /// this array contain all TRecordReference and TSQLRecord properties
    // existing in the database model
    // - used in TSQLRestServer.Delete() to enforce relational database coherency
    // after deletion of a record: all other records pointing to it will be
    // reset to 0 or deleted (if CascadeDelete is true) by
    // TSQLRestServer.AfterDeleteForceCoherency
    fRecordReferences: array of TSQLModelRecordReference;

Can I access this array?

Offline

#2 2020-04-26 10:21:29

lagodny
Member
Registered: 2015-01-28
Posts: 50

Re: Need access to fRecordReferences

Three lines of code will make me the happiest person smile
@ab, please

  TSQLModelRecordReferenceArray = array of TSQLModelRecordReference;

...

    fRecordReferences: TSQLModelRecordReferenceArray;
  public
    property RecordReferences: TSQLModelRecordReferenceArray read fRecordReferences;

Offline

#3 2020-04-26 16:09:06

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,669
Website

Re: Need access to fRecordReferences

Good idea.

Please check https://synopse.info/fossil/info/dc67ded7cb

Happy to make you happy. big_smile

Offline

#4 2020-04-26 19:26:59

lagodny
Member
Registered: 2015-01-28
Posts: 50

Re: Need access to fRecordReferences

Thanks @ab, you are the best!

Offline

Board footer

Powered by FluxBB