1

Anybody knows what is the reason because a Component created through Anguilla Framework (with clone code) is blocked until I refresh the CME? This is my code:

var componentCloned = $tcm.getItem("tcm:XX-XXXX").clone("tcm:XX-XXXX-2", "ComponentName", false);

$evt.addEventHandler(componentCloned, "loadfailed", function(event){
    alert(event.data.Message);
});

$evt.addEventHandler(componentCloned, "idchange", function(event){
    var controls = $display.getView().properties.controls;
    var tab = controls.TabControl.getSelectedItem();
    var list = tab.getListComponentPresentations();
    var cp = list.getItems();
    list.insertItems(cp.length, [event.source.getId()], "tcm:XX-XXXX-32");

    Save$execute$removeItemEventHandlers();
});

Then, when I try to open the Component, it always show me the message "Loading...":

enter image description here

In the folder I can see that the Component has been created correctly and it is not blocked or checked in. Anybody knows what is the problem or any solution?

3
  • What does it say in console or performance tab ?
    – Andy Ross
    Commented Aug 30, 2018 at 18:43
  • It says nothing Andrew, and I need to refresh the CME with CTRL+R to open it. Commented Aug 31, 2018 at 7:04
  • Anybody knows the reason? Commented Sep 22, 2018 at 14:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.