Forum Discussion
I would set up a table called User Focus with a key field of User. Set the field as userid. Create a field for the Record ID# of the Focus event. Create a checkbox formula field called [User Exists?] with a formula of true.
Create a relationship where One User Focus has many Events based on a reference field of formula user with a formula of User().
Create a relationship where One User Focus has many Employees based on a reference field of formula user with a formula of User().
The user will launch off an Event and the formula URL will add or edit the user in the User Focus user table to record the [Record ID# of the Focus Event]. The [Record ID# of the Focus Event] will then be lookup done to Employees. The user will be landed on a report of employees for the same company as the Event.
The workflow will then be for the user to click any Employees who attended. The formula URL button will create an Event Attendees child record and then optionally it can set up to have a quiet popup saying that the employee has been added, or else refresh the report to only show employees remaining who did not attend the Focus Event. Once the user is finished clicking, then they would click a link to get back to the Event record and see all the children Event Attendees Created.
The employee list could either be filtered to just show the non attendees, or else colour code / sort who attended and did not attend so far, for the Focus Event.
This "User Focus" technique can be useful elsewhere in your development work, so it could be worth it to your organization to have a working session to get it implemented.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
- ChyanneEyde5 years agoQrew TraineeThanks very much for your response, Mark! I came up with a solution last night that goes down a similar path as what you've described, but your outline is very helpful! Thank you!
- GerardoChacon2 years agoQrew Member
Hi Chyanne, It's been a while since your post but I wonder if you could show me how you solved this. I have a very similar attendance situation.
------------------------------
Gerardo Chacon
------------------------------- ChyanneEyde2 years agoQrew Trainee
Hi Gerardo - Let me see if I can assist!
What really helped me solve this was mapping out the relationships in my app. The key relationships were between three tables - Events, Attendance, and Employees. I wanted a user to create one event using a form, fill in a check-box next to the name of Employees in an embedded report, and then I wanted the system to, invisible to the user, create an Attendance record through a QuickBase action.
Here's what worked for me:
I set up a form for a user to create an Event. They fill out the form and then they click a "Next" button to go to a second page of the form. This button is what enables everything else - I used Kirk Tracy's magic buttons app in the exchange and met with him in office hours. The Next button relies on a codepage that is modeled after something I believe is called createsavecontinue.html in the Magic buttons app. (The key is that the button saves the new record and then sets the user up to keep editing the record in a way that seems seamless.)
This next button looks to the user like it directs to a second page, but it actually directs to a different form in the same table. This "page 2" form includes an embedded report from the Employees table. I set criteria to filter the employees based on the Event record being edited. The embedded report is basically a list of people and a check-box to indicate whether or not they attended.
When a check-box is clicked, it means the Employee record is being modified. I set up a QuickBase action to fire when a user modifies an Employee record, specifically when the "attended" check-box is filled. The QuickBase action then creates a new record in the Attendance table. The fields that this Quickbase action copies to a new impact record are identified thanks a special field Date/Time of Last Click on Next in Event Form. This is a field that basically identifies the last record edited.
To avoid the "attended" check-box staying filled in for employees, I have another QuickBase action that fires to uncheck the field Attended?
I hope this might offer some helpful clues to you!
------------------------------
Chyanne
------------------------------