Barry685 Posted April 11, 2013 Posted April 11, 2013 Im trying to create records in another table that is based on looping thru the Invoice line items of a specific Invoice. It is activated from a button on an invoice. Before the loop begins I assign the invoice id to a local variable. Perform a find on the line items table limiting the line items to just that Invoice. I than sort the line items by a specific field. The problem that I am having is the looping sequence only creates 1 record in the other table (from the first record in the line items found set)
bcooney Posted April 11, 2013 Posted April 11, 2013 I'd like to help, but I'd rather understand the use case. What are you trying to do and why? (then we can get to how to script it).
MartieH Posted April 11, 2013 Posted April 11, 2013 I am thinking that it's the opening of the new window that is causing the issue - I think that is messing with your loop as the script is trying to continue in the new window. You can see this for sure if you run a debug on it. I think I would forgo the new window and just go back and forth between the two layouts until the loop is complete - then, go to the document layout. hth, Martie
Barry685 Posted April 21, 2013 Author Posted April 21, 2013 sorry for taking so long to reply. Martie had the answer I needed to close the window.
Recommended Posts
This topic is 4234 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