cancel
Showing results for 
Search instead for 
Did you mean: 

TypeError: Alfresco.module.getXXInstance is not a function

nikhilesh_s1vak
Confirmed Champ
Confirmed Champ
Hi All,
I am creating a custom site using the create-site webscript. In My dashlets create site button click i am calling my own function like getCreateProjInstance()
onCreateSubProj : function z(C) {
                     Alfresco.module.getCreateSubprojInstance().show();
                     B.preventDefault(C)
                  },
but am getting the error as below

TypeError: Alfresco.module.getCreateSubprojInstance is not a function
[Break On This Error]    

Alfresco.module.getCreateSubprojInstance().show();



I have stucked by this issue for 2 days. Please help me in solving out…
1 REPLY 1

erikwinlof
Confirmed Champ
Confirmed Champ
Hi Nikhilesh,

Some more samples of your code would be helpful, especially the remaining code "around" your custom functions getCreateSubprojInstance & onCreateSubProj AND also how you include your custom code.

Cheers, Erik