cancel
Showing results for 
Search instead for 
Did you mean: 

Image with sapui5

Former Member
0 Kudos

I have logo image then the servlet upload a new image, replace the other and go to login, the new image dont loads but there is in the path, using sapui5 XML

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The problem is that when replacing an image in the project resources , login not load the new image , then add these lines in the javascript controller.
var image = this.getView () byId ( " imageLogin .");
var d = new Date ();
image.setSrc ( "../images /imageLogin.png " + "?" + d.getTime () ) ;

Adding the time solved the problem, if someone else needs it

Thanks for the information!


Answers (1)

Answers (1)

arthursilva
Active Participant
0 Kudos

Hello,

Could you be more specific ?

Arthur    

agentry_src
Active Contributor
0 Kudos