Jump to content

TUnimImage - Replace Current URL Image issue ?


andyhill

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;');

 

Link to comment
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,

Link to comment
Share on other sites

×
×
  • Create New...