Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Crystal Report display depends parameter Post Reply Post New Topic
Author Message
vmanis
Newbie
Newbie


Joined: 15 Nov 2011
Online Status: Offline
Posts: 8
Quote vmanis Replybullet Topic: Crystal Report display depends parameter
    Posted: 11 Sep 2012 at 11:17pm
Hi,
   I have designed crystal report with visual studio 2005 XML driver connectivity. created report through XML file XSD schema. more than 5 XML file data im having.

i drag & drop the 5 XML file fields in Reports.

i want to display the report data depends parameter from outside report.

ie, if i need,third XML file data means send one parameter for displaying that particular XML data then it will show in viewer.

i confused with send parameter from outside.

how to get particular XML data in viewer.

Thanks in Advance.
IP IP Logged
zanyar-Jalal
Newbie
Newbie
Avatar

Joined: 06 Sep 2012
Location: Iraq
Online Status: Offline
Posts: 12
Quote zanyar-Jalal Replybullet Posted: 12 Sep 2012 at 9:59pm
As I understood you want to get your data from an XML file
if you want to do that you can see this video, I think it is helpful:

http://www.youtube.com/watch?v=dnomvMPCVRQ&feature=relmfu
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 14 Sep 2012 at 9:48am
So, if I understand you correctly, although your report connects to 5 different XML files, you only want to show the data from one of them based on a parameter.  Is that correct?
 
Assuming that all five tables have the same number of fields, you would create a formula for each field you want to display and another one for each group you need on the report.  The formulas would be in this type of format:
 
Switch (
{?MyParam} = "1", {Table1.Field1},
{?MyParam} = "2", {Table2.Field1},
{?MyParam} = "3", {Table3.Field1},
{?MyParam} = "4", {Table4.Field1},
{?MyParam} = "5", {Table5.Field1},
True, "Not Found")
 
Use these formulas on the report instead of the actual fields.
 
-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.015 seconds.