![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Hi, I am doing some custom validation in the timesheet OnSubmitting event handler and cancelling the submission (e.Cancel=True) if its not valid. Usually, when the resource and timesheet manager are the same person, the timesheet gets approved automatically on submission, with the message "System generated automatic approval" Now, the problem that I am facing is, When the Resource and Resource's Timesheet Manager is the same, when timesheet submission is cancelled from the OnSubmitting eventhandler, the status of timesheet becomes, "Error" and in the queue, there occurs the following job. Job Type:Timesheet Review Job State :Failed And Blocking Correlation I believe it is because the system is trying to auto approve the timesheet. Any idea how we can cancel the auto approval of timesheet from the "OnSubmitting" eventhandler of timesheet. I want to cancel the auto approval only if the timesheet is not valid according to the custom validator. Any thought on solving this will be helpful. Thanks, Sindia |
| Sponsored links |
| |
| |||
| Hello. lol i think there ALL right Antec 1200 Full-Tower Case/Thermaltake 750-Watt PS/ASUS RAMPAGE FORMULA 775 Intel X48 Mobo/Seagate Barracuda 250GB 32MB Cache Sata HDD(primary)/Seagate Barracude 160GB Sata(slave)/NVIDIA GeForce 7950 GX2,1 GB of GDDR3 Memory /CORSAIR DOMINATOR PC8500 5-5-5-15 at 1066MHz (2x2GB) DDR2/Intel Core 2 Quad Q9450 2.66GHz 12MB L2 Cache,OC(ed)to 3.4GHz on air/ Zalman 9700/3-Plextor PX-810SA Sata Drives/Samsung 2493HM 24" LCD Monitior 1920x1200 resolution,5ms respone time asp web host
__________________ mpeg converter |
![]() |
| Tags |
| project server 2007, timesheet event handler |
| Thread Tools | |
| Display Modes | |
|
|