Jump to content
  • 0

Auto populate fields on Child based on parent->child2


JBrown
 Share

Question

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? 

 

ss.png

 

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...