Fetch the field names from the datasource
Function GetFieldNames( from_db )
boolean from_db (optional)
false (default) - get the names from the dictionary structure configured into the project
true - retrieve the actual field names from the database itself