bit of a meta question, if you want your users to ...
# advancedpdf
d
bit of a meta question, if you want your users to be able to control how the PDF for a transaction will print (i.e. controlling whether/how certain elements would print), how would you go about doing this? Currently I'm using a bunch of body and line checkboxes (like "Print stock status message") It just feels.... inelegant.. esp. for the line-level options (currently 4 options, but it's turning into a bit of a wall of checkboxes)
thinking about having an "advanced print" button that would load a suitelet (maybe in iframe) and have all the options there (would have to replicate the item sublist with just the item names and different checkboxes) Then pipe this through to
N/render
using the transaction as the record source, and the settings from the suitelet as a custom source
maybe also saving the suitelet selections/options to a custom text field in JSON format so it can be used by the suitelet next time the "advanced print" button is pressed
but doing all of this to just abstract away all the checkboxes from the actual transaction feels a bit like overkill...
t
Checkboxes is how we do it, it may be inelegant but it's effective and robust and has little technical debt
👍 1
checkboxes, sometimes a dropdown / custom record to hold certain configs etc
but yes, suitelet is overkill imo
d
sourcing settings from a custom record select field for preset configurations might be a good way to go. Thanks for the advice!
👍 1