Versions Compared

Key

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


English

A sample use case presents such where form validation is only required for record update, not for record creation.

This is possible by adding an empty/dummy section in a form and changing the section's load binder to Bean Shell Load Binder to store this script below. This script will remove form validation if primary key does not exist (which is in add mode).


Thai

ตัวอย่างกรณีการใช้งานนำเสนอเช่นที่การตรวจสอบความถูกต้องของฟอร์มจำเป็นสำหรับการอัปเดตระเบียนเท่านั้นไม่ใช่เพื่อการสร้างบันทึก

สิ่งนี้เป็นไปได้โดยการเพิ่มส่วนที่ว่างในแบบฟอร์มเพื่อเก็บสคริปต์นี้ด้านล่าง สคริปต์นี้จะลบการตรวจสอบแบบฟอร์มหากไม่มีคีย์หลัก (ซึ่งอยู่ในโหมดเพิ่ม)

...