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

Hi,

Is it possible that after capturing a field generate a record in the database automatically and leave blank screen ready to take next record. All this without the neccesity of clicking "Save" button?


Is there already a module?

or any ideas to reach this goal?



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

if you need such functionality :

  1. create a custom module

  2. inherit desired model, 

  3. create onchange method on field (that capturs some data) that will 

    1. first write all current values

    2. then return create new record


Typical this is something you should never do( write in onchage method) but in your case it can be easy way to achieve desired behaivour...

beware that this could lead to more problems than benefits

Hope it helps a bit


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Save data even if iteration crashes แก้ไขแล้ว
1
ม.ค. 19
3552
1
ม.ค. 19
5060
1
ส.ค. 18
3623
Save records in database แก้ไขแล้ว
2
มี.ค. 15
11972
0
ก.ค. 25
1446