Feature #2204 » PMDAST0002 - Rent - ReadOnly.txt
1 |
var Rent = val.getValue(); console.log(Rent); if( Rent == "1") { var RentCost = Ext.ComponentQuery.query('[name=RentCost][nameTable=PMDAST0002]')[0]; RentCost.setReadOnly(false); var RentDuration = Ext.ComponentQuery.query('[name=RentDuration][nameTable=PMDAST0002]')[0]; RentDuration.setReadOnly(false);} else if( Rent == "0") { var RentCost = Ext.ComponentQuery.query('[name=RentCost][nameTable=PMDAST0002]')[0]; RentCost.setReadOnly(true); var RentDuration = Ext.ComponentQuery.query('[name=RentDuration][nameTable=PMDAST0002]')[0]; RentDuration.setReadOnly(true);} |
---|