Hi, I have a netwebform on which I would like to have a button that executes some code to delete a certificate file that has previously been uploaded and reset two of the record fields to reflect this. I have used the server-side code embed to do this and have been successful in deleting the file but I guess I just can't get it into my head how the form/session variables/table fields interact in the netwebform.
I have used winevent to delete the file based on a session variable that contains it's path and a session variable 'ceu:certificate' which holds the file name. I then need to clear the sting field ceu:certificate which I do by p_web.ssv('ceu:certificate','') and then I need to set the uploads flag to 0 which I do by p_web.ssv('ceu:uploads',0)
This does not work.
Can anyone tell me where I am going wrong?
Thanks.