On Wednesday, July 25, 2018 at 8:51:26 AM UTC-4, Rahul wrote: > > Hi Anthony, pbreit, > The following line of code works just fine for *rname*. I was able > to save *state*, *date*, *module*, *notify *etc in the database table as > field names. Although I will make it a practice to use different field > names than those reserved/unreserved for future projects. > > Field('notify', 'boolean', label='Add Notification?', rname='"notify"', > default=True ), > Note: without double quotes within single quotes it does not work. >
Note, if you do not specify an rname, the DAL will double quote table and field names, so you should not need rname at all. Try: Field('notify', 'boolean', label='Add Notification?', default=True) If you do use an rname but leave out the double quotes, then yes, it will fail because the DAL will use the rname exactly as provided. Anthony -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.