콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3837 화면

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

관련 게시물 답글 화면 활동
12
12월 17
24141
0
3월 15
3963
2
3월 15
6851
1
3월 15
8496
1
2월 25
2581