Hi I use this code in Java for enable or disable some fields
if ( (this.getValue() == '20') || (this.getValue() == '24') )
{
NS.setEnabled(); //disabilita il controllo
CT.setDisabled(); //disabilita il controllo
IF.setDisabled(); //disabilita il controllo
}
});
and it works, I'm working on table named anag_automezzi and the number 20 and 24, is the ID of table anag_apparati. When i change the dropdown Java automatically sets enable or disable some fields like NS, CT and IF. Now I have to add a flag in the anag_appparati, and this flag must change some field set in java. how can I do this?
TABLE ANAG_apparati
id----text--------flag
20 example 1
21 example 0
22 example 0
23 example 0
24 example 1
For example in anag_automezzi if i set ID 20 in dropdown, the add page in anag_automezzi became "NS.Enabled", because in anag_apparati flag for id 20 is set 1. How can I intercept che value of flag directly from java?