title: Custom Inquiry Screen Tab Disappears when Committing Changes
body: <p>I have a custom inquiry screen. You select a customer and a date, and it will display information on different records for the customer. Two tabs are custom tables, one tab is contracts (Leases), and the other tab is all items that are certain non-stock items (deposits) that are paid and refunded.</p>
  
  <p>When I select a customer, the "Leases" tab disappears. When I launch the inquiry from an action on a screen, the data shows. But changing any information on the screen causes the tab to close. All tabs are setup the same. Here is the grid in question:</p>
  
  <pre><code>&lt;px:PXTabItem Text="Leases"&gt;
      &lt;Template&gt;
          &lt;px:PXGrid ID="gridCustomerLeases" runat="server" DataSourceID="ds" Width="100%" Height="150px" SkinID="Details" AllowAutoHide="False" TabIndex="700"&gt;                       
              &lt;Levels&gt;
                  &lt;px:PXGridLevel DataMember="CustomerLeases"&gt;
                      &lt;RowTemplate&gt;    
                          &lt;px:PXNumberEdit ID="edCLTQty" runat="server" AlreadyLocalized="False" DataField="ContractDetail__Qty"&gt;&lt;/px:PXNumberEdit&gt;
                          &lt;px:PXSegmentMask ID="edCLTUsrCYLeaseInventoryID" runat="server" DataField="InventoryItem__UsrCYLeaseInventoryID" AllowEdit="true"&gt;&lt;/px:PXSegmentMask&gt;
                          &lt;px:PXSegmentMask ID="edCLTInventoryItem__InventoryCD" runat="server" DataField="InventoryItem__InventoryCD" AllowEdit="true"&gt;&lt;/px:PXSegmentMask&gt;
                      &lt;/RowTemplate&gt;
                      &lt;Columns&gt;
                          &lt;px:PXGridColumn DataField="InventoryItem__InventoryCD"&gt;&lt;/px:PXGridColumn&gt;
                          &lt;px:PXGridColumn DataField="InventoryItem__UsrCYLeaseInventoryID"&gt;&lt;/px:PXGridColumn&gt;
                          &lt;px:PXGridColumn DataField="ContractDetail__Qty" TextAlign="Right" Width="100px"&gt;&lt;/px:PXGridColumn&gt;
                          &lt;px:PXGridColumn DataField="Contract__ActivationDate" TextAlign="Right" Width="150px"&gt;&lt;/px:PXGridColumn&gt;
                          &lt;px:PXGridColumn DataField="Contract__ExpireDate" TextAlign="Right" Width="150px"&gt;&lt;/px:PXGridColumn&gt;
                      &lt;/Columns&gt;
                  &lt;/px:PXGridLevel&gt;
              &lt;/Levels&gt;
              &lt;AutoSize Container="Window" Enabled="True" MinHeight="150" /&gt;
          &lt;/px:PXGrid&gt;
      &lt;/Template&gt;
  &lt;/px:PXTabItem&gt;
  </code></pre>
  
  <p>Here is the view that is attached to the grid</p>
  
  <pre><code>public SelectFrom&lt;ContractDetail&gt;
      .InnerJoin&lt;Contract&gt;.On&lt;ContractDetail.contractID.IsEqual&lt;Contract.contractID&gt;&gt;
      .InnerJoin&lt;ContractItem&gt;.On&lt;ContractItem.contractItemID.IsEqual&lt;ContractDetail.contractItemID&gt;&gt;
      .InnerJoin&lt;InventoryItem&gt;.On&lt;InventoryItemExt.usrCYLeaseContractItemID.IsEqual&lt;ContractItem.contractItemID&gt;&gt;
          .Where&lt;Brackets&lt;
                  Contract.terminationDate.IsNull
                  .Or&lt;Contract.terminationDate.IsGreaterEqual&lt;CustomerCylinderInqFilter.fromDate.FromCurrent&gt;&gt;
                  &gt;
          .And&lt;Contract.customerID.IsEqual&lt;CustomerCylinderInqFilter.customerID.FromCurrent&gt;
          .And&lt;Contract.activationDate.IsLessEqual&lt;CustomerCylinderInqFilter.fromDate.FromCurrent&gt;&gt;&gt;&gt;
      .View.ReadOnly
      CustomerLeases;
  </code></pre>
  
  <p>Other grids use similar fields and the same filtered fields but show correctly.</p>