Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>If I have a form set and want to add a new method to a form in the form set, the method is added to the formset and not to the form.
>
>Any suggestions ?
>
>Also is there a way of knowing which tables are in the dataenvironment of a particular form at runtime? I am using the default data session. I am trying to create a class for a generic closebutton which will use tablerevert function on all tables in a form when a form is released
>
>Thanks in advance
>
>Alhad
You might try building a transaction class that will handle your table reverts. I built such an animal to do OLTP. Each form performs the
.AddObject("oTrans","dbtransaction") which adds it to the form. One of the properties is an array of all the aliases that the form is responsible for. Various buttons based on user actions dictate whether it tries to
to a table update or a revert. It also has it's own error handler which can trap those unique to updating a table. When the form is released, the revert method is fired by the THISFORM.oTrans.RevertDB() method making sure that all aliases are reverted.
Steve Despres
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