Notifications
Announcements
No record found.
Hi,
I created an enum with multiple values where this enum is used in a table.
I created a query with this table and i put a range in the value property MyEnum::Value2 and i didn't get anything however when i put in the value property 2, i got the result correctly. Why is that?
You can put "Value2" in the query range value and it should work as well. You need to mention the actual value and not the enum type
The MyEnum::Value2 probably has the "enum value" 2 which is why it worked for you.
Hi JuniorAX,
You can use enum value (2) or enum symbol (Value2, but not MyEnum::Value2). Using enum symbol is the recommended way for extensible enums.
Hi Gunjan,
yeah it has the same value. Which is better to put the value or the number?
but i once created a view and put a range on the field and filled the value property with <MyEnum::Finish and it worked, so what makes that different?
Hi Sergie,
Thanks but as i mentioned in my previous reply, is that i once created a view and put a range on the field and filled the value property with <MyEnum::Finish and it worked, so what makes that different?
Hi, Junior_AX,
So you mean that MyEnum::Value2 didn't work, by MyEnum::Finish works?
Anyway, recommended way is to use the enum symbol (Finish), instead of the enum value. In case if you decide to re-number values in enum (it's rare case, but anyway it's possible) you don't need to fix ranges in queries. For extensible enums you will get BP warning about using enum symbol.
Using the name is the common practice. For an example, in SalesTableListPage query, the range ReturnStatus has values provided with Enum names -
I have not tried putting the whole value of the Enum in a query. Could you share a screenshot of what you did in the view?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 467 Super User 2025 Season 2
Martin Dráb 420 Most Valuable Professional
BillurSamdancioglu 241 Most Valuable Professional