nique=True))*
* return dict(form=form)*
* **return dict(form=form)*
This works (i.e. no errors) but I cannot see the created entry in appadmin.
>From an answer I got in StackOverflow it's because what I do in index() is
not persistent.
I'd like to know what is the proper way of achieving this.
Thank you.
Regards,
Madu.
uot;my_field"))
>
>
>
> It could be possible also to use one-to-many relations for adding table
> fields to each new table with form input.
>
> On Thursday, April 26, 2012 11:06:47 PM UTC-3, Madu wrote:
>>
>>
>> Hello,
>>
>> I'm new to web2py
y much all.
Regards,
Madu.
On Friday, April 27, 2012 11:06:47 AM UTC+9, Madu wrote:
>
>
> Hello,
>
> I'm new to web2py and to web frameworks in general and I am trying to
> learn the MVC model and web2py by coding.
> What I'm trying to do is to have a user create
Sorry for this basic question but I don't why the hyperlink is not working:
New DB Insert
What I want is to redirect to this URL when the link is clicked, but when I
load the page it automatically redirects. I have experienced this with
other HTML tags too.
Can somebody please explain why the P
Thanks pbreit!
That was it.
So whatever Python code inside {{}} will be executed, irrespective of the
link is clicked or not.
On Friday, May 4, 2012 12:30:46 PM UTC+9, pbreit wrote:
>
> I think all you want is this:
> New DB Insert
>
Thank you very much Anthony, as always for your very detailed explanations.
Made it really clear for me.
So the web2py goes through the .html lines and parses them and when it
encounters a code within {{}} it executes it. In the case of just
{{=URL('func')}} is converts that to a text with an ad
Hello,
I'm trying to pass a SELECT as follows:
def showToolEntries():
if request.args(0) in ToolsDB.tables:
return dict(entries=SELECT("Select from list", operationalToolsDB().
select(ToolsDB[request.args(0)].serial_number)))
I have a DB called ToolsDB and I have several tables in th
Thank you very much Anthony for your detailed explanation. I didn't realize
the db select returns a Rows object.
Your solution worked!
Thank you.
On Sunday, May 20, 2012 11:03:33 PM UTC+9, Anthony wrote:
>
> I'm trying to pass a SELECT as follows:
>> def showToolEntries():
>> if request.ar
Hi,
I thought this could be trivial but so far I couldn't figure out how to.
All I need to do is have a global variable in default.py. When I call one
method it will store a value in this variable, and later another method
will use it. What I have is something like this:
--- default.py
9 matches
Mail list logo