Quintiq file version 2.0
#parent: ListScenario
Response OnDrawElement (
  ScenarioMP element
) id:Response_ListScenario_OnDrawElement
{
  #keys: '[134266.1.2130333354]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebList_OnDrawElement'
  QuillAction
  {
    Body:
    [*
      // ScenarioMP image indication
      idx := 0;
      
      if( guard( not element.IsDeleted() and  element.DatasetMDSID() = DataHolderActiveScenario.Data().DatasetMDSID(), false ) )
      {
        drawinfo.Image( idx, "CHECK2" );
      }
      else if( element.IsLoadingInProgress() )
      {
        drawinfo.Image( idx, "DATA_UP" );
      }
      else if ( not element.IsLoaded() )
      {
        drawinfo.Image( idx, "DATA_DOWN");
      }
      else
      {
        drawinfo.Image( idx, "EMPTY" );
      }
    *]
    GroupServerCalls: false
  }
}
