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.

Calculated Field>Uncalulated Field Relation. Should work?

Featured Replies

Hey guys!

Need you help on this one. I came to a problem with this Relation.

In the g.Bit there is a "1" and the PostedSwitch goes to "1" when its posted, the ActivQuoteSwitch is "1" when the Quote is activated.

The relation should display all Quotes outstanding (not gone out). FM just gives me a blank Portal. Can some one point me in the right direction?

thumb_1214828389-Relation.jpg

Thanks so much.

Regards

Relation.jpg

Edited by Guest

Are both the q fields indexed? Also is your portal and fields in the portal referecing the correct table occurrence?

  • Author

No only one is. Thats the problem, it wont let me index it because it gets it from another table.

What is the best aproach to get the Activ and Posted Quotes show in a portal?

Cheers

Edited by Guest

You can not use an unidexed field as a key on the child side of a relationship. You will need to tackle it from the parent side.

What is it referencing?

  • Author

Its referencing a Quote ID which is in the Projects Table. The switch is 1 when ID = Project::ActiveQuoteID So there can only be one ative quote per Project.

Cheers

Edited by Guest

Well it seems like you are storing the Active Quote in the Project table. So if you create a new table occurrence of Project to your GUI 2 using the 'X' operator for a cartesian join, you can use either a value list and a calc with ValueListItems(fileName; "YourValueList") or List ( Project 2::ActiveQuoteID ), as an additional key in your GUI.

  • Author

Gotscha! Selfjoin!!!

I was trying to relate to a third table.

Still a minor issue:

When I try to relate the both of them the protal is still blank.

[color:red]p.Bit ≠ q.PostedSwitch AND

p.ActivQuote = q.ID

p.... = Project Table

q.... = Quote Table

Whats going wrong?

Thanks for your help so far.

Edited by Guest

I guess I dont know why you switched to a self join unless your GUI TO was from it to begin with. p.Bit should be global I would think and p.ActivQuote shoule be the calc that I was referring to earlier...

At this point I am stabbing in the dark.

  • Author

Sorry for missleading you, I dont mean Selfjoin!!

Projects Table > Quotes Table

p.Bit ≠ q.PostedSwitch AND

p.ActivQuote = q.ID

I used a stored Calc. Maybe thats the problem?

Since I'm running it on a FM Server would I need to add the 1 in the global every time?

Thanks

either that or you can use a calc field with the value 1. The other field should be unstored automatically if you are using any one of the calcs I provided as the data comes from a related table.

  • Author

Got it!!!

Thanks very much.

Cheers

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.