Lai,Risheng
2023-11-02 30c02e0c981b16be0918483543f4b812956c45d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Quintiq file version 2.0
#parent: #root
Method GetRadioButtonValue (
  output structured[String] buttonlabels,
  output structured[String] buttonvalues
) id:Method_DialogImport_GetRadioButtonValue
{
  #keys: '[136682.0.2056231787]'
  Body:
  [*
    // Return strings for button labels and button values for a radio button group
    
    // buttonlabels
    
    // We need a guard here in case the model setting is not present in the config utility
    show3DS := guard( SettingsEngine::SettingsEngine().SettingsHolder().SettingEntryBooleanValue( 'domainmodel.fileprovider.dsdrive.enabled' ), false ) or
               guard( SettingsEngine::SettingsEngine().SettingsHolder().SettingEntryBooleanValue( 'domainmodel.fileprovider.qdrive.enabled' ), false )
        
        
    if ( not show3DS )
    {
      buttonlabels.Add( Translations::MP_ImportExport_Excel() );
      buttonvalues.Add( MPSyncUtility::ID_Source_Excel() );
    }
    else
    {
      buttonlabels.Add(  MPSyncUtility::ID_Source_3DDrive() );
      buttonvalues.Add( MPSyncUtility::ID_Source_3DDrive() );
    }
    
    buttonlabels.Add( Translations::MP_ImportExport_DataManager() );
    buttonvalues.Add( MPSyncUtility::ID_Source_DEF() );
  *]
}