Quintiq file version 2.0
#parent: #root
Method UpdateButtons () id:Method_LibWiz_DialogInitProcess_UpdateButtons
{
  #keys: '[135156.0.79136784]'
  Body:
  [*
    //Hide buttons if information is not specified
    
    // manual step
    if( guard( DataHolderCurrentInitManualStep.Data().HelpUrl(), '' ) = '' )
    {
      ButtonHelp.Visible( false );
    }
    else
    {
      ButtonHelp.Visible( true );
    }
    
    if( guard( DataHolderCurrentInitManualStep.Data().View(), '' ) = '' )
    {
      ButtonOpenView.Visible( false );
    }
    else
    {
      ButtonOpenView.Visible( true );
    }
    
    if( guard( DataHolderCurrentInitManualStep.Data().TableName(), '' ) = '' )
    {
      ButtonEditKnowledge.Visible( false );
    }
    else
    {
      ButtonEditKnowledge.Visible( true );
    }
    
    ButtonManualInitStepBack.Enabled( true );
    
    
    // decision step
    if( guard( DataHolderCurrentInitChoice.Data().HelpUrl(), '' ) = '' )
    {
      ButtonInitChoiceHelp.Visible( false );
    }
    else
    {
      ButtonInitChoiceHelp.Visible( true );
    }
    
    
    // sequence step
    if( guard( DataHolderCurrentInitSequence.Data().HelpUrl(), '' ) = '' )
    {
      ButtonHelpSequence.Visible( false );
    }
    else
    {
      ButtonHelpSequence.Visible( true );
    }
    
    if( guard( DataHolderCurrentInitSequence.Data().View(), '' ) = '' )
    {
      ButtonOpenViewSequence.Visible( false );
    }
    else
    {
      ButtonOpenViewSequence.Visible( true );
    }
    
    if( guard( DataHolderCurrentInitSequence.Data().TableName(), '' ) = '' )
    {
      ButtonEditKnowledgeSequence.Visible( false );
    }
    else
    {
      ButtonEditKnowledgeSequence.Visible( true );
    }
  *]
}
