Can someone see what is wrong with the following line.
I think I do like expected, but for some reason I don't see the correct image:
This is my code:
- Code: Select all
if (_to_webshop.button_image_add_to_cart)
elements.btn_add_to_cart.setImageURL('media:///servoy_blobloader?servername='+ _to_webshop.getServerName()+'&tablename='+ _to_webshop.getTableName()+'&dataprovider=button_image_add_to_cart&webshop_id=' + _to_webshop.webshop_id + '&mimetype=image/png');
The relation _to_webshop points to 1 single record.
When I do _to_webshop.getSize() I get 1 as result
I've put the same line as application.output and I see the following:
- Code: Select all
media:///servoy_blobloader?servername=myServer&tablename=webshop&dataprovider=button_image_add_to_cart&webshop_id=f7fb71a2-b8fb-4b97-9a17-087042dd642b&mimetype=image/png
That looks correct. It is also the correct webshop_id
But the image I see is from another record (first record) in the webshop table.
I also tried to replace 'webshop_id=' by 'rowid1=', but that doesn't change anything.
Does someone see in the coding line what is wrong?