hi pals
i got simple form (single record), many records in it, and mysql db
on insert or on update (when one field is equal to 1 for example) i want to to display a control application
sc_redir(targeted_control_app);
problem is if i put it OnAfterUpdate it does redirect ok, but the record is not saved actually in the database, seems like redirecting (even if conditional like field=1 or x that is fine) but database does NOT gets the new updated values!
code is simple as this
sc_redir(targeted_control_app);
i tried OnAfterUpdate and also tried OnAfterInsert
am i missing something here? i know it was working before, OnAfterUpdate was updating the record and then redirecting the user to the other application
now, if i remove that code, it does update the db with that small stupid message “Data Modified” without issues, but the form doesn’t redirect to the other app as i want to do
any idea?
One more thing please, can i add confirmation message so before user clicks “update record” something like “this will update and redirect you to previous screen, are you sure?” yes no…
I was reading in macros and found out that this confirmation thing
sc_confirm (“Do you really wish to execute this action??”);
but it is written that works onClick, didn’t know how or where or with which event i should use it