Hello,
I have the following checkbox inside a web page...
<!-- RpFormInput TYPE=checkbox NAME=chkBatchPrintMonitor ID=chkBatchPrintMonitor RpGetType=Function RpSetType=Function RpGetPtr=getPrintMonitor RpSetPtr=setPrintMonitor -->
<input type="checkbox" id="chkBatchPrintMonitor" name="chkBatchPrintMonitor">Monitor stampa</input>
<!-- RpEnd -->
and the following code inside _v.c file :
Boolean printMonitor = False;
extern Boolean getPrintMonitor(void);
extern Boolean getPrintMonitor(void) {
return printMonitor;
}
extern void setPrintMonitor(Boolean theValue);
extern void setPrintMonitor(Boolean theValue) {
printMonitor = theValue;
return;
}
When I check the checkbox all works fine, because the setPrintMonitor function is executed and after checking the printMonitor variable becomes True. If I uncheck the checkbox, the setPrintMonitor isn't executed with theValue=false, so the printMonitor variable is still True and not is set to false.
I have read the documentation and that the RomPager executes a reset of all the checkbox (because HTML protocol send only checkbox checked inside a form) and the call set only on the checkbox checked.
How can I solve the problem with unchecked checkbox ?
Best regards,
Paolo.