Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CmdDelete.Enabled
Message
 
À
29/06/2004 10:05:53
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00918238
Message ID:
00919240
Vues:
13
How?

Regards,

>>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?
>
>One really strange way around it, if you're using application security, give it a security ID that'll never be used, like -1.
>
>Chris.
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform