Solved

Visual Studio 2005 Crystal Reports multiple datasets iteration

Posted on 2007-03-28
8
545 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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
 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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