Hi Community,
I have an BaseEnum "VehicleTyp" with the Elements "Car" (1) and "Truck" (2).
I have a Form "Rentals"
In that Form the EnumValue is not choosen, since I started the values with 1 and 2.
But I'd like to have a text in there, which say's "Choose" but without making a new Element.
I tried to override the initValue() in my rentalTable by saying "this.vehicleTyp = "Choose" ; but that doesn't make sense at all... just wanted to Show that I am thinking on how I can get it fixed.
Any recommendations ?
Thanks in advance
*This post is locked for comments
Hi Khasayar,
As @Crispin suggested create enum with "Choose" label. And write code in table validatewrite() method
try to pass init value in form level
That's most likely the fastest alternativ.
But I am afraid, that if then the end user selects choose (basically this Element 0 ) then it will be a data entry in the table.
But maybe I can then make changes in the Code, which basically doesn't allow an Element 0 entry in the table ?!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156