Question

Accessing a Custom Enumeration using expression

  • 23 April 2024
  • 4 replies
  • 34 views

Badge +2

Hi,

 When creating custom attributes, for inbuilt enumerations, I can use:

enumeration_name_Api.decode(‘db_value’);

 

But when I create a custom enumeration and try to use the same expression, it gives me errors.

Any idea on how to access a custom enumeration using a statement?

Error:
CUSTOM_ENUMERATION_API"."DECODE": invalid identifier

 

Please help


4 replies

Userlevel 7
Badge +15

shared with @deshan.ekanayake @Pushpa Veerappan @Jitharie @Madawa Boragolla - Please try to answer Kalindu 🙂.

Badge +2

Hello Mayura!!!!! :)
Really nice to hear from you!  


Thank you!
 

Badge +2

Hello, 
 Nevermind, I figured it out. It should be:
enumeration_name_CFP.decode(‘db_value’);

 

Thank you!

Userlevel 7
Badge +15

Hello Mayura!!!!! :)
Really nice to hear from you!  


Thank you!
 

🙂🙂

Reply