title: Attributes get parent field inside PXFormula
body: <p>I have a custom field I have a PXFormula attribute with a pretty simple Switch inside where I want to show the assedCD of a FixedAsett if there is no ParentAssetID or show the Parent.AsseCD if it is.</p>
  
  <p>This needs to be on the DAC as it may be used for generic inquiries and reports etc.</p>
  
  <p>Here are my attributes below for the field</p>
  
  <pre><code>[PXInt]
  [PXParent(typeof(Select&lt;FixedAsset, Where&lt;FixedAsset.assetID, Equal&lt;Current&lt;FixedAsset.parentAssetID&gt;&gt;&gt;&gt;))]
  [PXUIField(DisplayName="ParentAssetID", IsReadOnly = true)]
  [PXFormula(typeof(Switch&lt;
      Case&lt;Where&lt;FixedAsset.parentAssetID, Equal&lt;Null&gt;&gt;, FixedAsset.assetCD,
      Case&lt;Where&lt;FixedAsset.parentAssetID, NotEqual&lt;Null&gt;&gt;, Parent&lt;FixedAsset.assetCD&gt;&gt;&gt;&gt;))]
  </code></pre>
  
  <p>So the first line works fine, but when it gets into the second case I get a blank.  Am I using the Parent the correct way?</p>
  
  <p>Any help would be appreciated.</p>