I created a calc field that shows a green light if everything is okay and a red light if it’s not.
Sometimes, the image inside the field appears stretched (see attach: the problem disappears moving back and forward from the record, but reappears every now and then).
I try to make the calculation stored, but the problem remains.
OSX.3.4, Servoy 2.0v3
how do you display the image? (html?)
Can you send me an small example which demonstrates this?
jcompagner:
how do you display the image? (html?)
Can you send me an small example which demonstrates this?
Sure.
Jan (Blok) has already the solution (I can also send it to you, if you prefer).
I currently solved the problem replacing the calc MEDIA field with a label showing data from that field, but I think it’s still a strange field behaviour.
Btw: showing the label is also a lot faster than the field: why?
can you build a small example that displays both things (including the one with the bug) And where you can see very clear that the label one is much faster then the field one?
jcompagner:
can you build a small example that displays both things (including the one with the bug) And where you can see very clear that the label one is much faster then the field one?
Jan Blok has a recent copy of my solution. If you want, I can also send a copy to you ![Smile :-)]()
Regarding loading speed: since I use labels, I’ve never seen the “loading image” message anymore (I often had it when using a media field, even with 3 KB gif images).
While we’re at it
: I’m trying to avoid a JavaOutOfMemory error showing up most of the times when I create a thumbnail from an image file larger than 1 MB (servoy 2.0.4).
In order to try keeping mem usage as low as possible, I was trying to empty the label from where I create the thumbnail at the end of each method, but it doesn’t work (I tried using forms.immagini_zoom.elements.imago.setImageURL(null);
and
forms.immagini_zoom.elements.imago.setImageURL(“”);
but none of them is working.
ahh you are using 2.0.4?
There are a lot of changes for images in 2.1. Now out of mem are not happening anymore (normally) and application.createThumbnail() can now be used for creating thumbnails of any size (instead going through a label or component)
jcompagner:
ahh you are using 2.0.4?
There are a lot of changes for images in 2.1. Now out of mem are not happening anymore (normally) and application.createThumbnail() can now be used for creating thumbnails of any size (instead going through a label or component)
Ah: those are indeed very good news for me ![Very Happy :D]()
But, since I have to complete the image-related part of my solution before the end of august and I can’t migrate my solution under 2.1 because it’s already in production, do you think 2.1 final will be available soon?
the planning is end of this month.