on 06-23-2010 6:50 PM
I have a sub report shows Note Type (in Group Header)
and Note_Text.
This report should show concatenated Note Text records under each Note_Type.
I set up formulas like this.
(Group Header #1)
Note_Type @HeadG
WhilePrintingRecords;
Global StringVar ConCat ;
if not inrepeatedgroupheader then ConCat := "";
(Details ) Suppress
(Group Footer #1)
@Test1
WhileReadingRecords;
Global StringVar ConCat;
if not IsNull({VW_CHANGE_NOTES.NOTE_TEXT}) then
(
ConCat := (ConCat + {VW_CHANGE_NOTES.NOTE_TEXT});
)
Database table is like this
Note_Type Note_Text
-
-
DOC aaaa
DOC bbbb
EST cccc
REV dddd
Report should look like this
DOC
aaaabbbb
EST
cccc
REV
dddd
But now the report shows like this
DOC
aaaabbbb
EST
aaaabbbbcccc
REV
aaaabbbbccccdddd
How can I separate Note_Text just each Note_Type?
Thank you.
Create a formula
Shared StringVar ConCat;
ConCat := (ConCat + {VW_CHANGE_NOTES.NOTE_TEXT});
and put it in the Detail line. (Suppress it )
Then put a formula in the Group Footer that says
Shared stringvar ConCat;
put a formula in the Group Header that says
Shared StringVar ConCat ;
ConCat := '';
Then Uncheck "Keep Object together" at Group Footer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.