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.

Field with multiple table relationships

Featured Replies

I have the following situation and any help/advice would be appreciated.

I have a simple product database and I'm creating an ordering table. Problem is this: I will have individual products available for ordering. But I'll also have groups of products available for ordering. I was thinking of creating a 'Packs' tables that had assigned a pack id and consisted of x number of products (via product_id).

What I'm after is this: to be able to type in the product id or the pack id on the order page and the rest of the product details/pack details to be sucked through. So in a way I want to product id on the order page to check two different tables ('product' table and 'pack' table). Is this a simple case of making two relationships for the product id in the order table?

If more explanation is needed please reply with the details you need.

Thanks.

Chris. confused.gif

Here's how I would go about this. I'll give a general overview that hopefully will get you started.

Put a field on your order, I'll call it addBundle, and put a button next to it.

Every time you want to add a bundle of products to the order, enter the bundle number in the field and click the button. The system then adds the line items to the order, containing the products found in that bundle.

The button would go to the related records (in bundles db), then loop through each item and add it to the line items for that order.

This will involve several external scripts gong back and forth between the line items and bundles db's, and the orders db.

Is that enough to get you started?

  • Author

Yep. That sounds like a usable solution.

Thanks.

Chris.

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.