On Thursday, January 12, 2017 at 1:17:30 AM UTC-8, Anthony wrote:
>
> Feel free to open a Github issue, or better yet, send a pull request.
>
I created an issue here: https://github.com/web2py/web2py/issues/1561
I can probably do a pull request, but wanted to see if anyone knows of a
reason
New to web2py. What I am doing should be very simple, but can not get it to
work.
I have a simple search form:
def search_form():
results=None
headers=['Jira Id', 'Customer Name', 'Device Type', 'Serial Number',
'Driver Version', 'Firmware Version', 'Sector Size', 'Free LEBs', 'Bytes
Scenario: I have a Terms option ranging from 1-6. If I select 3, 3 labels
and 3 text fields will be generated to the form and can be saved to the
database.
eg:
- Terms: 3
- Result:
Label1 TextFieldDate1 TextFieldValue1
Label2 TextFieldDate2 TextFieldValue2
Label3 TextFieldDate3 TextFieldValue3
Hi,
I have a html file that i i need to use with web2py, but this file access a
unique css and js file.
I try to add the files at the static withous success. I try to hardcoder
the script and the css at the html file without success too.
How can i do ?
Rgds
Tostes
--
Resources:
-
What will be DAL Query string in db.py for MariaDB database in my Centos 7
machine?
Is this right?
db = DAL('mysql://root:password@localhost/db_name’
)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
form.vars appear only after form.process() call (process() -
filter/convert/format/validate request.vars to form.vars)
you have variants :
1. *before *form creation - modify field.default
2. *before* form.process() - modify request.vars -
request.vars.PostDate=...
3. pass your own set of
See http://stackoverflow.com/a/41769011/440323.
On Friday, January 20, 2017 at 6:09:31 AM UTC-5, Bishal Saha wrote:
>
> I have stored a dictionary in the session variable and now I want to store
> the values of the dictionary in my MySQL database in another server. Will I
> be able to do it ?
Yes! just keep in mind, that *before *call SQLFORM.grid/smartgrid/factory
or just SQLFORM or even FORM ( learn two latter details) you can:
1. modify request.vars as you want: request.vars.fieldC='smthng not none'
2. modify fields properties: if request.vars.fieldA:
Hello guys, I need to have a dependent field in a table.
If the field "is_active" = True then I cannot insert in the field "date"
nothing.
If the field "is_atvie" = False then I can or not insert something in the
field "date".
How to do in the definition of table? Or it's better to use
open the browser console. You should see some kind of warning saying css
and js not found..
in your html you are calling the js like this ?!
you should place your js inside static/js
then load it like this in the html
{{response.files.append(URL('static','/js/tagit.js'))}}
2017-01-20 12:42
Hi guys,,...
i did all the tips without succes...
here is my files:
html file - http://pastebin.com/XDVkv4T6
js file - http://pastebin.com/70HMVFNb
css file - http://pastebin.com/yanwj6ve
my html file is at /views/config/disease.html
Rgds
Tostes
2017-01-19 20:26 GMT-02:00 António
I have stored a dictionary in the session variable and now I want to store
the values of the dictionary in my MySQL database in another server. Will I
be able to do it ? And if yes dn how ?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Change
if form.process().accepted:
form.vars.PostDate = request.vars.PostDate
response.flash = T("Thank you!")
to
if form.process(keepvalues = True).accepted:
response.flash = T("Thank you!")
2017-01-20 4:02 GMT-02:00 Armando Hernandez <
13 matches
Mail list logo