The "represent" attribute is used in SQLFORM, SQLTABLE, and can optionally 
be used when outputting CSV, but it isn't used every time you select and 
display a value. Can you show the code you are using to select and display 
the nodeID?

Anthony

On Tuesday, April 3, 2012 3:47:02 AM UTC-4, Annet wrote:
>
> In db.py I have a table Address which references a table Organization to 
> display the organization name rather then the nodeID I set a validator:
>
> db.Address.nodeID.represent=lambda nodeID, row: 
> db(db.Organization.nodeID==nodeID).select().first().name
>
> In 'database db select' Address.nodeID is represented by name, however, 
> when I select a row, in 'database db table Address record id 1' the nodeID 
> isn't represented by the name, why not?
>
>
> Kind regards,
>
> Annet
>
>
>

Reply via email to