Quintiq file version 2.0
#parent: pGeneration/dhCheckGenerations
Response OnDataChanged () id:Response_pGeneration_dhCheckGenerations_OnDataChanged
{
  #keys: '[414996.1.218091254]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnDataChanged'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      products := dhFinelProducts.Data();
      if( this.Data().Size() <> 0 ){
        products := selectset( products,Elements,product,exists( this.Data(),Elements,element,element.StringValue() = product.Generation()));
        dhFinelProducts.Data( &products );
      }else{
        if( dhCheckedProducts.Data().Size() <> 0 ){
          dhFinelProducts.Data( dhCheckedProducts.Data().Copy() );
        }else{
          dhFinelProducts.Data( DataHolderProduct.Data().Copy() );
        }
      }
    *]
  }
}
