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

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

Recommended Posts

Posted

I have a report that is broken into sub-summaries.

I wish to be able to count how many different summaries there are. How do I achieve this.

I tried using count(fieldname) (fieldname = the field that the summary is sorted by) but it always returned 1.

Posted

GetSummary() retrieves the sub-summary value of a summary field. It's the same value you see when you place the summary field in a sub-summary by breakfield part.

Posted

Thanks.

This seems to work in the layout, when I have the final count in the sub-summary by which I want to count. However, when I assign it to a variable in a script, it always returns 1.

How can I work around this?

Posted

got it!

actually, appears not. i thought it was working, but then changed my script and now it's not giving the right value, but am finding it the same way as before.

i have it enter preview mode, grab the value from the field, and then return to browse mode. this works for a different field, but not this one. strange.

Posted

It's not necessary to enter Preview mode. However, records must be sorted.

BTW, If you only want to populate a variable, you could have let the script do the count and eliminate the extra fields.

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