Difference between revisions of "NF12 Get image through url from attachment"

From iDempiere en
(Initial version)
Tag: visualeditor
 
(recategorize)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
='''Feature:''' Get image through url from attachment=
 
='''Feature:''' Get image through url from attachment=
  
'''Goal:''' Functional
+
'''Goal:''' Technical
  
 
'''Developer:'''  [[User:Hengsin|Hengsin]],
 
'''Developer:'''  [[User:Hengsin|Hengsin]],
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.  
  
do the next
+
Example AD_PrintFormatItem.ImageURL:
 
 
'''$P{COLUMN_LOOKUP}.apply( "attachment/test/emoji*.png", 103) - TODO @hengsin'''
 
  
 +
'''attachment:test/emoji*.png,103'''
 +
<p/>
 +
* The image path expression always start with '''attachment:''' prefix and after that, it 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 2 part expression separated by '''/'''.
 +
* Part 1.1 is the table name (test in the example above).
 +
* Part 1.2 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.  
  
[[Category:New Features|F]]
+
[[Category:New Features|T]]
[[Category:New Features w12|F]]
+
[[Category:New Features w12|T]]
[[Category:New Features Functional]]
+
[[Category:New Features Technical]]

Latest revision as of 14:18, 14 January 2025

Feature: Get image through url from attachment

Goal: Technical

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 always start with attachment: prefix and after that, it 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 2 part expression separated by /.
  • Part 1.1 is the table name (test in the example above).
  • Part 1.2 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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.