Hi there! I am using VB.NET and Visual Studio 2017. I have three fields, MOTTLES, RCL, AND SEEPAGE, that all have domains with two values in them - absent and present. I want to read these values, and set fields that correspond to these categories as a default 'absent'. I've had some luck with setting a numerical default value, but am unsure how to refer to coded values. This is within my Public Sub New:
If IsNewRecord Then
Me.SAMPLE_ID = Constants.UserCollectionCount.sampleName
If OBSERVATION_TYPE = enumTillTypes.Geochem Then
A_BOUNDARY_UP = 0
I most recently created a property AllMottles to read through the values of the domain and check for a specific value: