I have three forms Book Trans, BookTable and student table. I want to insert five transactions in the BookTransaction form with the same student id(field in student table) and stop when it triggers the sixth time.
I have three forms Book Trans, BookTable and student table. I want to insert five transactions in the BookTransaction form with the same student id(field in student table) and stop when it triggers the sixth time.
Do you still have some open question?
You wrote "I have three forms Book Trans, BookTable and student table. I want to insert five transactions in the BookTransaction form with the same student id(field in student table) and stop when it triggers the sixth time."
and
"I want to insert 5 record with one Studentid,more than that it should throw error.
And there are 4 student id"
It doesn't seem consistent.
If you have some question, please explain the process and expected outcome. Thanks!
Thank you for reverting back,
I want to insert 5 record with one Studentid,more than that it should throw error.
And there are 4 student id
Add check in validateWrite method, calculate existing records and return false if there are already five records.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156