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() );
|
*]
|
}
|