Many thanks for your time.
I will think about it tomorrorw.


2013/8/29 Roberto Perdomo <roberto...@gmail.com>

> Hi António,
>
> You can use a conditional represent to change the color of the date field
> in your outdated record.
>
> something like:
>
> 1) db.table.field.represent =lambda value, row: "<FONT
> COLOR='red'>"+value+"</FONT>" if CONDITION else value
>
> Or you can put the outdated field inside an specific div with an id and
> iterate over the smartgrid table with Jquery to find the id, I Jquery find
> the id, then change the row color:
>
> 2) db.table.field.represent =lambda value, row: "<div
> id='outdated'>"+value+"</div>" if CONDITION else value
>
> I used something like the option 1, but I can not find the project at this
> moment.
>
>
>
>
> 2013/8/29 António Ramos <ramstei...@gmail.com>
>
>> Hello ,
>>
>> i need a table (smartgrid) that highlights outdated records, for example
>> forcing the outdated record line inside the table to be filled with red
>> background and yellow text.
>>
>>
>> Can i do it with form.smartgrid?
>>
>>
>> Thank you
>> António
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to