Copied to clipboard

Flag this post as spam?

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


  • Don Nehc 69 posts 222 karma points
    Sep 13, 2016 @ 04:35
    Don Nehc
    0

    Reload Tree

    Hello,

    I have a question to make custom tree to show sub items that I have created. For example, I have school type tree, that I wan to show all schools I have created beneath it, but I am unable to accomplish it. I saw a function "loadActiveTree(treeAlias,). I can see it find the schoolTypes tree alias, but it doesn't show any schools I created. Can someone please help?

    enter image description here

    Best, -Don

  • Don Nehc 69 posts 222 karma points
    Sep 13, 2016 @ 04:37
    Don Nehc
    0

    This is my save function:

        $scope.save = function (schoolType) {
            schoolTypeResource.save(schoolType).then(function (response) {
                $scope.schoolType = response.data;
                $scope.schoolForm.$dirty = false;
                navigationService.syncTree({ tree: 'schoolTypes', path: [-1, -1], forceReload: true });
                notificationsService.success("Success", schoolType.Name + " (" + schoolType.Alias + ") has been saved");
            });
        };
    

    Best, -Don

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies