I have a fairly complex relationship (see attachment). tblJobs is the parent, it has a child of tblWorkOrder(One-to-Many). It also has another child tblInsert(one to many) In the attachment I currently have it mapped as a many to many relationship, but I could revert it back to a one to many(I was doing some testing).
Here's the issue. tblInserts can have two variant of lifespans, either a date range, or a quantity which is used until 0. I need a way to automatically add the insert if it meets either of these conditions. ( DateOpened of tblWorkorder falls between the date range of tblInsert or If there is some quantity left, add it to the job until the quantity = 0.
Anyone proficient enough in js to give me an example of a multi conditional oninsert script?
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
JBrown
I have a fairly complex relationship (see attachment). tblJobs is the parent, it has a child of tblWorkOrder(One-to-Many). It also has another child tblInsert(one to many) In the attachment I currently have it mapped as a many to many relationship, but I could revert it back to a one to many(I was doing some testing).
Here's the issue. tblInserts can have two variant of lifespans, either a date range, or a quantity which is used until 0. I need a way to automatically add the insert if it meets either of these conditions. ( DateOpened of tblWorkorder falls between the date range of tblInsert or If there is some quantity left, add it to the job until the quantity = 0.
Anyone proficient enough in js to give me an example of a multi conditional oninsert script?
Thanks,
Jon
Link to comment
Share on other sites
1 answer 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.