Why if I set PgTable.RefreshOptions to true I got an:
Exception
Invalid parameters specified
After a PgTable.Post ???
What I should configure/set to let this option runs fine ?
Greetings.
TPgTable.RefreshOptions (roAfterInsert)
Sorry Plash, I forgot to clarify this.
My structrure was:
TableClients
MasterDetail
TableInvoices
MasterDetail
TableInvoiceLines
I was appending (on a transaction):
TableInvoices and (one or more lines) TableInvoiceLines.
But TableClients, in spite of was changing to the right client on application (TableInvoices.Append), was being pointed to old selected TableClients (clientId).
All was fine until post TableInvoices was executed. Then, TableInvoices selected record was returning to the set of TableClients (selected client).
Summary:
There was a bug.
But the error message showed by the refresh was not very clear. Perhaps an extended error message would be better. Ie: "record cannot be found (or refreshed) with this keys: .....,....,....,.....".
Thanks.
My structrure was:
TableClients
MasterDetail
TableInvoices
MasterDetail
TableInvoiceLines
I was appending (on a transaction):
TableInvoices and (one or more lines) TableInvoiceLines.
But TableClients, in spite of was changing to the right client on application (TableInvoices.Append), was being pointed to old selected TableClients (clientId).
All was fine until post TableInvoices was executed. Then, TableInvoices selected record was returning to the set of TableClients (selected client).
Summary:
There was a bug.
But the error message showed by the refresh was not very clear. Perhaps an extended error message would be better. Ie: "record cannot be found (or refreshed) with this keys: .....,....,....,.....".
Thanks.