Hi all,
first of all, thanks Alejandro for your help last time. Haven't tried all your tips, had to prioritize ;) But the most important stuff I needed worked like a charm.
Now I have a couple of new problems that maybe have a simpler solution:
- I added a method to make a PDF file of an invoice. I would like to show a link to the PDF in the invoice description page. To do this I would add a pdfLink property to the Invoice class and add Edit page for the Invoice where I would add an edition block for the pdfLink and show the property as a link. Is this the recommended approach or is there a simpler way?
- I would like to access the messages bundle from code. For example, if the pdfLink property above isn't set, I would like to show a localized "no PDF file" message instead of the property null value. Is there a standard way of doing this? Can I access the messages bundle in the Invoice class getPdfLink method and return the localized message when the field is null?
Regards,
HernĂ¡n