I am working on a code generator and running into a weird feature with string interpolation. With the code below in the button's on select property it generates the Add Media control as intended.
I have also put the controls into a formula in App Formulas. When I try to look up the YAML code from App Formulas the string interpolation does not pick up the formatting, it just grabs the code as is leaving the {Char(10)} and spaces inline.
Any ideas on how to make the look up work?
locControlYAML: Switch(
drpCodeGeneratorControlType.Selected.Type,
"Add Media",
$"- {udfGenerateControlName(
drpCodeGeneratorControlType.Selected.Type,
drpCodeGeneratorTargetScreen.Selected.Name,
txtCodeGeneratorControlName.Text
)}:{Char(10)} Control: AddMedia@2.2.1{Char(10)} Properties:{Char(10)} AlignInContainer: =AlignInContainer.Stretch{Char(10)} BorderColor: = fxAppDefaults.Theme.PrimaryFont.Clr{Char(10)} BorderThickness: =4{Char(10)} Color: =fxAppDefaults.Theme.PrimaryFont.Clr{Char(10)} Fill: =fxAppDefaults.Theme.{drpCodeGeneratorControlFill.Selected.Value}.Clr{Char(10)} Height: =75{Char(10)} LayoutMinWidth: =0{Char(10)} Size: =17{Char(10)} Width: =281{Char(10)} X: =(Parent.Width - Self.Width) / 2{Char(10)} Y: =(Parent.Height - Self.Height) / 2",