code: def set_sampling_info(self, sample):
          
          if sample.getScheduledSamplingSampler() and sample.getSamplingDate():
              return True
          sampler = self.get_form_value("getScheduledSamplingSampler", sample,
                                        sample.getScheduledSamplingSampler())
          sampled = self.get_form_value("getSamplingDate",
                                        sample.getSamplingDate())
          if not all([sampler, sampled]):
              return False
          sample.setScheduledSamplingSampler(sampler)
          sample.setSamplingDate(DateTime(sampled))
          return True
docs: Updates the scheduled Sampling sampler and the Sampling Date with the
          values provided in the request. If neither Sampling sampler nor Sampling
          Date are present in the request, returns False