Copied to clipboard

Flag this post as spam?

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


  • Ian Grainger 71 posts 135 karma points
    Aug 24, 2017 @ 15:40
    Ian Grainger
    1

    Can't refresh content tree from JS code on another tree

    We have some Javascript inside our angular control in the developer tree which needs to refresh the content tree.

    We can't call navigationService.syncTree({ tree: 'content'... because it returns an error - Could not find the tree content, activeTree has not been set.

    We can get it to work by calling changeSection('content') - THEN WAITING (timeout) - then calling navigationService.syncTree(.

    Obviously that sucks. It seems that changeSection isn't blocking and doesn't return a promise. I assume therefore what we need to do is listen to an event from the treeService once it's actually switched - but the treeService doesn't seem to be available! :(

    Can anyone help?

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft