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.

Indexed calculation field not steady when defining

Featured Replies

Hello.

Here is a strange FP5.5 feature I'd like to fix with the help of you all.

I have a calculation looking like this:

Case(Statut_patient = "GR" and Type_patient = "Ambulatoire",Code_GR,Statut_patient = "GR" and Type_patient = "Hospitalis

The fields you're referencing must be stored as well. Check that neither field is unstored or has the 'Automatically turn on indexing if needed' box unchecked.

  • Author

Thank you for your post.

All the referenced fields are stored and indexed. Shouldn't they be, Filemaker would not allow for storing the referencing field in the dialog box.

I wonder why FM allow for storing and then turn it back off as soon as the dialog is closed...??

Can you attach a copy or clone of your file?

  • Author

Here are the files. As raw as possible.

Open the fields definition dialog in file Soins.

I need to involve the calculation Calc_ID_session_TP in a relationship, so it is necessary to store it and the referenced field Code_attestable as well.

If I turn them to stored, FM turns them unstored when closing the dialog...

May come from kind of 'circular calculation' (I must still investigate). Or maybe any other misconception of mine...

But why the hell does FM first accept the storing option?

Your calculation Calc_ID_session_TP is based partially on ID_patient, which is based on a relationship, (ID_session::ID_patient). The ID_session::ID_patient can't be stored do to the the relationship, therefore Calc_ID_session_TP

HTH

Lee

  • Author

Lee,

Based on what you wrote, I just turned ID_patient into a look-up via ID_session::ID_session, indexed it, and everything works fine.

Thank you for part one of the explanation!

Now part two remains: why does FM first accept the storing (which is quite impossible) instead of graying the option (and/or alerting) as it usually does?

One more terrible 'feature'?

Hi Logixx,

I would deduce that it can't check this until you close the Define Field box. Probably because, it doesn't know what your final calculation will be until you close the box (i.e. you could remove this field prior to closing the box.

HTH

Lee

cool.gif

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.