If all data forms are based on a class, add the method there
Then the toolbar can just call _screen.ActiveForm.IsDeleteAllowed()
The test for BusinessObject and AllowDelete, etc can be done in the form's IsDeleteAllowed() method
>I think this toolbar is part of all data forms and the method that is being called is from the delete toolbar
>
>
>>Dorris,
>>
>>Can you move the method that defines whether delete is allowed to the form ?
>>
>>If the toolbar calls a method of the form, it will be executed in the form's datasession. Hence there's no need to switch datasessions back and forth in the toolbar
>>
Gregory