Kbase P76039: Dyn: How to enable/disable a cell in a dynamic browse?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/9/2004 |
|
Status: Unverified
GOAL:
Dyn: How to enable/disable a cell in a dynamic browse?
FACT(s) (Environment):
Dynamics 2.1A
FIX:
The following example disables the customer_name cell when the customer_code is greater than 50. The customer_name should be in the updatable fields list. The code has to be implemented in the an override of onValueChanged (beware, not valueChanged) of a browse super procedure.
PROCEDURE onValueChanged:
RUN SUPER.
IF INT(widgetValue("customer_code")) > 50 THEN disableWidget("customer_name").
ELSE enableWidget("customer_name").