I've a parmetarized ZSQL method used to fill data in a combobox. When changing the selection of another combobox i'm calling the page itself again and have to pass the value in the previously selected combobox as parameter in the ZSQL method filling data in 2nd combobox. i tried this <div tal:repeat="district container/getDistrictUser" request.form.districtname> , districtname is the parameter to be passed what sud be the correct syntax
prabuddha ray wrote:
I've a parmetarized ZSQL method used to fill data in a combobox. When changing the selection of another combobox i'm calling the page itself again and have to pass the value in the previously selected combobox as parameter in the ZSQL method filling data in 2nd combobox.
i tried this <div tal:repeat="district container/getDistrictUser" request.form.districtname> , districtname is the parameter to be passed
what sud be the correct syntax
You can use python syntax to pass parameters explicitly to ZSQL methods, like: <div tal:repeat="district python:context.getDistrictUser(some_param=request.form.districtname)"> Hong Yuan
participants (2)
-
Hong Yuan -
prabuddha ray