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.

"This is the foreign key ..." warning

Featured Replies

I'm working on an invoicing system and I have a relationship between a lineitems table and a customer table. When I set up a new line items record I enter a number into the customer_id field I get the following warning:

"This is the foreign key from the Customer table".

I'm given three options of "Revert field" "No" or "Yes". If I press yes, the customer_id is entered and everything works fine. However, I don't want to get this warning every time. Can it be turned off? I don't get it when I put in foreign keys in other tables, so I don't understand why it is coming up in this table.

Andrew

Did you make this solution by yourself? Unless I am very much mistaken, what you see is a custom message defined in validation options for the customer_id field.

--- A PRIVATE RANT ---

Here's an example how NOT to write alerts. As far as the user is concerned, "foreign key" is a piece of metal that will not open the door to user's residence.

Edited by Guest

  • Author

Yeah, that was the problem - it was a custom message - designed by myself. And you're right - it was a pretty obtuse message. B)

Maybe you can help me with another problem. I upgraded to FM 7 v3 last night. Now every time I open the Invoices file I get the following message:

"The date and time formats associated with "Invoices" are different than the current system settings. What date and time formats would like to use? File Settings or System Settings"

Thanks

Andrew

Hm.. I don't see why an upgrade would cause this. But the cure is simple. Either set the file to always use system formats (in File -> File Options..), or - preferably - clone the file (in File -> Save As..) and import your data into the clone.

Regardless of the above: if you intend to pass files to others, it's a good idea to set them to always use current system formats.

  • Author

Thanks for the quick answer. That's sorted the problem.

Andrew

Without wishing to invade comments' privacy I would like to applaud that rant

Phil

Applauding public is always welcome, Phil... B)

Here's an ecellent remark on the subject.

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.