Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CmdDelete.Enabled
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
CmdDelete.Enabled
Divers
Thread ID:
00918238
Message ID:
00918238
Vues:
31
Hi, I have a Maintenance Form that is not used to maintain a Database. Let me try to explain. The Form is used only for browsing the records. The end user can only view the records, but cannot Add, Delete or Change. I set the Enabled property of cmdNew and cmdDelete to .F., but cmdDelete is always being Enabled.
In cBizObjMaintenanceForm.Activate Method there is:
IF ThisForm.oBizObj = ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj
	This.SetGridEnabledStatus(!ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj.lNoRecords)
ENDIF
And in SetGridEnabledStatus:
LPARAMETERS tlEnabled

This.pgfBizObj.Page1.cmdDelete.Enabled = tlEnabled
This.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.Enabled = tlEnabled
That´s why cmdDelete is always Enabled, because there are records in cGridList1.
What should I do?

Regards,
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform