Task #39887: adding ability to save flat field values

new method in createContext to save flat values of the fields