Copied to clipboard

Flag this post as spam?

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


  • Paul de Quant 394 posts 1477 karma points
    Mar 08, 2018 @ 14:43
    Paul de Quant
    0

    External Links in Link Picker not remembering what was entered previously

    Hi All,

    I have a link picker for a custom grid control. My issue is that if I enter an external link and I save it and then edit it again, when the sidebar appears it doesn't remember what I had saved. Here is the code I'm using:-

            $scope.setContentId = function () {
    
            $scope.linkPickerOverlay = {};
            $scope.linkPickerOverlay.view = "linkpicker";
            $scope.linkPickerOverlay.show = true;
            $scope.linkPickerOverlay.submit = function (model) {
    
                var selectedNode = model.target;
    
                $scope.control.value.linkprop = {
                    id: selectedNode.id,
                    udi: selectedNode.udi,
                    name: selectedNode.name,
                    url: selectedNode.url
                };
    
                $scope.setLink();
    
                $scope.linkPickerOverlay.show = false;
                $scope.linkPickerOverlay = null;
    
            };
    
            $scope.linkPickerOverlay.close = function (oldModel) {
                $scope.linkPickerOverlay.show = false;
                $scope.linkPickerOverlay = null;
            };
    
        };
    

    What do I need to add to my code for the external link to show in the spaces highlighted in the imageenter image description here

  • 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