Simple employee attendance list in SharePoint 2013

We have SharePoint 2013 Intranet and I want to create a simple employee attendance list with following requirements:

1- Login and Logout button in the Intranet home page so employees can click on it to record the current employee name, current date, current time and save it on the list.

2- If there is a login record in the current day, only logout button is displayed/active.

3- If no login record in the current day, only login button is displayed/active.

4- Employee can view all his records only.

5- Specific user/users can view all employees records.


Thanks

July 30th, 2015 8:33am

Hi,

As there is no such OOTB feature can meet your requirement, you might need to apply some custom JavaScript to your home page to implement what you want.

JavaScript can help us to manipulate page elements(such as buttons, texts) dynamically based on the specific needs.

About how to modify the HTML source code of a page using JavaScript:

http://www.w3schools.com/js/js_htmldom_html.asp

http://njarb.com/2011/06/update-html-content-using-javascript/

For accessing data of SharePoint objects(list items or user permissions), JavaScript Client Object Model which can be consume using JavaScript would be a good option for you.

JavaScript Client Object Model

http://msdn.microsoft.com/en-us/library/office/hh185006(v=office.14).aspx

More information about JavaScript Client Object Model:

How to: Create, Update, and Delete List Items Using JavaScript

http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx

Thanks 

Free Windows Admin Tool Kit Click here and download it now
July 31st, 2015 9:05am

Thanks !
August 13th, 2015 2:57am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics