Thursday, September 4, 2014

RUN FOR THE HILLS! Christina is trying to write code!

Well, not really.   But I did borrow the following post from the venerable David Musgrave, in order to set a trigger to default the project accounting Change Order Entry window to make changes to the Forecast budget (rather than the default of Baseline budget).

So, if you are familiar with Project Accounting, when you access Cards-Project-Change Order Entry it defaults to Track Changes To: Baseline.  Well, this is a bummer since most folks want to track changes to Forecast and preserve the Baseline as the original budget.  So user error can cause the change orders to be applied to the wrong budget.

So to set the field to default to Forecast instead, I used the Support Debugger option in David's awesome post, and used the following script...

out boolean OUT_Condition;
OUT_Condition = false;
if isopen(form PA_Change_Order_Entry) then
 OUT_Condition = true;
'PA GB Track Changes' of window 'PA_Change_Order_Entry' of form
'PA_Change_Order_Entry' = 1;
end if;

Pretty cool if you ask me!

Christina Phillips is a Microsoft Certified Trainer and Dynamics GP Certified Professional. She is a senior managing consultant with BKD Technologies, providing training, support, and project management services to new and existing Microsoft Dynamics customers. This blog represents her views only, not those of her employer.

No comments: