Solved

Visual Studio 2005 Crystal Reports multiple datasets iteration

Posted on 2007-03-28
8
542 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
Comment Utility
What do the tables look like?

Can you link them?

mlmcc
0
 

Author Comment

by:vamshi25
Comment Utility
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
Comment Utility
Is there a single record per test?

mlmcc
0
 

Author Comment

by:vamshi25
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
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
Comment Utility
0
 

Author Comment

by:vamshi25
Comment Utility
Thanks for your help, VS2005 walkthroughs helped.
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Glad i couldhelp

mlmcc
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

10 Experts available now in Live!

Get 1:1 Help Now