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.

Need help with a portal based on a portal

Featured Replies

I have 3 tables: ProductSales;ProductLineItems;ProductInventory. ProductSales is related to ProductLineItems via Invoice#. ProductLineItems is related to ProductInventory via ProductID.

I have an order entry layout based on the Product Sales table. It has a portal based on the productLIneItems table which allows users to enter in purchased product. I have another portal on the layout that is based on the ProductInventory table. In this portal I wanted to show OnHandQuantity for the product that a user is entering. It works for the first product entered into the LineItems portal but it doesn't change when you go to a different product on another line. What am I missing that will allow me to accomplish this?

Thanks for the help!

John

  • Author

I found one of my problems, I was only showing 1 row in the portal. I changed it to 4 and it is showing up now. But if I change or add a product, its quantity on hand will not show up until I either go to another record or go into define fields and come back out. Is the problem that a commit only happens when I do the things I mentioned and the portal will not be updated until a commit is issued? If so, I will have to write a script that just does a commit and users will have to fire the script before the onhand quantity will be updated. That's not very friendly, is there another way to force the commit without a script?

Thanks!

John

What you have is a many to many relationship. You could put the quantity on hand field into the same portal that you use for line item. Just make sure that the TO's for the 3 tables are connected in one TOG.

  • Author

Ralph,

Ahhh...you are correct. I was overlooking the simple & obvious answer.

If I were to do the way I was headed, I would have to create a unique key in the lineitems table and relate that back to inventory, correct? (i.e. Concantenate the invoiceId & productID together). Not pretty!

Thanks!

John

In 7 you don't need to make a concantenated key, you just use the add in the relationship. But this would not help you get the quantity on hand from the inventory table.

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.