title: How to update a DataSource field values?
body: <p>I need to update a DataSourceTextField. Basically I do this in my code:</p>
  
  <pre><code>    DataSourceTextField partDataSourceField = new DataSourceTextField(
              partFieldName, constants.partTitle());
      partDataSourceField.setValueMap(partCodesList);
  
      documentsResultDataSource.setFields(partDataSourceField,
              titleDataSourceField);
  </code></pre>
  
  <p>That code, generates a "part" list on the DataSource for me to filter the results.</p>
  
  <p>What I've been trying is this dynamically change this list to set it to show only the values that are available on the results. I've tried this with no avail:</p>
  
  <pre><code>        DataSourceField partField = documentsResultDataSource.getField(partFieldName);
          LinkedHashMap&lt;String, String&gt; partCurrentCodesList = new LinkedHashMap&lt;String, String&gt;();
          partCurrentCodesList.put("Test", "Test");
          partField.setValueMap(partCurrentCodesList);
  </code></pre>
  
  <p>Is it possible to accomplish what I need?</p>