Quintiq file version 2.0
#parent: #root
Method HasPlanningDatasetChecked () as Boolean id:Method_LibDEF_FormIntegration_HasPlanningDatasetChecked
{
  #keys: '[122658.0.623300551]'
  Body:
  [*
    // DEF ABSTRACT METHOD: Override this with checking if there is a planning dataset selected
    /* For example:
    return Company::HasCompany( Company, feedbacks_o );
    */
    
    feedback := FeedbackObject::LocalFeedback();
    dataset := this.GetPlanningDataset();
    
    if ( isnull( dataset ) )
    {
      feedback.AddHard( "Planning dataset is not found" );
    }
    
    return feedback.IsAllowed();
  *]
}
