Hello all,
I am using a content snippet with a fetchxml to build a table. So far easy.
The problem comes when on the portal page I don't see anything, only the table header and no other data.
Using {{myquery.xml | escape}} I can get the fetchxml that is running on my portal page. The query I get is the following:
<fetch mapping="logical" version="1.0" distinct="true" output-format="xml-platform"> <entity name="cr3cf_portaldeproveedoreslneasdecompra"> <attribute name="cr3cf_portaldeproveedoreslneasdecompraid" /> <filter type="and"> <filter type="or" hint="union"> <condition attribute="cr3cf_contact" operator="eq" value="6d273a2f-84bb-ea11-a812-000d3ab1160e" /> </filter> </filter> </entity> </fetch>
But this is incorrect, here's the fetchxml from my code snippet:
{% fetchxml purchlines %}
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="cr3cf_portaldeproveedoreslneasdecompra">
<attribute name="cr3cf_portaldeproveedoreslneasdecompraid">
<attribute name="cr3cf_remainqty">
<attribute name="cr3cf_purchunit">
<attribute name="cr3cf_purchid">
<attribute name="cr3cf_price">
<attribute name="cr3cf_linenum">
<attribute name="cr3cf_lineamount">
<attribute name="cr3cf_itemname">
<attribute name="cr3cf_itemid">
<attribute name="cr3cf_discpercent">
<attribute name="cr3cf_discamount">
<attribute name="cr3cf_deliverydate">
<attribute name="cr3cf_contact">
<attribute name="cr3cf_categoryname">
<attribute name="cr3cf_purchaseheader">
<order attribute="cr3cf_linenum" descending="false">
<filter type="and">
<condition attribute="cr3cf_purchaseheader" operator="eq" uitype="cr3cf_portalproveedorescabeceradecompras" value="{{request.params.id}}">
</condition></filter>
</order></attribute></attribute></attribute></attribute></attribute></attribute></attribute></attribute></attribute></attribute></attribute></attribute></attribute></attribute></attribute></entity>
</fetch>
{% endfetchxml %}
It is totally different from the one that appears when executing {{myquery.xml | escape}}, has this happened to someone else? Can you help me?
I attach a document where I better explain the problem.
Thanks!