Project

General

Profile

Feature #2204 » PMDAST0002 - Rent - ReadOnly.txt

Tri Rizqiaty, 06/12/2023 11:16 AM

 
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);}
(1-1/3)