loading image...

Questions and answers for designing and implementing forms in Servoy

loading image...

Postby xtsr » Mon Feb 02, 2004 10:30 am

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...

Posts: 101
Joined: Wed Jan 21, 2004 11:47 am

Postby jcompagner » Mon Feb 02, 2004 5:50 pm

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?
Johan Compagner
User avatar
Posts: 8840
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby xtsr » Mon Feb 02, 2004 7:05 pm

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:
Code: Select all
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...
Posts: 101
Joined: Wed Jan 21, 2004 11:47 am

Postby Jan Blok » Wed Feb 11, 2004 4:27 pm

Is the relation you are using based on a global? could you send us a sample solution which demonstrates this issue?
Jan Blok
Jan Blok
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Return to Forms

Who is online

Users browsing this forum: No registered users and 0 guests