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

I've got a contacts table and a viewer table. How can I display 2 different records from the contacts table onto the viewer. ie one address for billing and another address for shipping?

I've searched and apparently nesting portals won't work. Aside from having exact duplicate contacts tables or copying the field info back and forth what are my options?

Thanks.

What's a viewer table? What is its purpose?

  • Author

The viewer table and layout just combine all my info from other tables be it portals or calculations into a front end to my database. It for example has a job number field that relates to an items portal from another table that lists everything that need to be done with that job.

I would like to add a "ship to address" and a "bill to addres" sections to that layout. It's no problem if I only needed one or the other then I could just add a portal. Now since the bill to address and ship to address don't always match, how can I make it where it accesses two different records from the "Contacts" table?

Hope that makes sense.

Thanks.

Why would the two addresses be two different records in the Contacts table? Why aren't they fields in the contacts table?

So, on your viewer layout, when you sent the ContactID global, you'd see that contact's addresses thru a relationship back to Contacts.

I see that you rate yourself a novice, so I feel that I should advise you that trying to have your entire database operate from one "viewer" layout is going to complicate your development tremendously. Why not just have a job layout?

  • Author

1 record per address on the contacts table. The 2 addresses don't always match to be on the same record. Sometimes they will be the same, other times the addresses will be different. In other words some times i will ship and bill "John" and other times I will ship to "John" and bill to "joe".

Here's a couple of screen shots..

Contacts.png

Viewer.png

You need to store a foreign key (of the respective contact) for the Bill To and the Ship TO in the Job Table.

  • Author

Would it be too much for me to ask what a foreign key is? Or would you mind pointing me in the right direction with a link to read?

Thank you for your time.

  • Author

Thank you, that was good reading material but I am still not sure how to accomplish what I need done. Here is a simple test file of what I am trying to do.

Everything I have tried either gets me the same "Name" for both shipping and billing or nothing at all. I just can't figure out how to make it display 2 different records or 2 same records from the contacts table at the same time in 2 different places on one main layout.

Thanks.

Let's go back to the Viewer table. I believe you'd find it much easier to just have this layout based on a Job Table Occurrence. Then, have the _kF_BillTO_ID and _kF_ShipTo_ID (foreign contact id keys) on this layout. They can be popup menus that use a value list. The value list can be called Contacts, and it would contain the ContactID and the Contact Name & Address (this second field is a calculation field that concatenates Name & Address). Once you have the _kF_BillTO_ID stored in Jobs, then you can lookup the bill to address info in Contacts using relationship from Jobs to Contacts where _kF_BillTo_ID = __kP_ContactID. Similarly for ShipTo.

Edited by Guest

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.