Tried that already but got the same error.
Jim
--
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/vb0268kC_mc/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
lambda r: r.product.productNameShoot, should have thought of that.
Will try when I get back to the office.
Jim
Traceback (most recent call last):
File "C:\dev\web2py\gluon\restricted.py", line 212, in restricted
exec ccode in environment
File "C:/dev/web2py/applications/infocenter/controllers/applications.py", line 4291, in <module>
File "C:\dev\web2py\gluon\globals.py", line 194, in <lambda>
self._caller = lambda f: f()
File "C:\dev\web2py\gluon\tools.py", line 2976, in f
return action(*a, **b)
File "C:/dev/web2py/applications/infocenter/controllers/applications.py", line 864, in workorderBom
_formname='addonForm')
File "C:\dev\web2py\gluon\sqlhtml.py", line 1599, in factory
**attributes)
File "C:\dev\web2py\gluon\sqlhtml.py", line 1113, in __init__
inp = self.widgets.options.widget(field, default)
File "C:\dev\web2py\gluon\sqlhtml.py", line 252, in widget
options = requires[0].options()
File "C:\dev\web2py\gluon\validators.py", line 546, in options
self.build_set()
File "C:\dev\web2py\gluon\validators.py", line 543, in build_set
self.labels = [self.label(r) for r in records]
File "C:/dev/web2py/applications/infocenter/controllers/applications.py", line 853, in <lambda>
lambda r: r.product.productName, zero='..')
AttributeError: 'Row' object has no attribute 'product'
requires = IS_IN_DB(db((~db.productSite.productSiteId.belongs(currentItems)) &
(db.productSite.availableAddon==True) &
(db.productSite.siteId==workorder.siteId))._select(left=db.product.on(db.product.productId==db.productSite.productId),
orderby=[db.product.productName]),
db.productSite.productSiteId,
lambda r: r.product.productName, zero='..')
Traceback (most recent call last):
File "C:\dev\web2py\gluon\restricted.py", line 212, in restricted
exec ccode in environment
File "C:/dev/web2py/applications/infocenter/controllers/applications.py", line 4292, in <module>
File "C:\dev\web2py\gluon\globals.py", line 194, in <lambda>
self._caller = lambda f: f()
File "C:\dev\web2py\gluon\tools.py", line 2976, in f
return action(*a, **b)
File "C:/dev/web2py/applications/infocenter/controllers/applications.py", line 865, in workorderBom
_formname='addonForm')
File "C:\dev\web2py\gluon\sqlhtml.py", line 1599, in factory
**attributes)
File "C:\dev\web2py\gluon\sqlhtml.py", line 1113, in __init__
inp = self.widgets.options.widget(field, default)
File "C:\dev\web2py\gluon\sqlhtml.py", line 252, in widget
options = requires[0].options()
File "C:\dev\web2py\gluon\validators.py", line 546, in options
self.build_set()
File "C:\dev\web2py\gluon\validators.py", line 518, in build_set
table = self.dbset.db[self.ktable]
AttributeError: 'str' object has no attribute 'db'
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
lambda r: db(db.product.productId == r.productId).select().first().productNameSo, that should allow me to sort though shouldn't it?
In the _select() ?
That perfect. I'll get it going next week. Thanks for the help with this.
Jim