Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
The Report Builder introduces the simple drag-and-drop principle like the Form Builder, as a no-code/low-code alternative to create your own customized reports for Joget apps. This provides a seamless experience for users to create reports instead of using external report building softwares.
You can download the plugin from Joget Marketplace.
The Report Builder is a plugin created for the Addon Builders. This is a new feature in Joget DX Enterprise and Professional editions.
Joget PDF generation is only performed on the server-side, hence any JavaScript will not be executed because JavaScript is only executed on the client-side browser.
This means you cannot use JavaScript to modify the HTML for PDF. You will need a different approach where the form HTML modification is performed entirely on the server-side.
Ensure that your data source in Joget contains fields for image URLs or binary data, depending on how your images are stored. Should there are any need to run JavaScript, please do so on the server-side.
<img>
tags or dynamically load them using JavaScript. If images are hosted externally, the browser will make URL calls to fetch them.When generating a PDF report in Joget, you can use server-side scripts (e.g., Groovy or Java) to convert binary data to Base64 before embedding it in the PDF. This can be part of the PDF generation process
Example:
import java.nio.file.Files; import java.nio.file.Path; import java.util.Base64; // Read binary data from the image file byte[] imageData = Files.readAllBytes(Path.of("path/to/your/image.jpg")); // Convert binary data to Base64 String base64ImageData = Base64.getEncoder().encodeToString(imageData); // Now you can use 'base64ImageData' for embedding in the PDF
This code can be used within the form that capture the PDF fields using custom html element
Ensure that you adapt the code to your specific use case, and consult Joget's documentation or community forums for the latest information and best practices.
Click on each link for detailed explanations and documentation of each Report Builder Elements.
Example hash variable:
#reportLink.rp_report1[id=5c3daa8c-b8e7-4e04-8119-e31be53d6232]#