Using DataSet and CustomBean together to build template (LINQ)

Hi Rakesh,

Thanks for your inquiry. We are working over your query and will get back to you soon.

Best regards,

Any update on this.

Hi Rakesh,

Please check your original requirement. You asked for using of different objects in the same template. Our new feature of accessing of multiple data source objects covers this request. Moreover, the feature was agreed with you here and here before implementing.

But now it appears that you want to use the same name for different data sources. This is a new requirement from you. At the moment, there is no way to achieve this. However, we have the following notes:

  1. You do not need to use prefixes for “tables” at all. Instead, you just need to use a prefix for IDataRecord providing all “fields”. That is, if you pass “bean” and “table1” as names of data sources to ReportingEngine.buildReport, you may use the following syntax in your templates: “bean.field1” and “table1”.

  2. Due to the fact that we had a few requests on shortening of expression syntax, we were thinking of introducing of expression aliases. That is, for example, an expression like “obj.field1.field2…” could be shortened to just “alias1”. With this way, your requirement in particular could be satisfied as well. However, the feature request is not registered in our issue tracking system yet.

  3. Regarding your request about using of nested IDataRecord/IDataReader instances, it is not supported by design as explained here.

Please feel free to ask if you have any questions.

Best regards,

A post was split to a new topic: Introducing of expression aliases in LINQ Reporting Engine