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?

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.