Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Drag & Drop from root Folder

    Posted Fri November 10, 2023 07:30 PM

    Dear All,

    I develop a pluging for IBM Content Navigator to  Drag & Drop using the code below but i can't  drag from the root folder, So how can i enable Drag from the foot Folder

    aspect.around(Dnd.prototype, "canDrop", function(originalCanDrop){
        return function(sourceItems, targetItem, isCopy, rootItem){
            // First check if the standard method allow the drop
            var res = originalCanDrop.apply(this, [sourceItems, targetItem, isCopy, rootItem]);
            if (res) {
                // If it does, check that we are not trying to drop into the Recycle Bin
                res = !Utils.isItemUnderMyForfiddenFolder(targetItem);
                // Also Check if the source items contains the a forbidden item
                for (var i in sourceItems) {
                    var item = sourceItems[i];
                    if (Utils.isItemUnderMyForbiddenFolder(item)) {
                        res = false;
                        break;
                    }
                }
            }
            return res;
        }
    });

    Thanks for your help


    ------------------------------
    Fred TOMMY
    ------------------------------


  • 2.  RE: Drag & Drop from root Folder

    Posted Mon November 13, 2023 12:51 PM

    hi Fred,

    What is the root folder being referred to? Is it in the file system?

    Please clarify.



    ------------------------------
    Nanda Pilaka
    IBM Content Navigator Support
    ------------------------------



  • 3.  RE: Drag & Drop from root Folder

    Posted Mon November 13, 2023 01:03 PM

    Hi Nanda ,

    It is not a file system it is a FileNet Folder which i can't drag & drop items from this Folder to the child Folder
    I think i had a problem of privilege which i didn't find Js Code  to apply a privilege of dragging items in Folder?

    Thanks for your help 



    ------------------------------
    Fred TOMMY
    ------------------------------