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

Hi,

I'm trying to open a record through JavaScript. I am able to get it through "do_action". Everything is fine, its opening in tree view but when I'm clicking a particular record its opening in form view in edit mode but i need to make it readonly. Can anyone help me with what i should write in do_action to make the form readonly.

var action = ({

//what i should write here

});

self.do_action(action);


Thank you!




อวตาร
ละทิ้ง

Hello Ajay,

Have you got a solution to your problem?

Hello Ajay,

I think for this you need to pass some context form do_action and override the fields_view_get method

with this method you can modify the attribute of <form> to set edit="false"

Regards,

Aktiv Software

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 24
8887
Redefine Web chrome.js and view_form.js แก้ไขแล้ว
1
ม.ค. 16
5276
2
พ.ย. 15
8177
0
มี.ค. 25
1295
0
ม.ค. 25
3405