def wg_initialize_request_parameters  #:nodoc:
      @request_params = nil
      return if @all_filter_params.nil?

      # if the parameter does not specify the table name we only allow columns in the default table to use these parameters
      if @main_table && @request_params = @all_filter_params[@column.name]
        current_parameter_name = @column.name
      elsif @request_params = @all_filter_params[alias_or_table_name(@table_alias) + '.' + @column.name]
        current_parameter_name = alias_or_table_name(@table_alias) + '.' + @column.name
      end

      # Preprocess incoming parameters for datetime, if what's coming in is
      # a datetime (with custom_filter it can be anything else, and not
      # the datetime hash {fr: ..., to: ...})
      if @request_params

        if (@column.type == :datetime || @column.type == :timestamp) && @request_params.is_a?(Hash)
          [:fr, :to].each do |sym|
            if @request_params[sym]
              if @request_params[sym].is_a?(String)
                @request_params[sym] = Wice::ConfigurationProvider.value_for(:DATETIME_PARSER).call(@request_params[sym])
              elsif @request_params[sym].is_a?(Hash)
                @request_params[sym] = Wice::GridTools.params_2_datetime(@request_params[sym])
              end
            end
          end

        end

        # Preprocess incoming parameters for date, if what's coming in is
        # a date (with custom_filter it can be anything else, and not
        # the date hash {fr: ..., to: ...})
        if @column.type == :date && @request_params.is_a?(Hash)

          [:fr, :to].each do |sym|
            if @request_params[sym]
              if @request_params[sym].is_a?(String)
                @request_params[sym] = Wice::ConfigurationProvider.value_for(:DATE_PARSER).call(@request_params[sym])
              elsif @request_params[sym].is_a?(Hash)
                @request_params[sym] = ::Wice::GridTools.params_2_date(@request_params[sym])
              end
            end
          end

        end
      end

      [wg_generate_conditions, current_parameter_name]
    end
def wg_initialize_request_parameters  #:nodoc:
      @request_params = nil
      return if @all_filter_params.nil?

      # if the parameter does not specify the table name we only allow columns in the default table to use these parameters
      if @main_table && @request_params = @all_filter_params[@column.name]
        current_parameter_name = @column.name
      elsif @request_params = @all_filter_params[alias_or_table_name(@table_alias) + '.' + @column.name]
        current_parameter_name = alias_or_table_name(@table_alias) + '.' + @column.name
      end

      # Preprocess incoming parameters for datetime, if what's coming in is
      # a datetime (with custom_filter it can be anything else, and not
      # the datetime hash {fr: ..., to: ...})
      if @request_params

        if (@column.type == :datetime || @column.type == :timestamp) && @request_params.is_a?(Hash)
          [:fr, :to].each do |sym|
            if @request_params[sym]
              if @request_params[sym].is_a?(String)
                @request_params[sym] = Wice::ConfigurationProvider.value_for(:DATETIME_PARSER).call(@request_params[sym])
              elsif @request_params[sym].is_a?(Hash)
                @request_params[sym] = Wice::GridTools.params_2_datetime(@request_params[sym])
              end
            end
          end

        end

        # Preprocess incoming parameters for date, if what's coming in is
        # a date (with custom_filter it can be anything else, and not
        # the date hash {fr: ..., to: ...})
        if @column.type == :date && @request_params.is_a?(Hash)

          [:fr, :to].each do |sym|
            if @request_params[sym]
              if @request_params[sym].is_a?(String)
                @request_params[sym] = Wice::ConfigurationProvider.value_for(:DATE_PARSER).call(@request_params[sym])
              elsif @request_params[sym].is_a?(Hash)
                @request_params[sym] = ::Wice::GridTools.params_2_date(@request_params[sym])
              end
            end
          end

        end
      end

      [wg_generate_conditions, current_parameter_name]
    end
:nodoc: