I'm starting to use User Defined Types to help make my code more robust. I've encountered a small (self inflicted) problem. I'm using the "Enabled When" functionality to dynamically enable/disable UI components. I've got one section where a user can select either "Requester" or "Other" as a recipient (these values are in the UDT). I've been using an integer counter to track what step the user is on so the logic for my "other" would be "enable other when Step=6 and Selection=XXX. It's the selection I'm having the problem with. I can't rely on the List Index of the drop list as if I add more options later on the order may change. If I use the literal string values to determine where I am then I have to edit code if I add another value.
Is there any mechanism in CSI that adds a numeric value to the UDT? Worst case, I'll have to modify a single inline script, but then I'm storing the string in two places: UDT and the inline script. Very possible I'm overly complicating things. Thanks in advance!