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.

Index on Global Fields

Featured Replies

I cant put global field in a relation coz it can not be index ...why I cant index a global? I know, its stupid but it is request for the relation...so why untill in v.8 nobody understand it?

If you wish to show the same related record for every record at hand use the carthesian product type relation, it doesn't need any indexing btw, you can start out with two dummy fields for the linking purpose, and then later get rid of them in both tables while the funtionality coninues.

--sd

  • Author

tanx 4 your replay, I know what you say but the problem is something else....

TAB A

- Global A = 1

TAB B

- Number = X

- Global B = 2

- Calculate = X + 2

I want this relation:

TabA::GlobalA=TabB::Calculate

This does not works coz Calculate cant be indexed coz there is a global value inside

it's stupid coz it is simple but real, and this is 1 of 3 very stupid things that FileMaker still have 'till v.8.5

Edited by Guest

Just because you don't understand something, it doesn't mean it's stupid.

In any case, the solution for your example is very simple:

TABLE A

- Global A = 1

- [color:red]Calculate = Global A - TABLE B::Global B

TABLE B

- Number = X

- Global B = 2

[color:gray]- Calculate = X + 2

Relationship:

TABLE A::Calculate = TABLE B::Number

  • Author

tanx a lot, but you resolve the equation and not the defect of FileMaker.

the equation is only an example, if you want know the real calculate, it is as following:

[color:orange]Calculate = If(Global B = Number; 1; 0)

however, from you reply I understand that the "trick" is move the global field in master table from the related table ...but unfortunately it is possible only in 1% of the cases....

The defect is not with FileMaker, but with your understanding of how indexing works. This is not a trick, it's just what's needed to get what you want. I don't think I've come across too many cases where having the filter on the parent side was a problem.

Just because you don't understand something, it doesn't mean it's a defect either.

It doesn't matter where a global field is. The 'trick' is to move the "unstored" part to the parent side of the relationship. I think that should solve most of these cases, and there is a solution for the remaining ones as well - see here.

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.