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

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

Recommended Posts

Posted

I'm trying to make a graphic representation of the 'n' in a cell of a table, the number which is a summary value. I created a repeating container field (r = 10) with a graphic representing one, up to ten in the 10th repeating field.

Let me call the cell of the table in this example 'A'

The summary field for the number represented in cell 'A' is 'A_summary'

The field with the container is 'A_graph' and sits in the A cell

The graphic comes from a related table (Xjoin) called N_Graphics(repeating, 10 repeats).

I tried to define the container field, 'A_graph" like this:

Case(

A_summary = 1;

GetRepetition(N_Graphics::10pics; 1);

A_summary = 2;

GetRepitition(N_Graphics::10pics; 2);

etc through value of 10.

This was intended to show, for example, three little boxes if the N for Cell A was 3. However, it didn't work.

Any ideas? Thanks for your help!

Posted

"It didn't work," meaning what? Your computer exploded? The "A_Graph" field is blank? What happened?

  • 2 weeks later...
Posted

I think I see what's missing: the GetSummary() function. This is the only way to use the result of a Summary field in a calculation, and it only works when your found set is sorted by the breakField specified in the calculation.

I also find it more readable to write: field[1]

rather than: GetRepetition(field; 1)

So, your calc can be simplified:

N_Graphics::10pics[GetSummary(A_summary;breakField)]

Sorry for the delayed response.

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