adrian@elaboro.pl napisał(a):
wzorcowe  rozwiązanie takiego zagadnienia można zobaczyć na http://www.elaboro.pl
wzorcowe było by z możliwością instalacji na swoim serwerze...
<?xml version="1.0" encoding="utf-16"?>
<EntityMappingList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <QuerySet>
    <QuerySet key="q1">SELECT tw_WWW, tw_Pole1, tw_Nazwa + ' ' + tw_Opis AS [nazwaTw], COALESCE([tw_Masa], 0) AS [masa], CAST(COALESCE(vat_Stawka, 0) AS INT) AS [stawkaVat] FROM tw__Towar
LEFT JOIN sl_StawkaVAT ON vat_Id = tw_IdVatSp WHERE tw_Id = '$twId';</QuerySet>
  </QuerySet>
  <EntityMapping>
    <EntityMapping>
      <AttributeCode>datasheet</AttributeCode>
      <Value>q1.tw_WWW</Value>
    </EntityMapping>
   <EntityMapping>
      <AttributeCode>opiekproduct</AttributeCode>
      <Value>q1.tw_Pole1</Value>
    </EntityMapping>
   <EntityMapping>
      <AttributeCode>name</AttributeCode>
      <Value>q1.nazwaTw</Value>
    </EntityMapping>
   <EntityMapping>
      <AttributeCode>weight</AttributeCode>
      <Value>q1.masa</Value>
    </EntityMapping>
  </EntityMapping>
</EntityMappingList>