Info window, image fieldtype doesn't work

Description

i was able to select on info window - product info - an reference = image for column imageurl

 

 

infowindowimagesetup.png

 

when refresh product info
1. when no product with image url no exception, returning 0

roduct-info-no-imageurl.png

2. when product includes images/iD32.png returning database exception error

roduct-info-no-imageurllocal.png

3. when product referring to external url returning database exception

roduct-info-no-imageur-remote.png

Proposal

  1. fix above use cases - support url fieldtype with valid image url *.jpg, *.jpeg, *.webp, *.png

  2. add support for images referring to columns XX_anyimagefield_ID

  3. idea: addionally support image from attachment (looks not practical

  4. if no image show placeholder - no image :)

depends on zk component feature, would be great support on hower for showing image with original or max image size

example. thumbnail size can be 100x100px but original can be 500x500 (show in hover box)

 

Our custom implementation example

we are in progress implementing a product supplemental window based on attributes comparison. this already support load display images based. allow close and replace sales order line.

 

This is CUSTOM WINDOW implementation but illustrate how iD would support in info window image reference type.

supplemental-window-example.png

Environment

v12

Attachments

9
  • 06 Oct 2024, 07:06 PM
  • 03 Oct 2024, 04:02 AM
  • 30 Sep 2024, 01:33 PM
  • 19 Sep 2024, 09:19 AM
  • 14 Sep 2024, 11:43 AM
  • 14 Sep 2024, 11:32 AM
  • 14 Sep 2024, 11:27 AM
  • 14 Sep 2024, 11:27 AM
  • 14 Sep 2024, 11:27 AM

Activity

Show:

Norbert Bede October 6, 2024 at 7:06 PM

Hi,

i re-test it again, and this behaviour is not user friendly. the row height changed when row selected and no image.

my assumption: if no image do not change height, only when image or placeholder is defined.

Screenshot 2024-10-06 at 21.02.06.png

Norbert Bede October 3, 2024 at 11:09 AM

looks good. thanks.

Heng Sin Low October 3, 2024 at 10:50 AM

hi ,

The hover image can be customized using the css class of fullsize-image. For no image place holder, I’ve added a commit that allow customization using the css class of no-image.

Example:

.no-image { background-image: url("../images/noimage.png"); background-size: 22px; height: 22px; width: 100%; display: inline-block; background-position-x: center; background-repeat: no-repeat; } .fullsize-image { height: 200px !important; width: 300px !important; }

Norbert Bede October 3, 2024 at 4:25 AM

hi

I created the initial version of the documentation, you can change it, update it.

https://wiki.idempiere.org/en/NF12_ImageURL_Fieldtype

nb

Norbert Bede October 3, 2024 at 4:02 AM
Edited

hi,

testing feedback

  1. when i added to the grid the new imageurl fieldtype, and select the row, then an empty image placeholder appear. Instead - display “nothing” - legacy - or - better add image placeholder sysconfig, and display as default state when image field-type defined - but no image displayed. (preferring this). The placeholder behavior, give the user similar user experience (UX) as on e-commerce sites.. this help consider idempiere as e-commerce backend :)

    product-grid.png
  2. the on hover image size need to be definable. the full size approach is not so good. instead we would define a customer required size as sysconfig.
    AD_SysConfig ZK_IMAGE_HOVER_SIZE - in pixels

nb

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created September 14, 2024 at 11:27 AM
Updated December 2, 2024 at 2:31 PM
Resolved October 11, 2024 at 10:17 AM

Flag notifications