Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

"Submit Sample" 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 "Sample Approval Process" category.

Thai

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

First of all, obtain the "Custom 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.

Thai

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

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

Code Block
$("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".

Thai

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

Related Elements

Thai

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

 

 

...