Difference between revisions of "NF12 Get image through url from attachment"
From iDempiere en
(Initial version) Tag: visualeditor |
|||
| Line 11: | Line 11: | ||
'''Feature''' | '''Feature''' | ||
| − | This feature allow define in print format items image source from attachment with the next pattern. This feature inherited from jasper report lookup | + | This feature allow define in print format items image source from attachment with the next pattern. This feature inherited from jasper report lookup. |
| − | + | Example AD_PrintFormatItem.ImageURL: | |
| − | |||
| − | |||
| + | '''attachment/test/emoji*.png,103''' | ||
| + | <p/> | ||
| + | * The image path expression is a 2 part expression separated by comma. | ||
| + | * Part 2 is a record id or record uuid literal (record id 103 in the example above).<br/> | ||
| + | * Part 1 is a 3 part expression separated by '''/'''. | ||
| + | * Part 1.1 is the string constant of '''attachment'''. | ||
| + | * Part 1.2 is the table name (test in the example above). | ||
| + | * Part 1.3 is the attachment item index (0 base) or file name (support matching by wildcard, emoji*.png in the example above). | ||
| + | <br/> | ||
'''When to use''' | '''When to use''' | ||
| − | + | <p> | |
if company want to store their image asset as attachment eg. for product or categories, (storage provider) then they want to print on documents. | if company want to store their image asset as attachment eg. for product or categories, (storage provider) then they want to print on documents. | ||
Revision as of 14:31, 11 October 2024
Feature: Get image through url from attachment
Goal: Functional
Developer: Hengsin,
Feature Ticket: IDEMPIERE-6256
Sponsor : Norbert Bede at Cloudempiere.com
Feature
This feature allow define in print format items image source from attachment with the next pattern. This feature inherited from jasper report lookup.
Example AD_PrintFormatItem.ImageURL:
attachment/test/emoji*.png,103
- The image path expression is a 2 part expression separated by comma.
- Part 2 is a record id or record uuid literal (record id 103 in the example above).
- Part 1 is a 3 part expression separated by /.
- Part 1.1 is the string constant of attachment.
- Part 1.2 is the table name (test in the example above).
- Part 1.3 is the attachment item index (0 base) or file name (support matching by wildcard, emoji*.png in the example above).
When to use
if company want to store their image asset as attachment eg. for product or categories, (storage provider) then they want to print on documents.
