本帖最后由 Crystal.Li 于 2021-12-2 16:34 编辑
调用 DesignerInstance.setDataSourceTemplates 方法时,报表设计器提示:无法打开报表“Report”,因为该报表存在内部错误。
我尝试将以前为null的ConnectString更改为“”后此错误依然存在。
升级前正常
以下是setDataSourceTemplates方法的参数:
[{"id":"HealmrDataSource","title":"休闲乐数据源","canEdit":false,"shouldEdit":false,"template":{"Name":"HealmrDataSource","ConnectionProperties":{"DataProvider":"JSONEMBED","ConnectString":""}},"datasets":[{"id":"User","title":"User","canEdit":false,"shouldEdit":false,"template":{"Name":"User","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.User"},"Fields":[{"Name":"MerchantName","DataField":"MerchantName"},{"Name":"GroupName","DataField":"GroupName"},{"Name":"UserName","DataField":"UserName"},{"Name":"UserCode","DataField":"UserCode"},{"Name":"PhoneNumber","DataField":"PhoneNumber"}]}},{"id":"Houses","title":"Houses","canEdit":false,"shouldEdit":false,"template":{"Name":"Houses","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.Houses"},"Fields":[{"Name":"HouseCode","DataField":"HouseCode"}]}},{"id":"GetDateTime","title":"GetDateTime","canEdit":false,"shouldEdit":false,"template":{"Name":"GetDateTime","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.GetDateTime"},"Fields":[{"Name":"StartDateTime","DataField":"StartDateTime"},{"Name":"EndDateTime","DataField":"EndDateTime"}]}},{"id":"Title","title":"Title","canEdit":false,"shouldEdit":false,"template":{"Name":"Title","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.Title"},"Fields":[{"Name":"S","DataField":"S"}]}},{"id":"UserTitle","title":"UserTitle","canEdit":false,"shouldEdit":false,"template":{"Name":"UserTitle","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.UserTitle"},"Fields":[{"Name":"UserTitle","DataField":"UserTitle"}]}},{"id":"SumOrders","title":"SumOrders","canEdit":false,"shouldEdit":false,"template":{"Name":"SumOrders","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.SumOrders"},"Fields":[]}},{"id":"ArraySelect","title":"ArraySelect","canEdit":false,"shouldEdit":false,"template":{"Name":"ArraySelect","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.ArraySelect"},"Fields":[{"Name":"StartDateTime","DataField":"StartDateTime"},{"Name":"HouseCode","DataField":"HouseCode"},{"Name":"EndDateTime","DataField":"EndDateTime"}]}},{"id":"Visitor","title":"Visitor","canEdit":false,"shouldEdit":false,"template":{"Name":"Visitor","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.Visitor"},"Fields":[]}},{"id":"OrdersOther","title":"OrdersOther","canEdit":false,"shouldEdit":false,"template":{"Name":"OrdersOther","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.OrdersOther"},"Fields":[]}},{"id":"OrdersType","title":"OrdersType","canEdit":false,"shouldEdit":false,"template":{"Name":"OrdersType","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.OrdersType"},"Fields":[]}},{"id":"HouseOrder","title":"HouseOrder","canEdit":false,"shouldEdit":false,"template":{"Name":"HouseOrder","Query":{"DataSourceName":"HealmrDataSource","CommandText":"jpath=$.HouseOrder"},"Fields":[]}}]}] |
|