On Insert into a Client table I need to (a) insert a record into an audit log and (b) add 1 child record to an Admissions table. Both parts (a) and (b) are working fine.
On the insert to the Admissions table I need to (a) insert a record into an audit log and (b) add 12 child records into an AdmissionChecklistItems table. Part (a) is working fine, butfor part (b) I'm limited to ONE (1) child record due to the limitations on "cascading triggers". It all worked fine with the audit log insert and a test with 1 checklist item insert. Then I went whole hog and added the other 11 items and {bam!} error message. It was all for naught, I already had reached the limit (sure wish it wouldn't let us add more than it will let us run!).
On the insert to the AdmissionChecklistItems table I need to insert a record into an audit log. This is working fine.
~~~~~~~~~~~
I do have the checklist items in a table. Effectively I need the second INSERT of the trigger to be ...
INSERT into AdmissionChecklistItems SELECT ([RID from #inserted], SelectValue FROM Lists WHERE Category = 'AdmissionChecklistItems')
... which could insert all 12 checklist items in one insert statement? I know this can be done in Transact-SQL but I'm feeling hampered by the Caspio structure.
IS there a way I can do this in Caspio? If not what's the suggested workaround to get this done in an automated manner?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Becca37
On Insert into a Client table I need to (a) insert a record into an audit log and (b) add 1 child record to an Admissions table. Both parts (a) and (b) are working fine.
On the insert to the Admissions table I need to (a) insert a record into an audit log and (b) add 12 child records into an AdmissionChecklistItems table. Part (a) is working fine, but for part (b) I'm limited to ONE (1) child record due to the limitations on "cascading triggers". It all worked fine with the audit log insert and a test with 1 checklist item insert. Then I went whole hog and added the other 11 items and {bam!} error message. It was all for naught, I already had reached the limit (sure wish it wouldn't let us add more than it will let us run!).
On the insert to the AdmissionChecklistItems table I need to insert a record into an audit log. This is working fine.
~~~~~~~~~~~
I do have the checklist items in a table. Effectively I need the second INSERT of the trigger to be ...
INSERT into AdmissionChecklistItems SELECT ([RID from #inserted], SelectValue FROM Lists WHERE Category = 'AdmissionChecklistItems')
... which could insert all 12 checklist items in one insert statement? I know this can be done in Transact-SQL but I'm feeling hampered by the Caspio structure.
IS there a way I can do this in Caspio? If not what's the suggested workaround to get this done in an automated manner?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.