example:
I want to disable BUTTON1 if the type of the record is "100"
Here are the steps you need to follow :
- Make the button AutoDeclared:
- Overload the method “Active” from the datasource methods.
- Make your condition.
For example in the method Active of your DataSource you can write this code
public int active()
{int ret;ret = super();
if(Dimensions.DimensionCode==SysDimension::Purpose){Button.enabled(true);} else{Button.enabled(false);}
return ret;}
Happy Daxing !

Aucun commentaire:
Enregistrer un commentaire