The 'Select Task' dialog box that pops ups when the 'Add Lines' button is clicked can be modified by editing the 'SelectTaskDlg.aspx' page located in 'C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\PWA\TIMESHEET'.
Write your own javascript, or add your own values to the controls.
The ID for the HtmlSelect control containing the existing assignments is 'idAssnDropdown', for the control containing the name of the new timesheet line(s), the ID is 'idAssnNew'. The ID for the control containing the Line classification is 'idTSLineClassDropdown'. The ID for the control containing the Comment is 'idComment'.
The values for the controls can be modified during the 'LoadComplete' or 'Pre Render' event.
The page uses the 'Microsoft.Office.Project.PWA.ApplicationPages.SelectTaskDlgPage' class as the code behind which in turn is derieved from the 'PJDlgPage' class 'Microsoft.Office.Project.PWA' dll
The 'SelectTaskDlgPage' class.....
23 public class SelectTaskDlgPage : PJDlgPage
24 {
25 // Fields
26 protected Guid _tsUID;
27 protected HtmlSelect idAssnDropdown;
28 protected HtmlSelect idTSLineClassDropdown;
29
30 // Methods
31 public override void PJDlgPage_OnLoad(EventArgs e)
32 {
33 // This item is obfuscated and can not be translated.
34 }
35
36 // Properties
37 public override Guid PageUID
38 {
39 [SharePointPermission(SecurityAction.Demand, ObjectModel = true)]
40 get
41 {
42 return PageGuid.SelectTaskDlg;
43 }
44 }
45 }
Unfortunately, the 'PJDlgPage_OnLoad' function is obfuscated, which prevents us from seeing the real workings of this function.
Is any modification to this page supported by Microsoft ? I really doubt it. Modify this page at your own risk ! :)