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.

Relationships display the ordered orders.

Featured Replies

I have three tables, table 1 has fields on Merchant and their info, table 2 has fields on Orders (Order Number, Date) those are visible in table 1 in a portal, table 3 has the ordered products that are in table 2's portal.

my question, how would i link and add them together to work and how can I make table 1s portal display the supplier related orders?.

Please see file.

Full Guest Account!

As usual thanks to you guys!

Clone8gv3.fp7.zip

I have had a quick look at the file - as you probably know you need to sort out the data structure and everything else will follow.

I think you want to be able to see a list of merchants (suppliers), click on one of the suppliers in your navigation list and see a list of the (outstanding) orders from customers for products (materials) supplied by the selected supplier?

I think you need to do some work on the data structure:

1) You need a products file that simply stores details of products;

2) You need to make a decision as to whether a product can come from more than one supplier

3) If their is no chance of needing more than one supplier per product then you need to store the supplier id in the products table

3) You need to have a fairly straight forward sales order structure:

order header => order detail (stores detail lines) much as you have

order detail => products

[4) You may need to add some data and process in for shipping/part shipping orders]

5) Going to the requirement - the portal needs to show (outstanding - in brackets because you don't state this as a requirement) sales order information for that supplier.

You can't go to a table occurrence of the order header table because one customer order may have products coming from more than one supplier

So as a quick and dirty solution you need to create a table occurrence of the order details/lines linked to the supplier table by what you would have called merch_id - ie you need a copy of the merch id in the order details table

I emphasise this is quick and not terribly purist - but you could simply put a calc field in the order details table that grabs the supplier id from the products table when the order detail line is created

It is slightly fragile and you need to be aware of the overhead you are creating by denormalising the database for this function

HTH

  • Author

I have had a quick look at the file - as you probably know you need to sort out the data structure and everything else will follow.

I think you want to be able to see a list of merchants (suppliers), click on one of the suppliers in your navigation list and see a list of the (outstanding) orders from customers for products (materials) supplied by the selected supplier?

I think you need to do some work on the data structure:

1) You need a products file that simply stores details of products;

2) You need to make a decision as to whether a product can come from more than one supplier

3) If their is no chance of needing more than one supplier per product then you need to store the supplier id in the products table

3) You need to have a fairly straight forward sales order structure:

order header => order detail (stores detail lines) much as you have

order detail => products

[4) You may need to add some data and process in for shipping/part shipping orders]

5) Going to the requirement - the portal needs to show (outstanding - in brackets because you don't state this as a requirement) sales order information for that supplier.

You can't go to a table occurrence of the order header table because one customer order may have products coming from more than one supplier

So as a quick and dirty solution you need to create a table occurrence of the order details/lines linked to the supplier table by what you would have called merch_id - ie you need a copy of the merch id in the order details table

I emphasise this is quick and not terribly purist - but you could simply put a calc field in the order details table that grabs the supplier id from the products table when the order detail line is created

It is slightly fragile and you need to be aware of the overhead you are creating by denormalising the database for this function

HTH

Ok so I slimed the project down for me to understand the relations. It seems to make more sense but it still wont work. If you could have another look. Thanks

Clone8gv3_2.fp7.zip

Sorry - going to be away for the next 10 days so hopefully somebody else can pick up...

Simon

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.