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

writing a report letter using related records' values


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

Recommended Posts

Posted

Hello, I am currently developing a database using fm pro 13 and i need a calculation field that writes a paragraph using related record values

 

In my case: I have a table called event related to a table called transfusion in a one:many relationship.

I have a portal on the event layout that has the field

 

transfusion::Blood product, transfusion::Dose, etc

 

The blood product can be RBCs, platelets, albumin and/or IVIG

 

So each record in transfusion will have a blood product and other information.

 

I have a layout that prints a form for the medical daycare unit. I want this form to display the information from transfusion in a coherent fashion.

 

For example, if transfusion::Blood product = "RBC" then "Please give the following blood product: RBC" and dose

and if another record related to the event contains platelets then the platelet info will show as well.

 

I was able to perform the function using a checkbox or a repeating field but I find using a related table makes things look much better and organized. 

 

Can anyone help me with this. If you need more info please let me know

 

thank you

Posted

One approach:

 

base your report on a Transfusions list layout; this would also allow you to easily group and summarize, and you could use the same layout to report by date range, Event record(s) or other criteria.

 

Another one:

 

pull in a list into the Events table.

 

• create a calculation field in the Transfusion table that calculates the complete string you want to have displayed per transfusion record, based on the values for fields like bloodProduct etc.

• create your list from the Events context by using List() with your calculated field, e.g. List ( Transfusions::cCompleteTransfusionMessage ).

 

Note for this second approach that if you only need this list when reporting, you wouldn't necessarily have to create a dedicated calculation field in Events; pull in the list in the course of your report script and place it into a global field or a merge object/variable (or whatever fits the way you've set up your report).

  • Like 1
Posted

One approach:

 

base your report on a Transfusions list layout; this would also allow you to easily group and summarize, and you could use the same layout to report by date range, Event record(s) or other criteria.

 

Another one:

 

pull in a list into the Events table.

 

• create a calculation field in the Transfusion table that calculates the complete string you want to have displayed per transfusion record, based on the values for fields like bloodProduct etc.

• create your list from the Events context by using List() with your calculated field, e.g. List ( Transfusions::cCompleteTransfusionMessage ).

 

Note for this second approach that if you only need this list when reporting, you wouldn't necessarily have to create a dedicated calculation field in Events; pull in the list in the course of your report script and place it into a global field or a merge object/variable (or whatever fits the way you've set up your report).

This is perfect!! thank you very much!

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