Quintiq file version 2.0
#parent: #root
Method ToggledPanelsVisibility () id:Method_FormNavigationPanel_ToggledPanelsVisibility
{
  #keys: '[139394.0.105453215]'
  Body:
  [*
    // Toggle panels visibility
    delimiter := SupplyChainSelection::GetDelimiter();
    toggledbuttons := DataHolderSavedToggledButtons.Data().Tokenize( delimiter );
    
    PanelNavBookmark.Visible( false );
    PanelNavEntity.Visible( false );
    PanelNavPeriod.Visible( false );
    PanelNavProduct.Visible( false );
    PanelNavSalesSegment.Visible( false );
    
    traverse( toggledbuttons, Elements, e )
    {
      if( e = ButtonNavEntity.Image() )
      {
        ButtonNavEntity.IsPressed( true );
        PanelNavEntity.Visible( true );
      }
      else if( e = ButtonNavProduct.Image() )
      {
        ButtonNavProduct.IsPressed( true );
        PanelNavProduct.Visible( true );
      }
      else if( e = ButtonNavSalesSegment.Image() )
      {
        ButtonNavSalesSegment.IsPressed( true );
        PanelNavSalesSegment.Visible( true );
      }
      else if( e = ButtonNavPeriod.Image() )
      {
        ButtonNavPeriod.IsPressed( true );
        PanelNavPeriod.Visible( true );
      }
      else if( e = ButtonNavBookmark.Image() )
      {
        ButtonNavBookmark.IsPressed( true );
        PanelNavBookmark.Visible( true );
      }
    }
  *]
}
