RPX to RDL conversion loses XPath DataFields

Posted by: peter.smith on 21 January 2020, 11:51 pm EST

  • 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

  • Posted 23 January 2020, 5:58 pm EST

    Hello,

    I am able to reproduce the issue at our end. I will escalate the issue to our development team(278219) and inform you once I get any reply from them.

    Thanks.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels