2010/10/18 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> I'm not sure how to work around this case, when a field is empty no condition
> is generated for that field, because is not required filter by all fields. 
> Maybe
> checking for condition_for_#{column.name}_column could be moved above checking
> blank value. Are you using master branch?

I'm using master branch. I'm not sure of hot to use condition_for. I
assume I must add the following method in clis_controller.rb:

  def condition_for_Status_Flag_column
    "SELECT `clis`.* FROM `pv_clis` WHERE (((`clis`.`Status_Flag` =
'#{TODO_WHAT_HERE}'))))"
  end

Am I right? anyhow:
- What to replace in TODO_WHAT_HERE?
- Do I need to add the LIMIT and ORDER BY in the query?

PS: I couldn't find documentation for "condition_for" in the wiki ¿?

Thanks a lot.

-- 
Iñaki Baz Castillo
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to