Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Dataset states
Mon, May 25 2020 4:38 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

Tim

Let's say I have a stock item LNK/318 which is a link for my D10 caterpillar dozer.

I wish to record the purchase and sale of one of these items in a grid that has an associated DB navigator toolbar.

1. Click on + to insert the purchase of the item
2. Click on the tick to save the item
3. Click on + to insert the sale of the item
4. Click on the OK button to commit the changes.

The OK click procedure first performs a CheckBrowseMode method.

With EWB2, before the CheckBrowseMode , the state of the dataset is dsInsert so the sale is saved.
With EWB3, before the CheckBrowseMode, the state of the dataset is dsBrowse which means that only the purchase is saved and not the sale.

Richard
Thu, May 28 2020 2:34 AMPermanent Link

Richard Harding

Wise Nutrition Coaching

Tim

Forget about this one. This was to do with the errors resulting from inserting and updating multiple items in the one transaction and the way I was handling the commit and rollback errors.

Richard
Image