That doesn't surprise me. A lot of those tricks only work in the Query by Example spaces. This one is primarily for use in Conditional Expressions, Relationships and other things that translate before they execute. If you try it in the "Status" field it will translate, but effectively it's just doing your
status = (select value from maximo.synonymdomain where domainid = 'WOSTATUS' and maxvalue in ('CAN','CLOSE')).
Of course, in this case, you can just use historyflag = 1.
------------------------------
Scott Mahon
------------------------------
Original Message:
Sent: Sat June 12, 2021 10:00 PM
From: User1971
Subject: Concise way to query for status synonyms?
I came across an blog post called Implicit Variable of Domain Synonym List in Relationship Where Clause - SQL
I think that article is suggesting that there is a more concise way of querying for status synonyms than using a subquery on the SYNONYMDOMAIN table.
The blog post is fairly light on the details.
I tried putting this into the WOTRACK WHERE clause: (but got a generic SQL error)
status = :&synonymlist&_wostatus[CLOSE,CAN]
What am I doing wrong? Do I need to do something with a relationship?
Thanks.
#AssetandFacilitiesManagement
#Maximo