Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
English
There following questions and steps are to help you plan and develop a plugin to fulfill a custom requirement.
Thai

คำถามและขั้นตอนต่อไปนี้เพื่อช่วยคุณวางแผนและพัฒนาปลั๊กอินเพื่อตอบสนองความต้องการที่กำหนดเอง

...

Thai

อ้างอิงถึง Plugin Types ที่ Joget Workflow สนับสนุนค้นหาประเภทของปลั๊กอินที่เหมาะสมที่สุดที่สามารถช่วยให้คุณปฏิบัติตามข้อกำหนดที่กำหนดเองได้

Example 1: Develop a Datalist List Action plugin to display a button for generate form PDF.

Thai

ตัวอย่างที่ 1: พัฒนาปลั๊กอินการกระทำ Datalist List เพื่อแสดงปุ่มสำหรับสร้างฟอร์ม PDF

...

Example 1: To develop a PDF Download Datalist List Action plugin, we can consider providing the following as input.

...

    1. Form ID : The form that will be used to generate the PDF file.

      Thai

      แบบฟอร์ม: แบบฟอร์มที่จะใช้ในการสร้างไฟล์ PDF

    2. Record ID : Use the id of the datalist List row or a column value to load the record.

      Thai

      ID เรคคอร์ด: ใช้ id ของแถวดาต้าลิสต์หรือค่าคอลัมน์เพื่อโหลดเรคคอร์ด

    3. File Name : File name of the the generated PDF file.

      Thai

      ชื่อไฟล์: ชื่อไฟล์ของไฟล์ PDF ที่สร้างขึ้น

    4. Formatting options : Options to format and customise the PDF output. 

      Thai

      ตัวเลือกการจัดรูปแบบ: ตัวเลือกในการจัดรูปแบบและปรับแต่งเอาต์พุต PDF

...

Thai

ตัวอย่างที่ 2: ในการพัฒนาปลั๊กอินเมนู Gantt Chat Userview เราสามารถพิจารณาให้สิ่งต่อไปนี้เป็นอินพุต

    1. Datalist Binder List Data Store : We can reuse datalist binder List Data Store in our plugin to retrieve the data needed by the Gantt Chart.

      Thai

      ดาต้าลิสต์ BinderData Store: เราสามารถใช้ดาต้าลิสต์ Binder Data Store ในปลั๊กอินของเราเพื่อดึงข้อมูลที่ต้องการโดยแผนภูมิแกนต์

    2. Mapping : A field to map the columns that will be returned from the datalist binder List Data Store to the data needed by the Gantt Chart.

      Thai

      การแมป: ฟิลด์เพื่อแมปคอลัมน์ที่จะส่งคืนจากตัวยึดข้อมูลไปยังข้อมูลที่ต้องการโดยแผนภูมิแกนต์

    3. Styling : Options to style the Gantt Chart.

      Thai

      จัดแต่ง: ตัวเลือกเพื่อจัดสไตล์แผนภูมิแกนต์

...

Example 1: When PDF Download Datalist List Action is used as a datalist List row action or column action, a normal user will see a link to download the PDF file in every rows of a datalistList. Once the link is clicked, a PDF will be prompted to be downloaded.

When the plugin is used as a whole datalist List action, a zip file containing all the generated PDF of every selected rows will be prompted to be downloaded.

...

Thai

ตัวอย่างที่ 1: เมื่อ PDF Download Datalist List Action ถูกใช้เป็นแอ็คชั่นแถวของดาต้าลิสต์หรือการกระทำคอลัมน์ผู้ใช้ปกติจะเห็นลิงค์เพื่อดาวน์โหลดไฟล์ PDF ในทุก ๆ แถวของดาต้าลิสต์ เมื่อคลิกที่ลิงค์ไฟล์ PDF จะถูกถามให้ดาวน์โหลด

เมื่อมีการใช้ปลั๊กอินเป็นการกระทำของดาต้าลิสต์ทั้งหมดไฟล์ซิปที่มี PDF ทั้งหมดที่สร้างขึ้นของทุกแถวที่เลือกจะได้รับแจ้งให้ดาวน์โหลด

...

Example 1: To develop the PDF Download Datalist List Action plugin, we can reuse the methods in FormPdfUtil to generate a form as PDF. We can also refer to the source code of the Datalist List Form Data Delete Action plugin as well. Other than that, we can refer to the Export Form Email Tool on what kind of plugin properties options we can provide in the plugin as the Export Form Email Tool are using the methods in FormPdfUtil as well.

...

Example 3: To develop Bean Shell Hash Variable plugin, we can refer to the source code of all the Hash Variable plugin and Bean Shell plugin. Especially, we can refer to Environment Variable Hash Variable plugin on how to retrieve environment variable using a variable key. We can also refer to Bean Shell Tool or Bean Shell Form Binder Data Store plugin on what to execute the script with Bean Shell interpreter.

...