Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Patrick,
>I have an formset that contains a toolbar. I need to disable the toolbar when the formset is not active from either a menu or active form. _screen.activeform and the typical formset.toolbar syntax with .setall("enabled",.F.,"commandbutton") does not seem to work properly.
Try putting code in every one of your toolbar button's refresh method to disable its self if the active form isn't one of the two you expect. Make sure to refresh the toolbar whenever you activate or deativate your forms. Honsetly, I don't feel that formsets are very valuable, and that you should have a custom Form Manager, but thats easy for me to say because I didn't create my FormManager (nor know how it works!)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement