Solved

Crystal Reports with Datasets - Modify Report

Posted on 2016-08-12
5
66 Views
Last Modified: 2016-08-15
There is a report that I'd like to modify that is part of some software that we use to report Non-Conformances (NC's) called uniPoint.  It is a Crystal Report.  I would need to add 2 tables to the report to pull the information I am looking for.  I have a basic understanding of CR but this one uses datasets and I am at a total loss of where to start.  What I need sounds relatively simple but I'm not sure where to go for help.
The report will have an NC Type that was the result of either 'Vendor', 'Customer' or 'In Process'.  The program has a form that will list either the Customer or Vendor ID.  Since this is a number it is meaningless to the users and they'd like to see the Customer or Vendor NAME.  Since the NAME is not in the existing table I will need to add them.
At one time, I had been able to link a Customer and Vendor (Supplier) table to the report and get it to run.  It worked fine when the NC Type of Vendor, but if it was Customer, then many of the fields were blank.
There are other issues I'm trying to figure out as well.  In order to get everything to fit on this form, neatly, I was going to put in a condition that if the NC Type equaled "Vendor" to suppress the Customer and visa-versa, that way I could squeeze those two fields together to make room for the NAME.  That would normally be an easy task for me but when I look at the form in Crystal it shows asterisks inside the TEXTBOX.  
Can anyone point me in the right direction?  Or do I need to start with a brand new report?
--sql-unipoint-Client-Reporting-U.vbproj
--sql-unipoint-Client-Reporting-User.rpt
0
Comment
Question by:ITworks
  • 3
  • 2
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 41754445
Looking at the report I would try to use it since it would be very complex to restart.

I assume you want to show the same information for customers and vendors or are they different?

You could use formulas like

If {NC Type } = 'Vendor' then
    {VendorNameField}
Else
   {CustomerNameField}

Open in new window


IN that way you don't have to suppress anything.

You could do the same for labels if you want to say Customer rather than Vendor

mlmcc
0
 
LVL 4

Author Comment

by:ITworks
ID: 41754447
That part I understand.  But the VendorNameField and CustomerNameField do not currently exist in the table.  So I need to add these tables, which I did but now the report will work on NCType Vendor but not on NCType Customer.  When I run a NCType Customer, many of the fields like the NC#, NCR Date, Total Qty, Item, Description, etc., etc. do not display.  I asked uniPoint about this and they said it was because they use datasets.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 41754541
DId you join the tables in as left outer?

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 41754542
If these are third party reports you might ask them to modify the dataset to include the data you want.

mlmcc
0
 
LVL 4

Author Closing Comment

by:ITworks
ID: 41756297
That was all it was.  I didn't link it correctly!   Duh!
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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 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

18 Experts available now in Live!

Get 1:1 Help Now