Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CmdDelete.Enabled
Message
 
To
29/06/2004 10:05:53
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00918238
Message ID:
00919240
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform