Master/Detail BeforeScroll Posting DetailDataSets

aleithner

Member
Hi,
does anyone have an idea of what went wrong?

I've a MasterDataSet(readonly) and a few DetailDataSets each of them modifiable.
I want to ask the user, who did some modifications on the detail records, if to post or not when leaving the master record (next, previous ...).
And not to ask, if the user explicitly presses something like a save or cancel button.
Therefore the DetailDataSet.OnBeforePostEvent seames to be the wrong choice.
I thought the MasterDatSet.OnBeforeScrollEvent should be the right solution.
Wrong - the DetailDataSet.Post obviously triggered implicitly by the MasterDatSet.Next before the MasterDatSet.OnBeforeScrollEvent is triggered.

Any solutions, hints, suggestions??

regards,
Anton
 
The details are posted before the master scrolls. That's why your approach does not work. Perhaps you can use an event of a control (e.g. DBNavigator.BeforeAction if you are using that)?

------------------
Marco Kalter
Allround Automations
 
Is it Borland-VCL behaviour or DOA specific?

The suggested navigator is not a solution to my problem since it's also possible to navigate via grid.

If you have any other idea, please let me know.

Thanks,
Toni
 
Back
Top