Quintiq file version 2.0
#parent: #root
Method AutoSelectElementsInList (
  internal[List] list,
  structured[Object] objects
) as Number id:Method_ApplicationLibMacroPlanner_AutoSelectElementsInList
{
  #keys: '[110880.2.1853952522]'
  Body:
  [*
    // Select elements in list
    
    list.SelectByKey( Key::ZeroKey() );
    
    traverse( objects, Elements, object )
    {
      list.ExtendSelectByKey( object.Key() );
    }
    
    if( objects.Size() > 0 )
    {
      list.ScrollToHighlightedElement();
    }
    
    return 1;
  *]
}
