Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4219 มุมมอง

Hi, Is it possible to get the string for the current tab in a notebook and save it to my model? How can I do it if its possible

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

I think no, javascript should know but not python because it is the server side and notebook in the client side

อวตาร
ละทิ้ง
ผู้เขียน

Is it possible then to pass the value from js to python without writing a seperate web_module?

web_module is a bad name, because all the module can add javascript. But If you want that javascript send the current table to server side you must write a javascript to do a rpc call. Read the documentation on the web client

ผู้เขียน

I don't want to send the current table i just want to send a string containing the current tab string, i searched the web docs already but cannot understand how do i add JS than can send a string and python can receive it, and i can't find how do i add js to a module with forms without the qweb teplating engine. but thanks for your help

Related Posts ตอบกลับ มุมมอง กิจกรรม
Change filename of binary field แก้ไขแล้ว
12
ธ.ค. 17
24710
0
มี.ค. 15
4290
2
มี.ค. 15
7285
1
มี.ค. 15
8862
Move fields from one tab to another v14 แก้ไขแล้ว
1
ก.พ. 25
3278