P
Piotr Ryszkiewicz
Guest
Yes, I know it's my job to handle and validate the the data
What I didn't understand is, why validating method did not fire. Currently it looks like this: ============================================= METHOD PRIVATE VOID tvdlg_Validating( INPUT sender AS System.Object, INPUT e AS System.ComponentModel.CancelEventArgs ): MESSAGE "Inside validating method" VIEW-AS ALERT-BOX. /* Validation logic goes here */ RETURN. /*.......*/ THIS-OBJECT:Validating:Subscribe(THIS-OBJECT:tvdlg_Validating). ============================================= The code above was generated by PDS. And then in the click trigger of OK button I have: THIS-OBJECT:Validate(). The above did not cause tvdlg_Validating to run. But I think I start to understand. "Verifies the value of the control losing focus " The form as such does not have the focus - only it's widgets have, so there is no meaning to have validating event on form level ? Was my mistake that in PDS I clicked on Validating event and created method for that ? Do I understand it correctly ?
Continue reading...
Continue reading...