andyhill Posted November 28, 2017 Share Posted November 28, 2017 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 More sharing options...
Sherzod Posted November 28, 2017 Share Posted November 28, 2017 Hi, Sorry, I couldn't reproduce this issue Link to comment Share on other sites More sharing options...
andyhill Posted November 28, 2017 Author Share Posted November 28, 2017 How does one remove picture ? Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2017 Share Posted November 28, 2017 UnimImage1.Url := ''; ? Link to comment Share on other sites More sharing options...
andyhill Posted November 28, 2017 Author Share Posted November 28, 2017 Does not remove Image, I cannot change image ? Link to comment Share on other sites More sharing options...
andyhill Posted November 28, 2017 Author Share Posted November 28, 2017 Is there a UniSession.AddJS way to change the image URL ? Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2017 Share Posted November 28, 2017 I couldn't reproduce your issue, please make a simple testcase for this Link to comment Share on other sites More sharing options...
andyhill Posted November 28, 2017 Author Share Posted November 28, 2017 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. Link to comment Share on other sites More sharing options...
Sherzod Posted December 1, 2017 Share Posted December 1, 2017 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 More sharing options...
Recommended Posts