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

Hi,

How can I display or not Edit and Create buttons in a form depending on state?

I know how to do it on a normal button, but not for these.

Thanks,
Pau

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

Create / Save / Edit / Delete are ORM methods incorporated with Framework, hence those buttons are loaded along with the Framework/XML view, which will be loaded first ... and later the data is fetched from database..

hence, once the view is loaded, one cannot change it, based on single record's data...
 

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

Very clear explanation. Thanks. 2 beers. :p