Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Visual Studio 2005 Crystal Reports multiple datasets iteration

Posted on 2007-03-28
8
546 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
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.

 

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 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