title: Using the PreprocessQuery method in a Local Query
body: <p>I've a master/detail relationship like the one shown in the picture below</p>
  
  <p><img src="https://i.stack.imgur.com/s2y51.png" alt="enter image description here"></p>
  
  <p>I need to filter the data shown in the OrderHeaders table so I've edited the <strong>local query</strong> (by clicking the Edit Query link in the screen) but part of the filter is based on a <strong>Computed Property</strong> so I need to use the <strong>PreprocessQuery</strong> method because the Computed Properties doesn't appear in the query's "Filter" section.</p>
  
  <p>But now I've a problem, in the local query the "Write Code" ComboBox is not available like in a Global Query like is shown in the picture below</p>
  
  <p><img src="https://i.stack.imgur.com/SYZsd.png" alt="enter image description here"></p>
  
  <p>So I don't know how to create the PreprocessQuery method in the local query.</p>
  
  <p>Can someone tell me how to create it?</p>
  
  <p>If it's not available for <strong>local queries</strong> is there another way to filter by a Computed Property?</p>