Time Card locking

Burhan2
Tera Contributor

Hii,We had a requirement to lock the time cards for previous week after certain day in the current week.For ex previous week time card can't be submitted by the user after wednesday of current week.

We implemented that using business rule and it is working as expected.But we are confuse on one part if suppose user forgets to fill timecard of previous how will he able to fill that after demanding access from timecard_admin so how to implement that like we can't deactivate br for every user how can we implement that please help us...?

1 ACCEPTED SOLUTION

Hello @Burhan 

You just need to create a field of true/false type on time_card table. In dictionary set the default value to false

In your BR condition just check like below. In my case field name is different

YOUR BR CODE WILL BE AS IT IS.

Please mark my respsone as helpful/correct, if it answer your question.

Thanks

View solution in original post

13 REPLIES 13

we implemented this on server side but can we also restrict the calendar field on client side so that user can't select the date of previous week from that week starts on field?

@Mahendra please help

@suvro can u help in this

Burhan2
Tera Contributor

@suvro can u look into this and help

Hello @Burhan 

This question was raised initially with different requirement which was answered earlier and now there is a new question on the same thread. So I would request you to please raise a new question for your requirement and provide the required details like screenshot showing the page of your time card. Are you using any catalog item or the OOB time card page provided by ServiceNow, without those details it will be difficult to answer your question. Also it is difficult to answer all the question in a single thread.

Thanks