Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: XML Mapping With CR2008 Post Reply Post New Topic
Author Message
SSMJ
Newbie
Newbie
Avatar

Joined: 11 Mar 2015
Online Status: Offline
Posts: 2
Quote SSMJ Replybullet Topic: XML Mapping With CR2008
    Posted: 31 Mar 2015 at 2:22am
Hi All
i have an issue in mapping xml in crystal reports.. I'm facing issue like xml tag contains mutilpe values if i map that xml tag in CR it is displaying only one value in detail section ..if it is having 5 values then it is taking 5 detail section in 5 pages but i need all the values to be displayed in one detail section  in one page.
i have tried formula using variable but of no use. can anyone help me please. 
 
for example
 if <xml tag> contains values like 1,2,3,4,5
then in CR if i map that tag in details feild
m getting output like
detals a   1
details b  2
details c  3
details d  4
details e  5
 
but i need output in the way below
details a 1
             2
             3
             4
             5
 
Plz Help..Ouch
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 01 Apr 2015 at 7:14am
I guess I am unclear. You are saying that your column value is <col>1,2,3,4,5</col>? and that the column is a number value as opposed to something like a string?

I would think that if it is a string, that it would display as 1,2,3,4,5...and to alter that you could split it and manually enter in the CRLF so that CR will display it as desired.
IP IP Logged
SSMJ
Newbie
Newbie
Avatar

Joined: 11 Mar 2015
Online Status: Offline
Posts: 2
Quote SSMJ Replybullet Posted: 01 Apr 2015 at 8:11pm

Thanx for the reply.It is not the column value actually..i think u didnt get my question..

 
The database m using in CR is xml.In the database field m having all the xml tags.if i select name tag and browse data by right clickng that name tag i can see all values (apple,orange,banana,fig) given below. 
this is xml tag Example  :
<name>apple</name>
<name>orange</name>
<name>banana</name>
<name>fig</name>
 
if i drag this name tag into design section.. then it is showing one name in one detail section but i need all in one details section..
 
will they be any formula for iterating these values.Now can you able to understand my question. Sorry if you still unable to get my question
 
Any suggestions can be appreciated..Thanx in advance
 
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 02 Apr 2015 at 12:18pm
Not sure how you are going to get this to work at a detail level. Crystal is treating each xml tag group (i.e,  <name>apple</name>) as a row as it should and thus there should be one per detail line.  If you are grouping then you may be able to build a string (in a formula) to make it appear as one detail line in a Group Footer.
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.031 seconds.