EPMFAQ Forums - Connect with the EPM Community  

Go Back   EPMFAQ Forums - Connect with the EPM Community > Microsoft Project Forums > Project Server 2007


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-2009, 01:36 AM
Junior Member
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to cancel automatic approval of timesheet from event handler?

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








Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 06-18-2011, 10:51 PM
Junior Member
 
Join Date: Jun 2011
Location: Greenland
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to attinajineway
Default This post is beyond awesome

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
project server 2007, timesheet event handler

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -4. The time now is 10:19 PM.


Powered by: vBulletin®
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24