Skip to Content

ViZFrame getVizproperties browser compatibility issue

Hi,

With new Chrome Version 48.0.2564.82 m I have the following error when calling VizFrame.getVizProperties():

Uncaught TypeError: this.getTransformToElement is not a function(…)


I tested with previous Chrome version (47....) and it is Ok.

Is there a new version of VizFrame that solves this issue for latest Chrome browser versions?


Thank you,

D.E.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • Best Answer
    Posted on Jan 26, 2016 at 11:24 PM
    13

    Hi Dimitris,

    We faced the same issue.

    The reason for the removal in newest version is described here:

    SVG Working Group Teleconference -- 24 Aug 2015

    JointJS Team posted this polyfill:

    SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(elem) { return elem.getScreenCTM().inverse().multiply(this.getScreenCTM()); }; 

    Place this code into your 'onInit' function of the 'Main' controller.

    Cheers,

    Pavel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 11, 2016 at 12:57 PM

    Dear colleagues,

    a fixed version of UI5 has been uploaded:

    https://sapui5.hana.ondemand.com/1.32.11

    Please use this concrete version (1.32.11) for now in your applications.

    Best regards,

    Peter

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Peter,

      I am using lumira server (which uses the SAP UI5 version coming with HANA). I have this issue with the pie charts if the data labels are visible. But I upgraded to HANA containing 1.28.29 and the issue is still there. Is the fix contained also in that version or only in 1.32.11?

      Best regards,

      Nikolay

      Nikolay

      screenshot.PNG (41.6 kB)
  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2016 at 03:22 PM

    Hy Pavel,

    you saved my day - Thanks for sharing your solution.

    Kind regards,

    Michael

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 05, 2016 at 07:11 AM

    Hi Pavel,

    I also faced the same issue and with your solution am able to solve my issue.

    But here i have a question for you

    1) Why this issue occured?

    2)If i place the code in init method of controller is it going to break the other code any where in my project

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 09, 2016 at 07:48 PM

    Hi All,

    I also faced the same issue and i pasted SVGElement script in the onInit function of main conroled. I could see that still few things are not working as follows:

    1) Show full screen on focus out collapses

    2) Few of my graph lke combination graph not rendering properly.

    Chome Console shows :

    Couldn't rerender '__xmlview5--MeterReadingHistoryTable', as its DOM location couldn't be determined - sap.ui.Rendering

    Problems while restore focus after rendering: TypeError: Cannot read property 'restoreFocus' of undefined - [object Object]

    If you have faced these issue. Please guide us.

    Thanks ,

    Varun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2016 at 06:12 PM

    Hi colleagues,


    Our Chrome 48 (SVGElement) issue got resolved with the latest patch 1.28.29. Like peter informed , the issue got resolved with SAPUI5 version 1.28.29 and 1.32.11.


    Thanks and regards,

    Varun

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 01, 2016 at 10:08 PM

    Thank you very much Varun, this works very well for me, I had to paste the code you mentioned about SVG.....

    Best regards.

    Jhon Jairo.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 18, 2016 at 12:46 PM

    Thanks Pavel Duchac.

    Its working

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2016 at 10:33 AM

    Thanks Pavel, solution still working while working with older UI5 library.

    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.