Solved

Visual Studio 2005 Crystal Reports multiple datasets iteration

Posted on 2007-03-28
8
544 Views
Last Modified: 2013-11-26
I am developing a program in Visual Studio 2005, using VB.NET 2005. Back end of the program is SQL Server Express 2005.
I am hoping someone could help me how to design a report using Crystal Reports in Visual Studio 2005.
I have two Tables
ControlWorkSheet and JMF
--> ControlWorksheet has data for each Test Sample
--> Each Test Sample is associated with a Unique JMF Number
--> Typically for each Test Sample there are 4-5 tests done and saved in ControlWorkSheet Table as TestA, TestB, TestC, .. etc
--> The report i have to make should show data for Each TestA, TestB, etc in a column, Next to it a column of Values associated with the Unique JMF Number and its associated values from the JMF Table

Sample report should look like below

TestA   JMFValues     TestB    JMFValues    TestC   JMFValues etc
abc       def                 ghi             jkl               mno      pqr
123     456                  789           101             121       134

When the user selects Tests for SAmple
I can find out all the tests associated with the sample here for example TestA, TestB, etc
from that i can also find out the Unique JMF number assigned to that particulat TEstA, TestB, etc

When i pass the dataset to teh crystal report, how would i pass the values for 4 Tests and 4 JMF values when i am using one dataset for example here "dsControlWorksheet" and "dsJMF", because the values i drag and drop onto crystal report are the same in how ever many tests A,B, C may be

How would i iterate threw the 4 Tests and iterate threw the JMF Numbers datasets and pass them to crystal report so that it can show the report like i tried to show above.

Any and All help would be greatly appreciated.
Thanks in advance.




0
Comment
Question by:vamshi25
  • 5
  • 3
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 18811525
What do the tables look like?

Can you link them?

mlmcc
0
 

Author Comment

by:vamshi25
ID: 18811620
ControlworkSheet Table has 122 Columns and JMF Table has 112 Columns. Column datatypes are all kinds, Floats, VarChars, Ints, Date/Time etc.

JMF Table is a static Table, values are predefined and populated. Its more like a reference table against which the TestA, etc values are checked.

Yes you can link them in Many to One Relation between Controlworksheet and JMF Tables (TestA, TestB, TestC etc may have the same JMF Number) or Many to Many Relation (TestA, TestB, TestC etc many each have a different JMF Number) because every controlworksheet ROW which is a test, i have one Column which is JMFNumber, JMFNumber is the primary key for the JMF Table.

Thank you mlmcc for taking time to help
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18812549
Is there a single record per test?

mlmcc
0
 

Author Comment

by:vamshi25
ID: 18813416
ControlWorkSheet Table has a unique single record for Each Test. The primary key has the information of the sample and what test number etc.
So Yes, There is a single record for each Test. Each Test has a unique JMF Number as one of the columns in that SINGLE RECORD FOR EACH TEST.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 100

Expert Comment

by:mlmcc
ID: 18813649
You can build the report against a query that joins the tables

Crystal works on one record at a time so you really don't iterate through records.

mlmcc
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 18813652
0
 

Author Comment

by:vamshi25
ID: 18870490
Thanks for your help, VS2005 walkthroughs helped.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18870626
Glad i couldhelp

mlmcc
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

943 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

17 Experts available now in Live!

Get 1:1 Help Now