2010/5/13 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
>> And such virtual field appears as checked in an empty subform because
>> its value depends on the value of other column (TINYINT 0-1) which  is
>> 1 by default.
>
> Why don't you use that column?

"ping" column has 3 possible values (due to DB table constrains):

0) not perform ping to check status
1) perform ping to check status
2) dissabled


So I want to show two checkboxes in AS:

- ping
- enabled

I've created a virtual column "dissabled" and its value depends on the
value of "ping". It works perfectly, except in the case I describe
above (empty subform).
However finally it's valid for me to hide the subform.

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