Hi all,
I am trying to use a EC Expression for a Reports Calculated Column Expression and can't seem to find a way to relate the expression to the model object being reported,
eg. i would like to use an expression like "this.GetElement().Name" to get the Name property of an element or a property using "this.GetElement().GetDisplayValue("xxx")" , however, i can't get this to work.
Is there some special syntax to get the report to select the current model object to retrieve values using Calculated Column Expressions?
Regards,
Mark
Any comments from the Bentley team clarifying how these expressions work?
OpenRoads Designer 2022 R3 (10.12) | Microstation 2023 | ProjectWise CE 3.4
Hi Jon, i posted a bad example as thats a property i use in ORD for Named elements. A better example for this would be this.GetElement().ElementDescription
Mark Shamoun said:I would like to use an expression like "this.GetElement().Name" to get the Name property of an element
A DGN element doesn't have a name. It does have a description. That is shown in our Area Report example...
Regards, Jon Summers LA Solutions
Mark Shamoun said:im hoping that the Expressions are not just limited to Report Column data
I think it's all about what symbol provider is configured to be available for "reports engine".
Mark Shamoun said:and can somehow be extended to operate on the objects being reported also.
Expressions in reports are Technology Preview, so I guess it is good time to discuss such extension here or to create an idea.
I do not know how reports work internally, so maybe existing flexibility (reports can work with plenty of objects, not only graphical elements) makes implementation of "elements specific" expressions complicated?
Mark Shamoun said:If so, it will allow users to get the most out of their data in Reports, otherwise quite limiting in my opinion.
From my point of view it looks like that expressions, accessing elements data, should be part of Items, attached directly to elements. And expressions, working with reports itself, should be part of report definition.
But maybe it's only because of early development stage and such feature is planned already ;-)
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thanks Jan, im hoping that the Expressions are not just limited to Report Column data and can somehow be extended to operate on the objects being reported also. If so, it will allow users to get the most out of their data in Reports, otherwise quite limiting in my opinion.