Skip to Content
author's profile photo Former Member
Former Member

Image with sapui5

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2016 at 05:53 PM

    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!


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 28, 2016 at 05:33 PM

    Hello,

    Could you be more specific ?

    Arthur

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.