Added set_field_value_in_sample

Signed-off-by: Alejandro Alemán <aaleman@cipf.es>