1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod GetDirectImportBrokerByFile ( 
 |    MPSync mpsync, 
 |    String fileName 
 |  ) const remote as String 
 |  { 
 |    Description: 'return broker name which associated to the file' 
 |    TextBody: 
 |    [* 
 |      delim := ImportObjectGroup::GetFileAndBrokerNameDelimiter(); 
 |       
 |      group := select( mpsync, ImportObjectGroup, iog, iog.ExcelDirectImportFileName().Tokenize( delim ).Find( fileName ) > -1 ); 
 |      brokerName := ''; 
 |      if( not isnull( group ) ) 
 |      { 
 |        index := group.ExcelDirectImportFileName().Tokenize( delim ).Find( fileName ); 
 |        brokerName := group.ExcelDirectImportBrokerName().Tokenize( delim ).Element( index ); 
 |      } 
 |      return brokerName; 
 |    *] 
 |  } 
 |  
  |