Page 1 of 1

Result in Expression Evaluation Tool but not Generic Table

PostPosted: Wed Nov 11, 2020 5:55 pm
by steven.suchting@boeing.com
I have Structured Expression that gives me the result I expect when I use the Expression Evaluation Tool (result is a Real number).
However, when I use that exact same Structured Expression as a Generic Table Derived Property, I get no result.
How do I get the result in the table that I see in the tool?

Here is the last step in the expression evaluation tool, showing the result:
2020-11-11 15_40_32-Start.png


The next-to-last step in the expression works fine (this is the argument to the Jython script). That result is a set of type Literal Real (aka LiteralRealImpl).
Here is the next-to-last step in the expression evalution tool, showing the result:
2020-11-11 15_46_17-Start.png


And here is the table showing the results that work and are visible, and the column where the result is not appearing.
2020-11-11 15_46_45-Start.png


How can I make a standard real number appear in the table? Does it need to be converted to some kind of NoMagic data type? And if so, how?
Thanks!

Re: Result in Expression Evaluation Tool but not Generic Table

PostPosted: Thu Nov 12, 2020 1:02 am
by ogirdor
Hi Steven,

this is difficult to answer without seeing the expression for the custom column/derived property, but this is typically a problem of not defining the correct return type. This is done in the expression window at the top just right of the column name. In your case you could take e.g. the Real primitive type.

Best regards

Re: Result in Expression Evaluation Tool but not Generic Table

PostPosted: Thu Nov 12, 2020 9:40 am
by steven.suchting@boeing.com
ogirdor - Thank You :!: :!: :!:

Your suggestion made me go back and look at the available return types again. I thought I had previously searched for a basic Real type, but didn't see it. :oops: I had tried LiteralReal without success, but now see the Real type as a primitive is also available and that works!

In case others have a similar issue in the future, I'm including one more graphic showing the successful expression dialog and its result in the table:
2020-11-12 07_36_56-Cortana.png


Thanks again! :D