The Download Module in BSTD software empowers users to easily download their critical business records—including quotations, invoices, LRs, and more—in multiple convenient formats. It's designed to help you extract your data efficiently for backups, comprehensive reporting, and compliance.
Key Features
Supports both CSV (Comma Separated Values) and Excel (.xlsx) formats, giving you flexibility for data analysis.
Data format preference toggle with a clear confirmation prompt ensures you download in your desired format.
One-click download buttons for each document type, making the export process quick and straightforward.
Live counters display the total number of records available for download per section, keeping you informed.
Fully mobile-responsive design ensures a seamless experience across all devices, from desktops to smartphones.
Provides elegant feedback via SweetAlert2 modals for confirmations, success messages, and error notifications.
How It Works
When the page loads, the system automatically retrieves your preferred file format (CSV or Excel).
Each section visually indicates how many documents are available for download, so you know what to expect.
Users can easily switch between formats (CSV or Excel) at any time and confirm their choice via a prompt.
Clicking a download button processes and securely exports the selected data in your chosen format.
All user actions, such as initiating a download or changing formats, are confirmed and guided using clear modal prompts and loaders, ensuring a smooth experience.
Technologies Used
The Download Data Module is built using a robust stack to ensure performance and reliability:
Frontend: Powered by Tailwind CSS for utility-first styling, Bootstrap for responsive components, HTML5 for structure, and custom JavaScript for interactivity.
UI Feedback: Utilizes SweetAlert2 for visually appealing and user-friendly confirmation dialogs and alerts.
Template Engine: Employs EJS (Embedded JavaScript) for efficient server-side rendering of dynamic content.
Storage: Data is managed using a MongoDB database or a JSON-based backend, ensuring scalable and flexible data storage.
Download Processing: Leverages dynamic Blob creation from data streams for efficient and secure file generation on the client-side.
Example Download Block
Below is a typical structure for a downloadable document block within the module: