loading image...

On one of my forms I display a customers picture. Now, whenever I trigger a method on the form, the image is refreshed. The picture is displayed with a relation and I thought that might be the problem, so I copied the picture also into a global variable - same thing.
Can this reload be avoided? It’s quite annoying…

Thanks,
Reto

i made a global (type = media)
put a field (image_media) on the form for that global.

then i put a button that triggers a method. But the image doesn’t refresh when i press that button.

So it is something you do in that script that does the trigger.. Can you send a sample?

It seems like as soon as I change any global on the form, the reload occurs. This means that most methods that i trigger initiate this behaviour :(
Here’s a sample script:

globals.gDate02 = application.getTimeStamp();
elements.D02_valid_from.bgcolor = '#cccccc';
elements.valid_from_m.visible = false;
elements.valid_from_a.visible = true;
elements.D02_valid_from.editable = false;

Would be great if there was a way to avoid this thing…

Is the relation you are using based on a global? could you send us a sample solution which demonstrates this issue?