Is it possible in AL Language to get a value from a table using the column name as stored in a string?
var
myColumn: Text;
myValue: Text;
myTable: Record "My Table";
// User will select this
myColumn := 'Name';
// This is what I would like to do or similar
// This should get the value thats held in myTable.Name
myValue := myTable.MyColumn.Value;
I need to do this as the column I need is determined by the user at runtime so it cant be hardcoded.
All help appreciated!