Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1762 Lượt xem

Hi everyone, I have a bit of a problem and I need some help.

In my model, I have created a method 'load_internal_projects' and the task is just to print out a text, not handle any logic. In the form, I add a button A to call this method.

My problem occurs when I create a new record, the form will have an A button, and when I click this A button, the console will print my text. But when I click this button A, this new record will be saved without pressing the Save button.

Please help me and guide me on how to fix this error. My wish is to only print the text to the console, not save the record.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 22
9882
Change form methode Đã xử lý
1
thg 3 15
3197
1
thg 12 22
5061
4
thg 11 18
14994
0
thg 9 17
3187