Topic
  • 3 replies
  • Latest Post - ‏2014-11-12T17:27:39Z by PRABU_VM
abeaty
abeaty
3 Posts

Pinned topic Unable to get the plumbing right.

‏2013-04-05T13:47:16Z |
Hi there. I am getting this error displayed inside of Firefox's console when trying to load my own Layout with my own feature:

"uncaught exception: Failed to retrieve widget instance: AddDocumentDojo.AutoCaptureAddContentItemDialog"

I have been able to get other features loaded without issues, but when I try to extend AddContentItemDialog (so I can customize it), I continually get the above error. I have included screen prints of the feature definition as well as the structure of my RSA project. I have also included the JS code below.

I don't think the issue is with the Layout since it is working with 5 other features. Please help me figure out what I am missing. Thanks.

dojo.provide("AddDocumentDojo.AutoCaptureAddContentItemDialog");

dojo.require("dijit._Templated");
dojo.require("ecm.widget.dialog.AddContentItemDialog");

dojo.declare("AddDocumentDojo.AutoCaptureAddContentItemDialog", http:// ecm.widget.dialog.AddContentItemDialog, dijit._Templated , {
contentString: dojo.cache("ecm.widget.dialog", "templates/AddContentItemDialogContent.html"),

widgetsInTemplate: true,

constructor: function() {
this.inherited(arguments);
},

postCreate: function() {
this.inherited(arguments);
dojo.addClass(this.domNode, "ecmAutoCaptureAddContentItemDialog");
this.setResizable(true);
if (!this._checkin) {
this._actionButton = this.addButton(this.messages.add_document_add_label, "onAdd", true, false);
this._actionButton.set('id', 'ADD_' + this._actionButton.get('id'));
}
}
});
Updated on 2013-04-05T14:02:25Z at 2013-04-05T14:02:25Z by abeaty
  • abeaty
    abeaty
    3 Posts

    Re: Unable to get the plumbing right.

    ‏2013-04-05T13:57:09Z  
    Thinking somehow that the JS wasn't able to find the contentString (because it referenced the HTML file from the original dialog window), I copied everything locally to my plugin and changed the JS definition. Same error. :-(

    What am I missing?

    dojo.provide("AddDocumentDojo.AutoCaptureAddContentItemDialog");

    dojo.require("dijit._Templated");
    dojo.require("ecm.widget.dialog.AddContentItemDialog");

    dojo.declare("AddDocumentDojo.AutoCaptureAddContentItemDialog", http:// ecm.widget.dialog.AddContentItemDialog, dijit._Templated , {
    contentString: dojo.cache("AddDocumentDojo", "templates/AutoCaptureAddContentItemDialog.html"),

    widgetsInTemplate: true,

    constructor: function() {
    this.inherited(arguments);
    },

    postCreate: function() {
    this.inherited(arguments);
    dojo.addClass(this.domNode, "ecmAutoCaptureAddContentItemDialog");
    this.setResizable(true);
    if (!this._checkin) {
    this._actionButton = this.addButton(this.messages.add_document_add_label, "onAdd", true, false);
    this._actionButton.set('id', 'ADD_' + this._actionButton.get('id'));
    }
    }
    });
  • abeaty
    abeaty
    3 Posts

    Re: Unable to get the plumbing right.

    ‏2013-04-05T14:02:25Z  
    • abeaty
    • ‏2013-04-05T13:57:09Z
    Thinking somehow that the JS wasn't able to find the contentString (because it referenced the HTML file from the original dialog window), I copied everything locally to my plugin and changed the JS definition. Same error. :-(

    What am I missing?

    dojo.provide("AddDocumentDojo.AutoCaptureAddContentItemDialog");

    dojo.require("dijit._Templated");
    dojo.require("ecm.widget.dialog.AddContentItemDialog");

    dojo.declare("AddDocumentDojo.AutoCaptureAddContentItemDialog", http:// ecm.widget.dialog.AddContentItemDialog, dijit._Templated , {
    contentString: dojo.cache("AddDocumentDojo", "templates/AutoCaptureAddContentItemDialog.html"),

    widgetsInTemplate: true,

    constructor: function() {
    this.inherited(arguments);
    },

    postCreate: function() {
    this.inherited(arguments);
    dojo.addClass(this.domNode, "ecmAutoCaptureAddContentItemDialog");
    this.setResizable(true);
    if (!this._checkin) {
    this._actionButton = this.addButton(this.messages.add_document_add_label, "onAdd", true, false);
    this._actionButton.set('id', 'ADD_' + this._actionButton.get('id'));
    }
    }
    });
    The forum keep marking up the JS. Rather than figuring out the escape characters for it, I just attached it as a file.

    Attachments

  • PRABU_VM
    PRABU_VM
    59 Posts

    Re: Unable to get the plumbing right.

    ‏2014-11-12T17:27:39Z  
    • abeaty
    • ‏2013-04-05T14:02:25Z
    The forum keep marking up the JS. Rather than figuring out the escape characters for it, I just attached it as a file.

    Did u fix that issue?

    is it Working now?

    Can u please share fixed pice of code?

     

    Regards

    Prabhu