AnsweredAssumed Answered

undefined is not a function in dashlet

Question asked by jordiv on Oct 14, 2011
Latest reply on Apr 15, 2014 by yascorp
Hi,

I've done a dashlet with a configuration dialog, but when I click in the "Configure" link I get the following javascript error:

Uncaught TypeError: undefined is not a function
The problematic line of code is the following:

this.configDialog = new Alfresco.module.SimpleDialog(this.id + "-configDialog").setOptions( {
The problem seems to be that Alfresco.module.SimpleDialog() function is not defined. If I add the RSS Dashlet in the dashboard, then it works fine. I guess I'm missing an import or something like that, but I've searched in the rssfeed dashlet source code and I couldn't find it.

Any ideas?


Thanks,
Jordi.

Outcomes