Inserting selected instances

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Inserting selected instances

Post by tford »

Learned something new today.

I have a log process that logs system events for all Students by creating instances of Student.Milestone_Log. Each Student.Milestone_Log entry is owned by Student which is also stored in Student_Milestone_Log.Student

Users can filter the log to review history info, then select certain Students to run a Mail Merge or Email Merge. Students can be selected on the following query by checking the Student_Milestone_Log entries & clicking "Add to selected students"
log entries.jpg
log entries.jpg (68.12 KiB) Viewed 2550 times
A simple process with one rule is executed with Student.Milestone_Log as input:

INSERT Student_Milestone_Log.Student IN LoggedInRegularUser.Students_Selected

I thought I was going to have to do a FIND to get to the Student instances related to each log entry, but that was not necessary.
Tom - V8.8 build 3137 - MySql / PostGres
Post Reply