Quintiq file version 2.0
#parent: #root
Method UpdateProductSelection (
  owning structured[Product_MP] products
) id:Method_FormNavigationPanel_UpdateProductSelection
{
  #keys: '[136682.3.293445845]'
  Body:
  [*
    //Update product selection from SCV
    ListProduct.ClearChecked();
    
    // Prevent auto expand after login
    if( products.Size() > 0 )
    {
      ListProduct.ExpandAll( 5 );
    }
    
    traverse( products, Elements, p )
    {
      ListProduct.ExtendCheckByKey( p.Key() );
    }
    DataHolderCheckedProduct.Data( &products );
  *]
}
