# School Attendance tracker

**URL:** <https://forum.bubble.io/t/school-attendance-tracker/46224>\
**Category:** Database\
**Created:** [January 8, 2019, 4:52pm UTC](https://forum.bubble.io/t/school-attendance-tracker/46224 "2019-01-08T16:52:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![myrmel4e83](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@myrmel4e83](https://forum.bubble.io/u/myrmel4e83)\
**Post date:** [January 8, 2019, 4:52pm UTC](https://forum.bubble.io/t/school-attendance-tracker/46224/1 "2019-01-08T16:52:18Z")

</div>

Hello,

I got stuck with my app. It is a simple school attendance tracking site. Teachers should be able to track the attendance status(present, absent, late, custom) of each student in a given class for a chosen date. Teachers can teach many classes and students can have many classes too. Teachers will be able to define custom attendance statuses - like ‘flu’, ‘sick’, etc.  
I have the following tables:  
User - this is for teachers data:  
name - text  
is\_admin - yes/no  
teach\_class - List of Classs

Class:  
cl\_name - text  
study\_class - List of Student

Student:  
st\_fname - text  
st\_lname - text

AttStatus:  
attsts\_name - text  
attsts\_descr - text

TakeAttendance:  
att\_date - date  
att\_class - Class  
att\_student - Student  
att\_status - AttStatus

I have a page Take attendance with a date picker field, a drop down that lists all classes and a repeating group that displays student first name. I wanted somehow to have:  
a) as many buttons as there are AttStatus entries and each button text to correspond to a particular status. When one of the buttons is clicked to add a new entry in TakeAttendance table for the current cell’s Student and to set att\_status to be the same as the clicked button

or

b) instead of many buttons, the attendance statuses to change on mouse click on a single element next to the student first name (the element should display text - the status name). Each click to set the next status and on the bottom of the page to have a Save button that saves the set statuses in TakeAttendance for all the students.

I can’t accomplish neither of these. Are these possible and how? May be my database design needs some change? If a) and b) are not optimal solution, what would be and how to accomplish it?

Thanks in advance :)!

---

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [January 8, 2019, 5:02pm UTC](https://forum.bubble.io/t/school-attendance-tracker/46224/2 "2019-01-08T17:02:33Z")

</div>

I would do this the other way around. Instead of marking the attendance of each student I would mark only the missing students. When the attendance taking is done i would have the following workflows run

1. Create list of students marked absent
2. All Other students that do not belong to that absent list is marked attended

Then have a different page to mark the reasons for each absent student.

---

<div class="post-metadata">

**Author:** ![myrmel4e83](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@myrmel4e83](https://forum.bubble.io/u/myrmel4e83)\
**Post date:** [January 9, 2019, 9:28am UTC](https://forum.bubble.io/t/school-attendance-tracker/46224/3 "2019-01-09T09:28:29Z")

</div>

Thank you for the suggestion. I would prefer a solution without additional pages. Is it possible with Bubble? I am creating this app for a small volunteers run school and they do not want additional steps. They want to be able to mark the attendance status and later use the collected data - for example export the data in csv file for a given time period or for a particular student and they want to be able to see not only ‘present’ / ‘absent’ but ‘sick’, ‘late’, ‘lice’, etc.

---

<div class="post-metadata">

**Author:** ![nocodeventure](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodeventure/32/247164_2.png) [@nocodeventure](https://forum.bubble.io/u/nocodeventure)\
**Post date:** [January 9, 2019, 10:33am UTC](https://forum.bubble.io/t/school-attendance-tracker/46224/4 "2019-01-09T10:33:15Z")

</div>

You should focus on the technical part yourself and explain the end user how to use it 😉

Assuming that you know what the client wants…

---

<div class="post-metadata">

**Author:** ![myrmel4e83](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@myrmel4e83](https://forum.bubble.io/u/myrmel4e83)\
**Post date:** [January 9, 2019, 12:55pm UTC](https://forum.bubble.io/t/school-attendance-tracker/46224/5 "2019-01-09T12:55:35Z")

</div>

:)… and on the technical part I think that the option with additional page doesn’t bring improvement to the usability of the application.  
So none of the options a) or b) are possible?

---

<div class="post-metadata">

**Author:** ![eduKit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/edukit/32/45264_2.png) [@eduKit](https://forum.bubble.io/u/eduKit)\
**Post date:** [January 9, 2019, 9:47pm UTC](https://forum.bubble.io/t/school-attendance-tracker/46224/6 "2019-01-09T21:47:10Z")

</div>

Do you have a link so we can take a look at it?

---

<div class="post-metadata">

**Author:** ![myrmel4e83](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@myrmel4e83](https://forum.bubble.io/u/myrmel4e83)\
**Post date:** [January 12, 2019, 1:10pm UTC](https://forum.bubble.io/t/school-attendance-tracker/46224/7 "2019-01-12T13:10:36Z")

</div>

Yes, here is the link. I played more based on some threads I read for many to many relationships but still I can’t manage to create or update attendance record for particular student for particular class for chosen date with chosen attendance status.

> **[Bubble Editor - demschoolattendance](https://bubble.io/page?type=page&name=take_attendance&id=demschoolattendance&tab=tabs-6)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

I changed my tables as follows:  
type Class  
name - text  
student - list of Students  
teacher - User  
attendance - list of AttendanceRecords

type Student  
name - text  
class - list of Class  
attendance - list of AttendanceRecords

type AttStatus  
attsts\_name - text

type AttendanceRecords  
date - date  
class - Class  
student - Student  
status - Status

on the page take\_attendance can’t manage to create correct workflow that updates/creates attendance record date, class, student, status.

Thank you in advance.
