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.

Changing a field value.

Featured Replies

  • Newbies

Hello,

I'm trying to make my first filemaker app. It's a simple app with an order table, and a products table with a relation between the two tables.

I made a layout with a portal that displays many fields as Order Nr, Date, Name and in the portal price quantity total etc..

If I change for example the price of a product in the portal area it changes the price in the products table. How is it possible to change a field value without changing the value in the origin table ?

I hope my question is clear un understandable.

The relationship between Orders and Products is many-to-many: one order can have many ordered products, and one product can be ordered in many orders. The standard solution for a many-to-many relationship is to add a join table between the two "main" tables. Typically, for orders and invoices, the table is named LineItems and it contains a record for each join of a product to an order/invoice. Also typically, there will be a Price field in the LineItems table that looks up (i.e. copies) the price of a product from the related record in Products. This way you can change the looked up value without affecting the "list price" in Products, as well as change the price of a product without affecting past orders. 

See also: 
https://help.claris.com/en/pro-help/content/many-to-many-relationships.html
https://help.claris.com/en/pro-help/content/lookups.html

The old demo file found here can also be helpful: 
https://fmforums.com/topic/63425-auto-fill-one-field-with-text-from-two-fields/?do=findComment&comment=300150&_rid=72594

Edited by comment

  • Author
  • Newbies

I did what you have explained and it works great.

Thank you

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.