I am an extreme newbie to coding and leveraging ch...
# general
k
I am an extreme newbie to coding and leveraging chatgpt and visual studio quite a bit, with alot of success but having the worst time with Advanced PDF/HTML templates....What are your best tips / Where could I best go to learn best how to edit Advanced PDF/HTML templates? • each time I edit the source code I still get errors and am unable to save. • one of the main things I'm trying to apply right now is line numbers to our PO template and lines between items
t
I had the same issues and I came up with a solution for this that I’ll share when I get to the office
😎 1
👀 1
g
On the error popup what happens if you hit save anyway and try to print the new template? We have a few templates that throw errors on save but they print just fine. My understanding is the template is validated against some static record/code and that does not always align with actual records.
a
we ended up bringing in a company that is fairly priced IMO. 6 months of service for like 5k and they are quick to respond and have done wonders quickly for us. Pick Tickets, Packing Slips, Shipping labels
k
yea im trying not to ask our consultants if i can learn how to do it somehow, i just need to be pointed in the right direction
a
not a task for an extreme newbie IMO. I leverage the same tools you use and was only able to do slight modifications before I threw in the towel, it also depends on how much time you have to work on it I guess but after a few weeks of trial and error I was over it. I also am implementing WIP and Routing right now so I don't really have time
r
Unfortunately I don't think there's a great way to learn other than a lot of trial and error and lots of Googling "how do I do X in Freemarker?" Someone more technical than I can comment, but while I don't think those are technically written in Freemarker, a lot of Freemarker stuff works. Digging through existing templates looking for patterns and stuff you want to display on other templates also works. I've done a ton of copy/pasting from Google and other templates and then do my own tweaks to see what works and what doesn't until I get it to mostly do what I want. Good luck!
And using AI is a good option now too probably.
k
super helpful tips @RJMNS thank you for taking the time to give them!
t
I mean AI is the way to go, you can take your code and copy and paste the whole thing and say why is this erroring out. Sometimes it's right, sometimes it's wrong but it you give it enough time and prompt it the right quesitons it's a way better option than poking through it line by line.
1
k
@Adam Weaver I understand where you are coming from , because it comes up often enough for our company and ones I do side work for , i think its worth for me personally to take the time to learn.
t
How I ended up getting line numbers on our advanced PDF/HTML form was to create a script that assigns line numbers after submit on edit/ or create on the transaction record itself. These numbers are stored in a custom transaction line field on the record. The Advanced PDF/HTML template is just sourcing those values instead of doing some advanced logic within the Advanced PDF form itself.