Jump to content
Server Maintenance This Week. ×

Display Summary from another table in current layout


netbooee

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

Recommended Posts

First you will need to have a relationship between Table A and Table B based on an appropriate identifier (e.g. Client ID). Create a new calculated field for Table A, which I'll call 'PaymentSum'...

PaymentSum = Sum(Table B::Payments).

Now put PaymentSum in your header.

Link to comment
Share on other sites

Thought it could be that simple, but I am still not able to pull that summary from Table B.

I Checked table join is there

I created a CALC field in Table A:

PaymentSum = Sum(Table B::Payments)

I am able to sum all the payments from Table B on each indiviual record in this layout but I can't seem to total the Sum of all those payments for the records displayed.

Any other ideas?

Link to comment
Share on other sites

OK. There ares still two ways to do it. In either case you should make a second instance of Table B (e.g. Table B2) in the relationship graph. Relate Table B2 to Table A using the 'X' (any) connection. You can now either:

1) Place a related Summary Field from Table B2::PaymentTotal on the layout

2) Make a calculated field in Table A based on the new relationship PaymentSum= Sum(Table B2::Payment).

I prefer #2 since it recalculates instantly. For option #1, changes in table B don't always refresh in the Loans layout unless you click in the field

example2.fp7.zip

Link to comment
Share on other sites

Nice !!! I also like your second opetion, it worked..

Now my challenge is to have the totals change based on a subset or find. For example if I bring in only Jacks Loans both totals in the header will adjust to only Jacks amounts.

Any ideas for that?

Link to comment
Share on other sites

For example if I bring in only Jacks Loans both totals in the header will adjust to only Jacks amounts.

Yes, That's what I thought you intended to do originally in the first example. Just use the calculated field on Table A defined as:

= Sum(Table B::Payment). This is assumes that the original Table B is related by client IDs.

It will be more complicated if you want the user to be able to be able to perform ad hoc searches and total those subsets.

Link to comment
Share on other sites

Now that I like! Summary fields come in handy since your script switches to a Payment layout. A script is also handy since you can use the 'Go to Related Record' step to quickly find the relevant records.

However, I think it doesn't answer the initial question of how to display sums from the Payment table on the Loans layout. Sometimes its nice to have aggregate data from two different tables in one layout.

Link to comment
Share on other sites

how to display sums from the Payment table on the Loans layout.

Perhaps, but isn't it a fixed idea of what table the data should be served from ... the endusers might feel nothing, the layout could be given an arbitrary name revealing nothing of it's origin. By and large should summaries be served form the most atomic of the related sets of data ... perhaps is it more the developer who fails wrapping his/her head around the concepts the tool is promoting.

--sd

Link to comment
Share on other sites

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