Database Transactions in Object Save
Hi Mike,
If a business logic object is created and saved in the save of a Jiwa collection item and there is a transaction in progress will everything be covered by the same transaction i.e. if any part of the save fails then the business logic save will get rolled back as well?
Thanks.
Further to this there may be a thread safety issue with the Sales Order Business Logic Object because if I try to in the save of a Jiwa Collection Item try and create a credit note the following line throws an exception about indexes and collections and values being out of bounds as soon as there is more than one object in the collection, I've gotten around the problem by use of a for loop and starting my own transaction.
If a business logic object is created and saved in the save of a Jiwa collection item and there is a transaction in progress will everything be covered by the same transaction i.e. if any part of the save fails then the business logic save will get rolled back as well?
Thanks.
Further to this there may be a thread safety issue with the Sales Order Business Logic Object because if I try to in the save of a Jiwa Collection Item try and create a credit note the following line throws an exception about indexes and collections and values being out of bounds as soon as there is more than one object in the collection, I've gotten around the problem by use of a for loop and starting my own transaction.
- Code: Select all
fullorder.CreateNew(JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder.NewSalesOrderTypes.e_NewSalesOrderCreditNote, _Debtor.DebtorID, true, "", "", " ", this.Manager.CurrentLogicalWarehouse.IN_LogicalID);