Creating a Timesheet

When you create a new project based on the Timesheet project, you must add the timesheet to a Web view of the new project. After that, you can copy the Web view to create more views of the new project.

graphics/timesheet-grid.gif

To add a timesheet to a Web view:

1    Export the fields displayed above the timesheet (by default: Employee, Weekly Start Date, and Weekly Total Hours).

2    Enter the following HTML into the HTML code after control attribute of the last field currently in the Export to View list.

Instead of typing in this HTML, you can copy the HTML code after control value from the Weekly Total Hours field in the original Timesheet / Timesheet Web view.

<script type="text/javascript" src="../js/Timesheet.js"></script>
<select name="TS_cbo_vals" class="HiddenObject"><WC@53></WC@53>
</select><script>WriteTimesheetGrid(escape
(document.Record.TS_cbo_vals.innerHTML),START_MONDAY);</script><!--

3    Export the timesheet fields. The order does not matter.

DailyTotalMon, ..., DailyTotalSun (7 fields)

P1HrsMon, ..., P1HrsSun (7 fields)

P2HrsMon, ..., P2HrsSun (7 fields)

P3HrsMon, ..., P3HrsSun (7 fields)

P4HrsMon, ..., P4HrsSun (7 fields)

Proj1TotalWkHrs, ..., Proj4TotalWkHrs (4 fields)

Project1, ..., Project4 (4 fields)

4    Enter the string “-->” (without the quotation marks) into the HTML code after control attribute of the last field in the Export to View list.

Related Topics

Adding Rows

Changing the Timesheet Starting Day