Method to get Assigned Expression
Hello all,
I'm currently writing a custom JSP to summarise changes resulting from a Change Notice, I've managed to pull all the required data into the report except for Assigned Usage Expression (e.g. 'COLOUR= "GREEN"), which I'm struggling to get, does anyone know of an API method to retrieve this?
I've tried:
- WTPartUsageLink.getExpressionData() - Returns null, seems to just return the ExpressionData field from the WTPartUsageLink table, which is completely empty, guess it's a redundant field
- ExpressionHelper.getDisplayExpression(Expressionable, WTContainerRef) - Returns "{Display : "" , invalid: false}", not sure why it's taking a WTContainerRef argument as this shouldn't make a difference to the returned expression, so maybe it's not doing what the method name implies.
CS384380 states that there's no supported API to achieve this, however that's not to say there isn't one available. Worst case, I could always build the expression through QuerySpec, but it feels like reinventing the wheel, if anyone knows of a method for getting the expression then it would be greatly appreciated.
Thanks,
Graham


