Re: [web2py] This is not working as expected. Please correct this.

2016-11-28 Thread Dave S
On Monday, November 28, 2016 at 9:24:22 AM UTC-8, Mike Stephenson wrote: > > I am not getting the day of the month > > On Monday, November 28, 2016 at 10:47:13 PM UTC+5:30, Yoel Benitez Fonseca > wrote: >> >> and what value are u getting on 'k', the day of month i suppose !? >> >> 2016-11-28 9:5

Re: [web2py] This is not working as expected. Please correct this.

2016-11-28 Thread Jim S
Seems to me the code should look like this: form3 = SQLFORM.factory(Field('ddate', 'date', label='Enter a date')) if form3.process().accepted: k = form3.vars.ddate.day() redirect(URL('readings', 'check', args=[k,k,k])) return dict(formd=form3) ...but, I'm not entirely sure what you're

Re: [web2py] This is not working as expected. Please correct this.

2016-11-28 Thread Yoel Benitez Fonseca
Instead of: form3 = SQLFORM.factory(Field('ddate','date', label='Enter a date')).process() if form3.accepted: k=form3.vars.ddate.day() redirect(URL('readings', 'check', args=[k,k,k])) Do: form3 = SQLFORM.factory(Field('ddate','date', label='Enter a date')).process() if form3.acce

Re: [web2py] This is not working as expected. Please correct this.

2016-11-28 Thread Mike Stephenson
I am not getting the day of the month On Monday, November 28, 2016 at 10:47:13 PM UTC+5:30, Yoel Benitez Fonseca wrote: > > and what value are u getting on 'k', the day of month i suppose !? > > 2016-11-28 9:56 GMT-05:00 Mike Stephenson >: > > > form3 = SQLFORM.factory(Field('ddate','date', lab

Re: [web2py] This is not working as expected. Please correct this.

2016-11-28 Thread Yoel Benitez Fonseca
and what value are u getting on 'k', the day of month i suppose !? 2016-11-28 9:56 GMT-05:00 Mike Stephenson : > form3 = SQLFORM.factory(Field('ddate','date', label='Enter a > date')).process() > if form3.accepted: > k=form3.vars.ddate.day() > redirect(URL('readings', 'check', args

[web2py] This is not working as expected. Please correct this.

2016-11-28 Thread Mike Stephenson
form3 = SQLFORM.factory(Field('ddate','date', label='Enter a date')).process() if form3.accepted: k=form3.vars.ddate.day() redirect(URL('readings', 'check', args=[k,k,k])) K doesn't read value as expected. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation