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.

Duplicating all the items in an order

Featured Replies

I'm working on an invoicing database just now which is, on the surface, relatively straightforward. There is a table of customers, a table of orders, and a table of order items. 

At the moment, when someone calls in with an order, the user looks up the customer, then creates a new order for them as a related record in the order table. That layout has a portal which allows the user to create line items for that order.

When I've been chatting with users, the number one request has been some way to duplicate orders. Some customers order the same list of items over and over again and it's irritating to have to duplicate manually. (We have value lists etc. to save typing but all the same it's a relatively cumbersome and time consuming task - I can totally see where they're coming from.)

I can think of a few ways to make this happen, but frankly they all feel like bodges - some sort of script that goes through all the related records from the Source order, duplicates them, and sets the link field in the new record to Destination order. I'm not sure if there's a more elegant way to get this done - does anyone have any suggestions?

  • 3 years later...
  • Author

I'm revisiting this older post to share the solution I've found. 

Basically, the easiest way to duplicate all the related items is a looping script which works through each related item record in turn, duplicates it, and sets the link field appropriately. When I first asked the question I wasn't familiar with using variables, which is much more elegant than using global fields as I'd first imagined would be necessary. 

There is a far better description of the process here:

https://www.filemaker.tv/uncategorized/filemaker-duplicate-invoice/

Not sure I understand wouldn’t you just;

copy ID to a variable

go to orders table 

find using the variable

duplicate

set date

return to portal

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.