The CreatorCon Call for Content is officially open! Get started here.

Time sheet

yaswanth
Tera Contributor

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

 

 

 

 

 

 

3 REPLIES 3

Community Alums
Not applicable

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) 

SarthakKashya2_0-1713250792851.png

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 

SarthakKashya2_1-1713250895558.png

After Click of UI action 

SarthakKashya2_2-1713250927215.png

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak

 

 

 

Hi  Sarthak Kashya2,

 

timesheet.JPGtimesheet 222.JPGplease see the attachment i added here, i want to add the button in the time card  to add the hours and project category.

Community Alums
Not applicable

Hi @yaswanth  ,

Can you send me image of your UI Action configuration.

 

Thanks and Regards 

Sarthak