Jump to content
uniGUI Discussion Forums
Sign in to follow this  
andyhill

TUnimImage - Replace Current URL Image issue ?

Recommended Posts

I have a MobileApp that uses a TUnimDBListGrid and on the Disclosure event shows another Formm where we update the TUnimImage (MapImage) URL from db table file export. 

 

Problem is after the first successful URL load, all future URL loads are ignored and the original does not change ? Please advise.

 

MapmForm.MapImage.Url:= 'files\temp.jpg';

UniSession.AddJS(MapmForm.MapImage.JSName+'.Refresh;');

 

Share this post


Link to post
Share on other sites

Work Around:-

 

I was using the same file name 'temp.jpg' and changing the contents of that file but now I have changed my code to generate a random file name '?????????.jpg' every time. 

Share this post


Link to post
Share on other sites

Hi,

 

Work Around:-

 

I was using the same file name 'temp.jpg' and changing the contents of that file but now I have changed my code to generate a random file name '?????????.jpg' every time. 

 

Also you can try to use this approach:

MapmForm.MapImage.Url:= 'files/temp.jpg?' + FormatDateTime('ddmmyyyyhhmmss', Now);

Best regards,

Share this post


Link to post
Share on other sites
Sign in to follow this  

×