How to display multiple rows from a record horizontally.

Posted on 2008-02-11
Medium Priority
Last Modified: 2010-04-21
I've seen some of the responses about using the multi-column layout for the details section - but I'm not sure if it would apply here.

I have the data I need in a view. I've got an account which is what I'm grouping by, and then a party that is linked to that account. In the view, there is a separate row for each party:
Account 1 Party 1
Account 1 Party 2
Account 2 Party 1
Account 2 Party 2
Account 2 Party 3
Account 2 Party 4
Account 3 Party 1

In the report, I need to display the list of parties as such:

Statement Recipients------------------------------------------ (header)
Name               First Party Name            Second Party Name (if exists)          Third Party Name (if exists)
Address          First Party Address       Second Party Address (if exists)     Third Party Address(if exists)
Frequency       First Statement  Freq.    Second Statement Freq(if exists)     Third Statement Freq

I figured I would put the "First Party Name" as a formula field.

I then made this formula:
if len({vAccountInfo.FIRST_NAME}) > 0 AND len({vAccountInfo.LAST_NAME}) > 0  then
{vAccountInfo.FIRST_NAME}+' '+{vAccountInfo.LAST_NAME}

I would then end up with three formula fields called
First Party Name, Second Party Name, and Third Party Name respectively and put them in the section in the appropriate place. My question is what would I add to the formula above to identify the 1st, 2nd, or 3rd record of that particular Account Number? I thought of using RecordNumber = 1, 2, or 3  but I think that is more for the first record of the whole view - not within that grouped Account Number.

Question by:rreimund
  • 3

Author Comment

ID: 20867995
BTW, I need to do this for three different Party types - which is why I thought doing it in the Details sections wouldn't work well.

Statement Recipients: _---------------

Authorized Signatures: ------------

Authorized Contacts: ------------

LVL 101

Accepted Solution

mlmcc earned 1500 total points
ID: 20872505
You could use a formula to count the records in the group.

IN the report header
Name - DeclVars
Global NumberVar MyRecordCount := 0;
' '

IN the group header
Name - ResetCount

Global NumberVar MyRecordCount;
MyRecordCount := 0;
' '

In the detail section
Name - DispCOunt

Global NumberVar MyRecordCount;
MyRecordCount := MyRecordCount + 1;

If MyRecordCount = 1 then
Else if MyRecordCount = 2 then


Author Comment

ID: 20998862
I've been side tracked on this issue, but I'm going to come back to it probably this week or next...
So I haven't been able to determine if this worked yet or not.

Author Closing Comment

ID: 31429861
Just wanted to close this out as I haven't yet gotten back to this task.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…

624 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