Quintiq file version 2.0
#parent: lstLibDEF_SetMeta_780
Response OnClick (
  LibDEF_SetMeta selection
) id:Response_lstLibDEF_SetMeta_780_mnCreateDatasetInterest_OnClick
{
  #keys: '[143398.0.680038898]'
  CanBindMultiple: false
  DefinitionID => /lstLibDEF_SetMeta_780/Responsedef_lstLibDEF_SetMeta_780_WebMenu_OnClick
  Initiator: 'mnCreateDatasetInterest'
  Precondition:
  [*
    return Form.CreateSetInterestAllowed( selection );
  *]
  QuillAction
  {
    Body:
    [*
      // Create SetInterest for current dataset
      
      mdsObject       := GlobalStateDataExchangeFramework.GetPlanningDatasetMDS();
      planningDataset := GlobalStateDataExchangeFramework.GetPlanningDataset();
      dtd             := GlobalStateDataExchangeFramework.GetDataTransformationDefinition();
      
      selection.CreateInterest( mdsObject, planningDataset.DefinitionName(), dtd.Key() );
    *]
    GroupServerCalls: false
  }
}
