Posted on: 1/30/2015 4:56:27 PM | Views : 502

Greetings,
Looking for some advice on how to achieve the following.

Imagine an app that tracks Students and if they are at school that day.  It has basic info for firstname/lastname, Homeroom, DOB and a field for "IsAtSchoolToday".  My goal is to have the ability to toggle IsAtSchoolToday from Yes|No "inline" in the table.  I also want the ability to show an error message.  For simplicity sake, let's say it shows an error if you try to have a student be at school on a Saturday.  I also want a javascript dialog to prompt the user before they change the message to be "At School".  One final detail... I am trying to keep this functionality in my "Index" view, as I want this to be inline, so it seems most logical to have the toggle within that view.
1. I am using the following to alternate the yes/no in the for each student in my View (assume a full page surrounding it):
Go to the complete details ...