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

Creating functions in a Home Layout from a separate table.


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

Recommended Posts

Posted

Edit: Sorry but I realized this might be more fitting underneath the functions section of the forum... my apologizes.

Hello FM Forum,

Long story short, I'm fairly new to FileMaker and I'm trying to create a database from scratch. At the moment, I have 5 tables. Stamp, Album, Type, Collection, and Home.

For my layouts, I have a Stamp_List, Stamp_Detail that are based off of Stamp table, Album_List that is based off of Album table, Type_List based off of Type table, and Default_Home (which is basically an utility layout that is based off Home table and has no fields at the moment)

What I want to do is create a function to counts the total number of records in the Stamp table. That is my database is a collection of Stamps and I want the default home page to show that number of records.

Previously, I used the Get(TotalRecordCount) when my Default_Home was based off the Stamp table but I figured that wouldn't be in my interests when I need to do other stuff for default_home.

In addition, I would like to add a field or function where I can see the total value of the stamp collection. (this is another field within the Stamp table) and create a chart for the Types of stamps (a field in the Type table).

I'd greatly appreciate your inputs on the best approach to these scenarios!

Thanks,

scchoi

Posted

Home::Count_Stamps = count ( relationship::StampID)

Home::TotalValueStamps = sum ( relationship::Stamp_Value)

  • Like 1
Posted

Hi Bcooney, I've tried that but my field is not producing any answers. Perhaps my relationship is wrong? Can you critique my relationship. I posted a screen shot of the relationship below.

I'm displaying data from Home::Count_Stamps and the calculation field is Count ( HOM_Stamp::__kp_StampID )

post-107452-0-29089900-1349817046_thumb.

Best regards,

scchoi

Posted

You do not need _kF_Stamps in the Home table. Since you are counting all stamps (and not filtering) you can use a Cartesian join between any two fields in Home and Stamps ( x relationship).

  • Like 1

This topic is 4487 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.