title: Returning a dataset / array from a Generic Inquiry in BLC / graph code
body: <p>I need to obtain a dataset or array of the results provided by a Generic Inquiry inside of BLC / graph logic.  </p>
  
  <p>I've been given the following as an example, but this obviously only returns a count.  </p>
  
  <pre><code>public class SOOrderEntryExt : PXGraphExtension&lt;SOOrderEntry&gt;
  {
  public PXAction&lt;SOOrder&gt; Test;
  [PXButton]
  [PXUIField]
  protected void test()
  {
      var dataGraph = PXGenericInqGrph.CreateInstance("GI000010");
      if (dataGraph != null)
      {
          var count = dataGraph.Views["Results"].SelectMulti().Count;
      }
  }
  }
  </code></pre>
  
  <p>When I use an index in the returned variable, I don't get anything that resembles a row of the actual data in the GI, for example:</p>
  
  <pre><code>dataGraph.Views["Results"].SelectMulti()[0]
  </code></pre>
  
  <p>This doesn't return the actual data.  I've tried the several methods / properties provided by the dataGraph.Views["Results"] object, but none give me the results I need.</p>
  
  <p>Is there a method or property that simply returns a dataset or array of the actual results of the Generic Inquiry?</p>