I am trying to create a form to import and process an excel file passing in
the attributes of the file like file format(csv,tab,xls,xlsx), the tab or
sheet and the location of the columns containing the needed data.
On submit I would like to pass the request.vars to a function to actually
proce
Yes!
Thanks
I just can't keep the same name for the passed default variable value
except if I wrote more code once form accepted or onaccept and the
perefered way of managing this issue is by using a different name then the
field name to share the default value between my to function.
Richard
you have request.get_vars and request.post_vars to "obey" the method used.
request.vars holds both of them: is it clearer ?
On Thursday, March 7, 2013 5:08:37 PM UTC+1, Richard wrote:
>
> Ok, miss the last line... "Generally speaking changing the GET var name
> is the "recommended" way."
>
> req
Ok, miss the last line... "Generally speaking changing the GET var name is
the "recommended" way."
request.get_vars.fk_id doesn't work.
Thanks
Richard
On Thu, Mar 7, 2013 at 11:05 AM, Richard Vézina wrote:
> So, if I do understand well I should do :
>
> db.table.fk_id.default=request.get_var
So, if I do understand well I should do :
db.table.fk_id.default=request.get_vars.fk_id
??
On Thu, Mar 7, 2013 at 11:01 AM, Niphlod wrote:
> when you process a form, request.vars holds the POSTed values of the form.
> What you're experiencing is that fk_id is yet in request.vars because it's
when you process a form, request.vars holds the POSTed values of the form.
What you're experiencing is that fk_id is yet in request.vars because it's
a var originated by the GET of the page holding the form. Either you use a
different variable in the GET request (e.g.
/app/controller/function?w
Hello,
Here my problem I want to pass field default form value by the url to like
this :
http://127.0.0.1:8000/appname/controller/func?fk_id=1
Then in controller I do :
db.table.fk_id.default=request.vars.fk_id
...
if form.accepts(request.vars, session):
# HERE IT FAILED BECAUSE form.vars.
Here I am once again.
I've tried to find the explanation of the following fact but did not
manage.
I Have the following code in my controller:
def saisie():
...
CodeOF=request.vars.OF or request.vars.META_OF
Selection=FORM('Code OF:',
INPUT(_name='OF',_value=CodeOF,requires=IS_IN_DB(db, '
8 matches
Mail list logo