Solved

Reset Formula for Each Group

Posted on 2008-10-28
2
903 Views
Last Modified: 2013-11-15
I am trying to build a report where I concatenate a buch of email addresses, but I can not figure out how to reset the var on each group change. Can any one help Please
WhileReadingRecords;

Global stringVar VEmail;
 

// need code to reset VEmail on the change of each group. 
 

VEmail := VEmail & {sql_Group.Contact Email} & "; ";
 

VEmail & "Smith@Smith.com";

Open in new window

0
Comment
Question by:rdornisch
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 22823793
In the group header use another formula field:

//@reset
Global stringVar VEmail:="";
""

I think I would be surprised if you could do this
 'whilereadingrecords'

I would have expected 'WhilePrintingRecords'
in both formula fields.
0
 

Author Comment

by:rdornisch
ID: 22823937
Thanks Peter, that did it, my only issue is I am getting the last email for each group showing 2 times.
Also I did have to change it to WhilePrintingRecords.
Any thought on how to Stop the Dup issue?
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now