Enums

This forum is for programmers who have questions about the source code.
Post Reply
dcrider
Posts: 9
Joined: Sun Sep 29, 2019 11:03 am

Enums

Post by dcrider » Tue Jan 07, 2020 1:36 pm

Is there any place in the code where it would be possible to insert our own Enums? For example, we want to add some options to the "TreatPlanType" enum. We will be upgrading to 19.3 on January 18th, so it would be ideal if there was a hook or some other means already in place whereby we can add values to an Enum, but if we have to wait for a hook then we could find a temporary alternate solution.

User avatar
cmcgehee
Posts: 644
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Enums

Post by cmcgehee » Tue Jan 07, 2020 2:54 pm

We have a policy to not modify enums for plugins. What you could do is create a new database table that links to the TreatPlan table. In this table, you could put any custom enum values that you want.
Chris McGehee
Open Dental Software
http://www.opendental.com

dcrider
Posts: 9
Joined: Sun Sep 29, 2019 11:03 am

Re: Enums

Post by dcrider » Wed Jan 08, 2020 8:53 am

Thank you for the update.

Post Reply