Quintiq file version 2.0
#parent: #root
Method UpdateEntitiesSelection (
  owning structured[Entity] entities
) id:Method_FormNavigationPanel_UpdateEntitiesSelection
{
  #keys: '[136682.3.293440118]'
  Body:
  [*
    // Update navigation panel
    
    ListEntity.ClearChecked();
    
    // Prevent auto expand after login
    if( entities.Size() > 0 )
    {
      ListEntity.ExpandAll( 5 );
    }
    
    traverse( entities, Elements, e )
    {
      ListEntity.ExtendCheckByKey( e.Key() );  
    }
    DataHolderCheckedEntities.Data( &entities );
  *]
}
