Hi All
I am testing the usage of beta weekly timesheets in our sandbox account.
I have run into an issue where the Copy Previous Timesheet button is not reliable. If a job in the previous weekly timesheet is closed, it fails, if a project task is completed, it fails… It seems to just be adding the time entries field by field and if it runs into validation issues, it will just stop the process of importing the rest of the data.
In standard weekly timesheets it would simply not include the job.
To avoid this, I thought of removing the standard button via customise form, replacing it with a custom action (button) which calls a function in the client script which will then attempt to emulate the same kind of process. The only problem is… I can’t get the button to call the function using the beta weekly timesheet feature. I tried just calling a function in my client script named “copyFromWeek” which triggers and alert but it doesn’t seem to be calling it.
If I try and do the same thing from standard timesheet form, it will work. Does anyone have any experience with the Beta Weekly Timesheets that can advise how I can achieve adding a custom button that calls a function? I also tried to create an inlinehtml field to try and code an HTML button to trigger the function but that doesn’t work either.
Any help is appreciated.
Thanks
Patrick
This is a cached copy. Click here to see the original post.