[web2py] Re: datepicker preserve selecred date after postback

2019-04-26 Thread jcrmatos
I don't know much js, but where is the submit/save button/function? sexta-feira, 26 de Abril de 2019 às 11:19:19 UTC+1, Andrea Fae' escreveu: > > Thank you for your answer, but I do not understand the code you wrote... > the 2 fields are only filtering fields, no a db field. > > The filtering fie

[web2py] Re: datepicker preserve selecred date after postback

2019-04-26 Thread Andrea Fae'
Il giorno giovedì 25 aprile 2019 21:40:25 UTC+2, Andrea Fae' ha scritto: > > How to preserve datepicker selected date after postback using web2py in a > javascript view... I think it's a javascript problem but I don't know how > to fix it. > thank you > -- Resources: - http://web2py.com - htt

[web2py] Re: datepicker preserve selecred date after postback

2019-04-26 Thread Andrea Fae'
Thank you for your answer, but I do not understand the code you wrote... the 2 fields are only filtering fields, no a db field. The filtering fields are working well, but I want that the dates selected will be preserved after postback. Do I have to read them from the querystring? In which way? t

[web2py] Re: datepicker preserve selecred date after postback

2019-04-25 Thread João Matos
Is the selected date in a db field? Then when editing the same field, the date picker should show the selected date. If the date is still not saved to a db field but only in js, then you can send it using something similar to this