Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Calculated Field>Uncalulated Field Relation. Should work?


This topic is 6048 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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
Posted

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

Posted (edited)

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
Posted

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?

Posted (edited)

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
Posted

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.

Posted (edited)

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
Posted

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.

Posted

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

Posted

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.

This topic is 6048 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.