I'm not sure I understand your last example. But I found something called Option Fields where I define a var of Type Option and associate the field to this variable and I'm now able to define the OptionCaption for the field. The result is a drop down. field(DestProvinceVar; DestProvinceVar) { Caption = 'Destination Province'; OptionCaption = 'AB, BC,MB,NB,NF,NS,NT,ON,PE,QC,SK'; } Unfortunately I haven't found a way to make my list dynamic. I wrote a procedure in a CodeUnit that gets the distinct Provinces and another one that gets the Cities, based on the selected provinces but I cannot find a way to use their return value. I cannot return a LIst of [Text] from the procedure. I converted one to a TextBuilder which should be comma separated but I cannot convert that to a String... Thanks Yann
↧