Time sheet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 11:49 PM
Hi All,
I want to create a button called "quick add" in the time card to give the project category and working hours in it.
Thanks and Regards
yaswanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 12:02 AM
Hi @yaswanth ,
I tried your problem in my PDI, I hope this works for you. Please refer below steps
1. Create UI Action on Time Sheet table (I don't have time sheet table in my PDI so I did on Incident)
2. Add below code
function quickAddHandler(){
alert("Here = " + new Date());
g_form.setValue('category', 'software');
g_form.setValue('u_project_time', new Date());
g_form.update();
}
If you want to do some date manipulation you can add GlideAjax and call the script include.
Result :
Before click on UI Action
After Click of UI action
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 01:51 AM - edited 04-16-2024 01:53 AM
Hi Sarthak Kashya2,
please see the attachment i added here, i want to add the button in the time card to add the hours and project category.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 02:06 AM