answering my own question, I mistakenly reversed table names. Here is
correct, working version:
# Update objectDisplayName in db.SuperObject whenever
db.Suggestion.suggestionTitle is updated
def update_SuggestionDisplayName(set, ufields):
table = 'Suggestion' if ('suggestionTitle' in
I dont ser the displayName field in you SuperObject table. Try change this:
ThisSuperObject.update_record(displayName=displayName)
For this:
ThisSuperObject.update_record(ObjectDisplayName=displayName)
El nov. 24, 2014 3:17 AM, Alex Glaros alexgla...@gmail.com escribió:
anyone see what the
improved but now get this error:
Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
Traceback (most recent call last):
File gluon/restricted.py, line 224, in restricted
File C:/alex/web2py/web2py/web2py/applications/ES1/controllers/default.py
anyone see what the error is with this after_update function?
# Update displayName in db.SuperObject whenever Suggestion.suggestionTitle
is updated in db.Suggestion
def update_SuggestionDisplayName(set, ufields):
table = 'Suggestion' if ('suggestionTitle' in ufields) else None
if table:
I am writing a callback function after update on scheduler_task. then i am
printing set which we are getting in that callback function.
set values are printed when scheduler_task.status change to 'ASSIGNED' and
'RUNNING'. but when scheduler_task.status changes to 'TIMEOUT' or
'COMPLETE' set is
Hello,
I'm trying to get a solid way of triggering an action, after an update,
based on the data before the update.
One approach is building an SQLFORM, inject the old values as hidden
fields, validate it and do the update and triggers manually, but then you
are limited to use this FORM (it
6 matches
Mail list logo