hi,
i want to make one controller in that i want to access querystring from that url
so how can i do that
hi,
i want to make one controller in that i want to access querystring from that url
so how can i do that
Hi
FROM CONTROLLER
if you déclare thé controller with:
def my_route(self, named_param, **kw)
print named_param
print kw.get('another_param')
And browse it with:
my_website/my_route?named_param=foo&another_param=bar
will output:
foo
bar
FROM QWEB
<t t-esc="request.params.get('another_param')" />
You can find more détails un the documentation:
https://www.odoo.com/documentation/10.0/reference/http.html
thanks it works for me
getting {} in kwargs
url : http://localhost:8069/my_route?size=25&page=1
I have a problem if the foo is an object, how do I write in the url to call?
my_website/my_route?named_param=foo&another_param=bar
Create an account today to enjoy exclusive features and engage with our awesome community!
Prijavi| Related Posts | Odgovori | Prikazi | Aktivnost | |
|---|---|---|---|---|
|
2
jan. 20
|
9811 | |||
|
0
nov. 23
|
4326 | |||
|
2
sep. 20
|
14300 | |||
|
1
nov. 19
|
10617 | |||
|
0
maj 19
|
7162 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.