Quintiq file version 2.0
#parent: ListKpiQuery
Response OnClick () id:Response_ListKpiQuery_MenuSaveAsQuery_OnClick
{
  #keys: '[146450.3.331322340]'
  Body:
  [*
    // Generate a JSON from the query configuration and saved into a dialog.
    json := Form.GetConfigurationQuery();
    
    dlg := construct( Kpi_dlgKpiQuery );
    dlg.NewQuery( this, KpiTracker, json );
  *]
  CanBindMultiple: false
  DefinitionID => /ListKpiQuery/Responsedef_ListKpiQuery_Menu_OnClick
  EditSecurity: 'Kpi_EditKpiQuery'
  InheritSecurity: false
  Initiator: 'MenuSaveAsQuery'
  Precondition:
  [*
    return Kpi_GlobalState.CheckActiveDataset();
  *]
}
