I'm trying to display (P = Precision) instead of "P". I tired 
both form.custom.dspval and form.custom.inpval but both shows "P". It looks 
fine when see the field in Edit mode in Admin. Any idea?

*My View*

{{=form.custom.begin}}
<table>
<tbody>
<tr>
    <td class="w2p_fw"><label>Cover</label></td>
    <td class="w2p_fw" >: {{=form.custom.dspval.Cover}}</td>
</tr>
</table>

{{=form.custom.end}}

My Model

db.define_table('KR_Product',
    Field('ProductCode', length=15),
    Field('PartNumber', length=50),
    Field('Grade', length=1)
    )

db.KR_Product.Grade.requires=IS_IN_DB(db,'KR_GradeLabel.Name','%(Label)s')

db.define_table('KR_GradeLabel',
    Field('Name', length=1),
    Field('Label', length=50),
    primarykey=['Name']
    )
    

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to