ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
ReferenceError: Create is not defined - Crud in Lookup
Title:
B
I
{code}
?
Hi, I try to do a Create action in a lookup like in the trial/demo version (CRUD in Lookup). When a call the lookup in my home index view, the create action works but if i call the same lookup with the same parameters in a other view, i got this error : ReferenceError: Create is not defined with a link to this function of the js fonction : function onclick(event) { awe.pf(event,{u:'/Dinners/Create',p:'',m:1,w:700,h:330,t:'',i:'awesomePopup',b:[],ot:'OK',ct:'Cancel',sf:create,rc:1,pc:'',data:'|',pars:'|',cs:1,udb:1}) } I try the same in the demo version of awesome. I call the dinnerLookup in the index of GridDemo like <%:Html.Awe().Lookup("Dinner").CustomSearch(true).TableLayout(true).HighlightChange(true).Fullscreen(true) %> and i got the same error too. How can i call a lookup with CustomSearch(true) on many and differents views without this error?
Save Changes
Cancel
ousmane.nacanabo
asked at 15 Mar 2014
Answers
B
I
{code}
?
the create button is located in SearchForm.ascx, in there it has a success js function defined ( .Success("create") ), in CrudInLookup\Index.aspx you can see the create js function so when you copied the lookup helper declaration in a different page, and you click on that button it looks for the create js function which that page doesn't have
Save Changes
Cancel
Omu
answered at 15 Mar 2014
Thank a lot for your answer. The create js function was my problem but i solved it now
at 17 Mar 2014
ousmane.nacanabo
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK