تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5886 أدوات العرض

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


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 19
3402
1
يناير 19
4896
1
أغسطس 18
3498
2
مارس 15
11831
0
يوليو 25
1236