Skip 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.

linked adres table

Featured Replies

Hello,

My database is used for a webstore. I have a table [ data] and one [user_info].

The links:

[data.order_id] = [user_info.order_id]

Then in the [user_info] table one or more records per order. I only have one or two records per order that are of interest. One is billing adres [user_info.address_type]="BT". This is standard. If the shipping adres is different there will also be a [user_info.address_type]="ST".

In my overview on the left I display billing adres and on the right the shipping adres. If there is no "ST" then "BT" is to be used.

I have made it to the state that it collects the right info but only one is displayed. If no "ST" exists only the left is filled. If it does exist only the right is filled. Both using the correct addresses.

How I came to this point:

I made [data.cUserType_Billing] calculated field ="BT"

I made [data.cUserType_Shipping] calculated field ="ST"

I linked [data] to [user_info (alias SHIPPING)] on order_id and cUserType_Shipping

I linked [data] to [user_info (alias BILLING)] on order_id and cUserType_Billing

How can I solve my issue so both adresses are always displayed?

  • Author

Haven't solved this yet.

Thinking on how to create a calculated field in adres table or order table that fills with e.g. Company FROM addres WHERE order_id = order_id AND type = ST

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.