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.

Unstored Calculations & Relationships

Featured Replies

The summary of my question follows the details of the following three files and associated fields:

PARTY

PK_PartyID

ct_PictureID_Expired

d_PictureID_Expiry

CLIENT

PK_ClientID

t_terminated

PARTY_CLIENT_JOIN

FK_ClientID

FK_PartyID

t_Individual

t_Exempt_Party

ct_Terminated

ct_PictureID_Required

The following relationships are setup:

PARTY_CLIENT_JOIN

ClientRelationship = FK_ClientID::PK_ClientID

PARTY_CLIENT_JOIN

PartyRelationship = FK_PartyID::PK_PartyID

Field definitions

PARTY_CLIENT_JOIN

ct_PictureID_Required = if ( t_exempt_party = "Exempted Party" or ct_Terminated="T" , "Not Required" , if (t_individual = "Yes", "Requried", "Not Required" ))

ct_terminated = if ( ClientRelationship::Terminated = "Yes" , "T", "" )

PARTY

ct_PictureID_Expired = if ( PartyRelationship::ct_PictureID_Required = "Required" , if ( d_PictureID_Expiry < Today , "Expired" , "Valid" ) ) , "" )

In the PARTY_CLIENT_JOIN database, I access the PARTY records via a portal. I have two records in the JOIN database related to one record in the PARTY database. Record one in the Join database has a "Not Required" result in the ct_PictureID_Required field. Record two in the JOIN database has a "Required" result. However, when viewing the PARTY record in the portal, the d_PictureID_Expiry field returns a null value for both JOIN database records. Based on the conditions of the calculation, I would only expect this in the JOIN record containing the "Not Required" result, not both JOIN records.

Can anyone explain what I have done wrong here?? What do I need to change to have the record in the PARTY database reflect the proper result based on the active record in the JOIN database??

Chris

Did you word your question right?

d_PictureID_Expiry is not a calculation, right?

And it is NULL in both records?

The only thing that we'd seem to be able to conclude is that the data has not been populated properly.

Also,

You explained the relationship structure from "the Join db to the Party db", but you didn't explicitly mentionned what was the relationships created from the Party db to the Join.

Since you're viewing records in a portal using this "reverse" relationship, it would be good to know which relationship you used, as I assume you have more then one relationship created from the Party to the Join.

Check that the field(s) in the portal are using the correct relationship.

If the field in portal don't use the same relationship that the portal itself, it may explain what you're experiencing.

Besides, you'd better use Case intead of If and Status(CurrentDate) instead of Today...

  • Author

Ugo,

Thanks. By changing the test for the ct_PictureIDExpired field so it doesn't reference the Join database fields this corrects my problem. Thanks for your responses.

Chris

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.