jasonwood Posted November 17, 2002 Share Posted November 17, 2002 Let's say you have a portal, and you "allow creation of related records". What if you wanted the related records (children), to be numbered sequentially FOR EACH parent as you enter them.... eg: each parent's first child will be "1", the second will be "2" etc. I understand that you can display the line number, but I'd like the number to be stored in a field in the related record. I know how to auto-enter a serial number... but this is a little different because it is specific to each parent. -- Jason Wood HeyWoody.com Link to comment Share on other sites More sharing options...
BobWeaver Posted November 17, 2002 Share Posted November 17, 2002 Use this auto-enter calculation: Max(ChildrenByParentID::ChildNo)+1 The Relationship should be a selfjoin in the child file based on the parent ID so that you are only finding the Max of the children of the one applicable parent. Link to comment Share on other sites More sharing options...
jasonwood Posted November 17, 2002 Author Share Posted November 17, 2002 SWEEEEET! Thanks dude! -- Jason Wood HeyWoody.com Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7965 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now