This is a relatively easy thing to do typically. Simply drop the label and change the text property to something like ComboBox.Selected.RecordName. That usually works. But in my situation it fails.
Here is my issue. I am populating a form with data from a global variable. Now, the form gets populated as expected. The problem is that I have labels that look for the selected value and most work with the exception of the dependent combo boxes. These combo boxes are using code that looks like this for their DefaultSelectedItems.
{
Value:
If(
varResetSubLedger,
Blank(),
Parent.Default
)
}
Now, there is a value in the combo box. Rolling over the Parent.Default in the code above shows me the expected value but the label doesn't show the selected value. The label is using this code.
CB_SubLedger.Selected.'Sub Ledger Name'
Rolling over 'Sub Ledger Name', in the previous code, says the selected value is blank. My other labels, not associated with child/dependent combo boxes, return a value. Seems like there is some issue with how I set the DefaultSelectdItems. I think. Anyone have an idea what is going on?
NOTE: For reference, I am checking varResetSubLedger because the parent is using this for the OnChange property
UpdateContext({varResetSubLedger: false});
UpdateContext({varResetSubLedger: true});