Quintiq file version 2.0 #parent: #root Method RefreshFromToDateTimes () id:Method_Kpi_frmKpiSnapshots_RefreshFromToDateTimes { #keys: '[136398.1.809527740]' Body: [* // Updates the From-To datetime pickers based on the selection // in the radio button group. option := rbgTimespan.BoundValue(); dtFrom.Enabled( option = "range" ); dtTo.Enabled( option = "range" ); if ( option = "lastweek" ) { dtFrom.DateTime( DateTime::Now() - Duration::Weeks( 1 ) ); dtTo.DateTime( DateTime::Now() ); } else if ( option = "lastmonth" ) { dtFrom.DateTime( Kpi_GlobalState.GetLastMonth( DateTime::Now() ) ); dtTo.DateTime( DateTime::Now() ); } *] }