Quintiq file version 2.0 #parent: #root Method OnUserUpdateUI () id:Method_DialogCreateEditLane_OnUserUpdateUI { #keys: '[139394.0.1567339276]' Body: [* // User toggle has start has end // Update UI // Has start dateTime := DateSelectorStart.Date(); if( CheckBoxHasStart.Checked() ) { DateSelectorStart.Date( ifexpr( dateTime.IsFinite(), dateTime, MacroPlan.Start().Date() ) ); DateSelectorStart.Enabled( true, '' ) } else { DateSelectorStart.Date( Date::MinDate() ); DateSelectorStart.Enabled( false, '' ) } // Has end dateTime := DateSelectorEnd.Date(); if( CheckBoxHasEnd.Checked() ) { DateSelectorEnd.Date( ifexpr( dateTime.IsFinite(), dateTime, MacroPlan.End().Date() ) ); DateSelectorEnd.Enabled( true, '' ) } else { DateSelectorEnd.Date( Date::MaxDate() ); DateSelectorEnd.Enabled( false, '' ) } *] }