Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4234 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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)

post-78360-0-13878000-1365701246_thumb.j

Posted

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).

Posted

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.