app/components/invoices_analysis_filtering_panel.rb
def before_load
# DEBUG
#    logger.debug( "\r\n========= conf: #{config.inspect} ===========\r\n" )
    if ( config[:override_filtering] )               # Do the 1-time override of the component session:
      component_session[FILTERING_DATE_START_CMP_SYM] = config[FILTERING_DATE_START_CMP_SYM]
      component_session[FILTERING_DATE_END_CMP_SYM]   = config[FILTERING_DATE_END_CMP_SYM]
      config[:override_filtering] = nil
    end
  end
# Override this method to do stuff at the moment of first-time loading
Override this method to do stuff at the moment of first-time loading
Override this method to do stuff at the moment of first - time loading
def before_load
    if ( config[:override_filtering] )               
      component_session[FILTERING_DATE_START_CMP_SYM] = config[FILTERING_DATE_START_CMP_SYM]
      component_session[FILTERING_DATE_END_CMP_SYM]   = config[FILTERING_DATE_END_CMP_SYM]
      config[:override_filtering] = nil
    end
  end
def before_load if ( config [ :override_filtering ] ) component_session [ FILTERING_DATE_START_CMP_SYM ] = config [ FILTERING_DATE_START_CMP_SYM ] component_session [ FILTERING_DATE_END_CMP_SYM ] = config [ FILTERING_DATE_END_CMP_SYM ] config [ :override_filtering ] = nil end end
Override this method to do stuff at the moment of first-time loading
Override this method to do stuff at the moment of first - time loading
# DEBUG #    logger.debug( "\r\n========= conf: #{config.inspect} ===========\r\n" ) # Do the 1-time override of the component session: