Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I'm trying to create a report which will put the number of found records in a global field within the report layout. I also need an average rating from a field in the found set to be put into the report.

Both of these problems seem easy enough when working over all the records in the database but not when working on a found set! There is probably an easy enough answer to this one so a script pointing me in the right direction would be much appreciated.

Posted

Try with the GetSummary () function

Find records

Sort them on the Break field -- this is a must do

Use the step

Set field (global, GetSummary (YourSummaryField, break field)

Since in your case you're not subsummarizing (breaking) the found set by any field create a Constant field, calculated =1 and sort on that ... sorting is necessary else the GetSummary function won't calculate properly

YourSummary field would be the total field or the average field you mention ...

Posted

If you want to show the number of records in a found set on a report, just put the text "@@" on the layout. To show an average of a field in the found set, create a summary field ( average of field xxx), and put it on the layout. It will only average the records in the found set.

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