here is the live demo http://labs.blouweb.com/PowerGrid/default/onlydata

2011/9/18 António Ramos <ramstei...@gmail.com>

> Can you post a screenshot of the powergrid ?
>
>
> 2011/9/18 tomt <tom_tren...@yahoo.com>
>
>> Hi,
>>
>> I have a question about using powertable.
>>
>> When I try to build a powertable on the following select:
>>
>> tasks=db(db.task.cpaid==3).select(db.task.cpa,db.task.description,db.task.ls_js)
>> I get the following error:
>>  File "/home/xa21/workspace/web2py/applications/cpa4/models/
>> plugin_powertable.py", line 219, in __init__
>>    _id = record.id
>>  File "/home/xa21/workspace/web2py/gluon/dal.py", line 3786, in
>> __getattr__
>>    return self[key]
>>  File "/home/xa21/workspace/web2py/gluon/dal.py", line 3777, in
>> __getitem__
>>    return dict.__getitem__(self, key)
>> KeyError: 'id'
>>
>> I suspect this means that powertable requires a field named 'id'. Is
>> this true, or is there a way I can get around this?
>> (The table I'm interested in displaying is a legacy table that doesn't
>> contain an .id field)
>>
>> - Tom
>>
>>
>


-- 



--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Reply via email to