Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

Solved by MartieH

Go to solution

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

  • Solution

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...
  • Author

sorry for taking so long to reply. Martie had the answer I needed to close the window.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.