Versions Compared

Key

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

...

Thai

นี่คือการสอนด่วนเกี่ยวกับการใช้แบบฟอร์ม HTML เพื่อส่งผ่านพารามิเตอร์ไปยัง JasperReports Userview Menu เพื่อสาธิตวิธีการกรองผลลัพธ์ของรายงานตามค่าอินพุต

ขั้นแรกเพิ่มเมนู JasperReports ลงใน Userview Builder ของคุณและกำหนดค่าตามปกติ

จากนั้นเขียนรหัสตามที่เห็นในตัวเลือก "UI> ส่วนหัวที่กำหนดเอง" ดังที่แสดงในภาพหน้าจอด้านล่าง รหัสที่ระบุที่นี่จะสร้างฟอร์ม HTML เพื่ออนุญาตให้ส่งค่าตัวกรอง

หลังจากนั้นใช้ Request Parameters Hash Variable  เพื่อเติมค่าที่ส่งอีกครั้ง


Image Modified

After a form is created, configure the Report Parameters with the help of Request Parameters Hash Variable.

Thai

หลังจากสร้างฟอร์มแล้วให้กำหนดค่าพารามิเตอร์รายงานด้วยความช่วยเหลือของ Request Parameters Hash Variable


Image Modified

Now, your report is ready with the filtering feature. The screenshots below shows the end result.

...

Thai

ก่อนที่จะป้อนค่าใด ๆ ลงในตัวกรอง:


Image Modified

2. After a "j" is typed in the filter field and the submit button is clicked:

Thai

หลังจากพิมพ์ "j" ในฟิลด์ตัวกรองแล้วคลิกปุ่มส่ง:


Image Modified

Sample App : APP_jasper-1-20141007164459.zip

...