Newbies PaulPeckerhead Posted May 29, 2008 Newbies Posted May 29, 2008 Hi all, How do I auto create new records based on a number in a field. i.e. If the field has a four in it then I want to create four new records?: Looping?
Hare Posted May 29, 2008 Posted May 29, 2008 yes. assuming you want to create related records such as line items to a parent record, something like set variable [ $total ; table::number ] set variable [ $parent ; table::ParentID ] go to layout [ child ] loop new record / request set field [ child::fkParentID ; $parent ] commit records / requests [ no dialog, skip validation ] set variable [ $total ; $total - 1 ] exit loop if [ $total < 1 ] end loop go to layout [ original ] commit records / requests [ no dialog, skip validation ]
comment Posted May 29, 2008 Posted May 29, 2008 See: http://www.fmforums.com/forum/showpost.php?post/283950/
Recommended Posts
This topic is 6082 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