in DB we use tinyint (type), afterwards we create a interface from builders use table 1(where radio button contains like gender either male or female) but it is different from db to interface data type then how to do?
Discussion posts and replies are publicly visible
It's because you have TINYINT at backend right? And you are using same constant for choiceLables and choiceValues so whenever you are clicking MALE the VALUE saved will be "MALE" which is string. So, it's not getting saved either take VARCHAR at the backend or just provide {0,1} in choiceValues 1 for MALE and 0 for FEMALE.
a!radioButtonField(
label: "Gender",
labelPosition: "ABOVE",
choiceLabels: cons!HCMS_GENDER,
choiceValues: {0,1},
value: ri!HCMSCUSTOMERDETAILS.gender,
saveInto: ri!HCMSCUSTOMERDETAILS.gender
),
Copy and Try