Posted 21 January 2020, 11:51 pm EST
Hello,
I have several ActiveReports 6 RPX reports that use and XmlDataSource and XPath fields.
Here is an example :
<Section Type="GroupHeader" Name="Entête_Empr" Visible="0" Height="144" DataField="../Destinataire/IDEMPR_RESP" BackColor="16777215" />
The conversion process gives the following result :
<GroupExpression>=../Fields!Destinataire.Value/Fields!IDEMPR_RESP.Value</GroupExpression>
I suppose that ActiveReports tried to create a DataSet based on the XmlDataSource. But it seems that the XPath expressions are not handled the right way.
The generated RDL DataSource looks like this :
...
<DataSets>
<DataSet Name="DataSet1">
<Fields>
<Field Name="Destinataire">
<DataField>Destinataire</DataField>
</Field>
<Field Name="CP">
<DataField>CP</DataField>
</Field>
...
Editing the generated RDL report to set XPath manually back actually works. And the code then looks like this :
<DataSet Name="DataSet1">
<Fields>
<Field Name="IDEMPR_RESP">
<DataField>../Destinataire/IDEMPR_RESP</DataField>
</Field>
<GroupExpression>=Fields!IDEMPR_RESP.Value</GroupExpression>
Could you confirm this behaviour ?
Thanks for your attention