Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: Link Tables Post Reply Post New Topic
Author Message
nahalrazeghi
Newbie
Newbie
Avatar

Joined: 02 Sep 2012
Location: Iran
Online Status: Offline
Posts: 11
Quote nahalrazeghi Replybullet Topic: Link Tables
    Posted: 10 May 2013 at 8:56pm
I'm using the Report Wizart to import an XML file and I'm getting the message "Unable to smart link unlinked tables". Why is this happening?

I am also including the schema file which indicates primary and foreign keys.



<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<Student>
    <StudentID>0</StudentID>
    <Name>A0</Name>
</Student>
<Student>
    <StudentID>1</StudentID>
    <Name>A1</Name>
</Student>
<Student>
    <StudentID>2</StudentID>
    <Name>A2</Name>
</Student>
<Student>
    <StudentID>3</StudentID>
    <Name>A3</Name>
</Student>
<Mark>
    <StudentID>0</StudentID>
    <Mark>10</Mark>
</Mark>
<Mark>
    <StudentID>1</StudentID>
    <Mark>11</Mark>
</Mark>
<Mark>
    <StudentID>2</StudentID>
    <Mark>12</Mark>
</Mark>
<Mark>
    <StudentID>3</StudentID>
    <Mark>13</Mark>
</Mark>
</NewDataSet>


and Schema is :

<?xml version="1.0" standalone="yes"?>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Student">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="StudentID" type="xs:string" />
              <xs:element name="Name" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Mark">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="StudentID" type="xs:string" minOccurs="0" />
              <xs:element name="Mark" type="xs:string" minOccurs="0" />
              <xs:element name="MarkID" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//Student" />
      <xs:field xpath="StudentID" />
    </xs:unique>
    <xs:keyref name="ReportPhone" refer="Constraint1">
      <xs:selector xpath=".//Mark" />
      <xs:field xpath="StudentID" />
    </xs:keyref>
</xs:element>
</xs:schema>


even i remove link and create link manually but i cant display my report :(
why is that incorrect ? what am i doing wrong ?


please help me ,

Nahal
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 20 May 2013 at 10:50am
have you tried exporting your data with the schema embedded as 1 file?

I don't know if this will solve anything, just 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.