Developer forum

Forum » Swift » Automatically Generating and Linking a Technical Datasheet at Product Level

Automatically Generating and Linking a Technical Datasheet at Product Level

Ferri Halfhide
Reply

Context

We are currently using the Publications module to generate a Technical Datasheet (TDS), as implemented for EMM.

We would like to optimize and automate this process at product level.

Current Situation

  1. The TDS is generated via Publications from the Product Detail Page (PDP).

  2. The user clicks the TDS button on the PDP.

  3. The TDS is generated.

  4. The management team then manually adds the generated TDS to the product’s media table (asset category).

This creates an additional manual step and increases the risk of inconsistencies.

Desired Situation

  1. The TDS is still generated via Publications.

  2. After configuration, the TDS should automatically:

    • Be generated at product level

    • Be saved as a product asset

    • Be automatically linked to the product’s media table (correct asset category)

Goal

A fully automated flow where no manual intervention is required to attach the TDS to the product.

Questions

We would appreciate guidance on:

  • Whether this is technically possible within Dynamicweb

  • What the recommended approach would be (scheduled task, custom extension, automation after publication generation, etc.)

Thank you in advance for your input.


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

It is technically possible. 

DW10 does not generate PDFs it self (you need an external tool or library to do that). But you should consider if PDF is even needed - you could do this as a link from the PDP to the TDS page in publications. On the TDS page you can either generate a PDF when the page loads using jspdf or similar or simply just let the user print or save to PDF from that page.

If you want to generate a PDF for each product, a schedule task could do it - look for products missing TDS, send the URL of the TDS page to some external service that can convert html to pdf, store the resulting PDF and store it on the asset of the product.

BR Nicolai

 

You must be logged in to post in the forum