Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: XML Datasource Post Reply Post New Topic
Author Message
WiglWagl
Newbie
Newbie


Joined: 23 Aug 2016
Online Status: Offline
Posts: 5
Quote WiglWagl Replybullet Topic: XML Datasource
    Posted: 31 Aug 2016 at 1:12am
Hi,

new day, new question. Now we try to bind our report to a xml-datasource
dunring runtime.

The report was designed years ago and bound to a ttx file.
The ttx file includes also the declatation of the variables and look like this:

he     string    255    Zeichenfolge
tplatz     string    255    Zeichenfolge
tlager     string    255    Zeichenfolge
tlgruppe     string    255    Zeichenfolge
klag    boolean    Falsch
ymhd    datetime    XXX
yvhe     string    255    Zeichenfolge
ymgele    number    0
yartliefnr     string    255    Zeichenfolge
ylagername     string    255    Zeichenfolge
ybio    boolean    Falsch
ywterm    datetime    XXX
yistmhd    boolean    Falsch

Now we try to fill the report with data out of a xml-file, which includes all the fields. Is it possible to define the variable-type in xml, like:

Now:
<he>teststring</he>

???
<he typ="string">teststring</he>

The problem is, that the report throws an error:

Error in Formel (we no the formel is ok and works in the old way).
'if {VLS.he} = "Lieferschein"

"Here a number field or a currency amount field is required."

But why the field is declared as string!

Thanks a lot
Best Regars
RM
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 02 Sep 2016 at 12:46pm
Have you tried verifying the database against the new .xml file?

I don't know about changing the extension, but when I changed the schema in my xml files, I would need to verify to get the report to understand everything.

it's a thought
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.016 seconds.