You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

"Expense Approval" is a "Run Process" element and "Manage Sample" is a "CRUD" element. We can combine the ability to "Run Process" into CRUD's add button. With this, we can hide the "Expense Approval" category.

"ส่งตัวอย่าง" เป็นองค์ประกอบ "เรียกใช้กระบวนการ" และ "จัดการตัวอย่าง" เป็นองค์ประกอบ "CRUD" เราสามารถรวมความสามารถในการ "เรียกใช้กระบวนการ" เป็นปุ่มเพิ่มของ CRUD ด้วยสิ่งนี้เราสามารถซ่อนหมวดหมู่ "กระบวนการอนุมัติตัวอย่าง"




First of all, obtain the "Menu ID" / Link ID or the "Run Process" element as shown in the figure above.

Then, insert the following script into the "Custom Footer" of the CRUD.

ก่อนอื่นให้รับ "รหัสที่กำหนดเอง" / รหัสลิงก์หรือองค์ประกอบ "เรียกใช้กระบวนการ" ตามที่แสดงในภาพด้านบน

จากนั้นใส่สคริปต์ต่อไปนี้ลงใน "Custom Footer" ของ CRUD


$("button[value='CRUD_New']").click( function(event){
    event.preventDefault();
    window.location.href = "sample_submit_process"; //replace the value with the custom ID of Run Process
});

By doing so, we have remove the default capability of "Add Record" in CRUD and points it to "Run Process".

ด้วยการทำเช่นนี้เราได้ลบความสามารถเริ่มต้นของ "Add Record" ใน CRUD และชี้ไปที่ "Run Process"

Related Elements

องค์ประกอบที่เกี่ยวข้อง




  • No labels