Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Johan Larsson 28 posts 98 karma points
    Oct 03, 2014 @ 14:02
    Johan Larsson
    0

    Custom reports

    I want to create custom reports in the uCommerce tree view, so I created two new reports (.aspx-files) under the directory /umbraco/ucommerce/analytics/ which inherits from the class ProtectedPage.

    The reports works well, but if the application pool restarts or I compile the project and then expands the tree and open one of my custom reports (before opening a non custom report) nothing will happen. I have tracked the HTTP traffic and can see that nothing happens when clicking on the custom report node. No javascripts errors occurs.

    But if I click on a non custom report and then on my custom reports it will work. It seems like the non custom reports initialize something that is required for all the reports? But what?

  • Johan Larsson 28 posts 98 karma points
    Oct 14, 2014 @ 19:32
    Johan Larsson
    0

    Now I noticed that uCommerce logs some javascript debub information to the javascript console when I click on my custom reports:

    Error evaluating js callback from legacy tree node: TypeError: parent.right is undefined
    http://localhost:80/umbraco/lib/angular/1.1.5/angular.min.js
    Line 63

    To create my node in the uCommerce tree view I have followed this guide: http://www.publicvoid.dk/default,date,2010-10-13.aspx

    It seems that the error is this line, where the parent.right seems to be null:

    node.Action = string.Format("javascript:{0}", "parent.right.document.location.href = '~/MyPage.htm';");

    How should I fix this problem?

  • Morten Skjoldager 440 posts 1499 karma points
    Oct 20, 2014 @ 11:12
    Morten Skjoldager
    100

    If you're using umbraco7 i think you could do it this way: UmbClientMgr.contentFrame('/umbraco/ucommerce/....') 

    instead of parent.right.document.location.href

    Please remember to clear your client dependency cache aswell.

  • Johan Larsson 28 posts 98 karma points
    Oct 20, 2014 @ 18:29
    Johan Larsson
    0

    Perfect Morten, you saved my day! :)

  • Morten Skjoldager 440 posts 1499 karma points
    Oct 21, 2014 @ 13:14
    Morten Skjoldager
    0

    Glad i could help :) 

Please Sign in or register to post replies

Write your reply to:

Draft