Quintiq file version 2.0 #parent: #root Method UIShowHideComponentForBatchEdit ( Boolean isInit, Boolean isBatchEdit ) id:Method_DialogCreateEditPostponementSpecification_UIShowHideComponentForBatchEdit { #keys: '[135040.0.189841449]' Body: [* // Handles the toggling of the batch related component if( isInit ) { //for initialize, control batch checkboxes visibility CheckBoxBatchEditHorizon.Visible( isBatchEdit ); CheckBoxBatchEditMaximum.Visible( isBatchEdit ); //disable all other component if( isBatchEdit ) { selSalesSegment.Enabled( false, Translations::MP_PostponementSpecification_DialogCreateEdit_DisableSalesSegment() ); } } //batch horizon batchValidHorizon := ifexpr( isInit ,not isBatchEdit //when isBatchEdit,default=disable all ,CheckBoxBatchEditHorizon.Checked() ); StringListHorizonTimeUnit.Enabled( batchValidHorizon, "" ); NumberPickerNrOfTimeUnit.Enabled( batchValidHorizon, "" ); //batch max batchValidMax := ifexpr( isInit ,not isBatchEdit //when isBatchEdit,default=disable all ,CheckBoxBatchEditMaximum.Checked() ); StringListMaxTimeUnit.Enabled( batchValidMax, "" ); NumberPickerMaxNrOfTimeUnit.Enabled( batchValidMax, "" ); *] }