If you've ever needed to modify the TimeCard List in the Dynamics found on YourBusinessPortalName/Project/Project Center Pages/Time.aspx. You may have gone looking for the pages behind the Page Viewer in SharePoint, but By default they are located in the following folder: "C:\Program Files\Microsoft Dynamics\Business Portal\". You'll see that the page for viewing the TimeCard List is specified in SharePoint as "/BusinessPortal/Applications/PMA/Timecard.aspx?Action=LIST". My goal originally was to remove the "[CORRECT]" action for the timecard list.

At first glance it appears that the code for this page resides in the TimeCard.aspx file found:

If you open the Timecard.aspx file, you'll see the following code:
At first glance, you may think that the code to modify reside in an assembly which would require reflection and recreation to modify sueccesfully. What I found out and what you should know is that this page is essentially a redirect that adds on the Company Name at the end of the URL. The page actually redirects to TMTce10.asp file found at, "https://server/BusinessPortal/Applications/PMA/tmtce30.asp?company=companyname".
This page is actually editable, and to remove the [CORRECT] option, find the following line:
sActionText = sActionText & "<a class=""clsGridTableLink"" title=""Click to correct this timecard"" href=""*"" onclick=""CorrectTimecard('" & RSLabHdr("DocNbr") & "', '" & Trim(RSLabHdr("pe_date")) & "')"">[Correct]</a>"
Simply add an apostrophe at the beginning of the line to comment out the line, and have the option removed.
'sActionText = sActionText & "<a class=""clsGridTableLink"" title=""Click to correct this timecard"" href=""*"" onclick=""CorrectTimecard('" & RSLabHdr("DocNbr") & "', '" & Trim(RSLabHdr("pe_date")) & "')"">[Correct]</a>"
Now the [Correct] options should be hidden from view. This procedure should work with other actions on the same page.
