Blank screen on page load, with this error. Any ideas?
- Home
- Forums
- Product Forums
- Skuid NLX, SFX, & EXP
- Uncaught TypeError: Cannot read property 'hasChanged' of undefined
Uncaught TypeError: Cannot read property 'hasChanged' of undefined
- July 9, 2024
- 29 replies
- 104 views
29 replies
- Scholar
- July 9, 2024
I’m not a master of javascript debugging but the last line jumps out to me. Click on it and take another screenshot of the source code surrounding line 82.
- Author
- July 9, 2024
You asked for it 😉
Here are the contents of line 82. Looks like the XML for the entire page.
skuid.component.factory('#skuid-page-a0fF00000092AN2IAM-component-1','{{Name}}STD ProcessInteractionPatientCaseInteractionsTableRelatedPersonSTDSTDTestPatientCaseInteractionRelatedPersonPatientSTDCategoryPurposeTypePermission to Say "CompassCare"Other RelationshipInsert List of STD Tests here for RN to review with Patient.Anal Sex Given (M)Anal Sex Received (M/F)Vaginal Sex Given (M)Vaginal Sex Received (F)Oral Sex Given (M/F)Oral Sex Received (M/F)Other STD<h1>STD History</h1><strong>Test</strong><strong>Results</strong><strong>Reported to Patient</strong><strong>Reported to Health Dept.</strong><strong>Treatment</strong><h1>Physicians</h1>Description{{Description1__c}} {{Description2__c}}Address<h1>Insurance</h1>Description<h1>Additional Referrals</h1>Description{{Description1__c}} {{Description2__c}}AddressOther Religious Background<h1>MotherCare</h1>Address<custom name="scriptJTex- Author
- July 9, 2024
Looking again, it’s not all the XML, just everything inside .
Hence the name “skuid.component.factory” I presume.
- Author
- July 9, 2024
😉 While we’re at it, here’s line 28 of skuid__SkuidJS, which is throwing the error:
W=new a.model.Condition,W.operator="gte",W.field=Y,W.inactive=!0,W.name=Z,W.encloseValueInQuotes=!1,X=new a.model.Condition,X.operator="lte",X.field=Y,X.inactive=!0,X.name=$,X.encloseValueInQuotes=!1,v.model.addCondition(W),v.model.addCondition(X)}if(d=v.model.getField(W.field),e=v.model.getField(X.field),!d||!e)return!1;var _,ab,bb=d.displaytype,cb=e.displaytype;W.inactive?_="":"DATETIME"===bb?(i=q(W.value),_=r(i)):(i=p(W.value),_=W.value),X.inactive?ab="":"DATETIME"===cb?(j=q(X.value),j.setDate(j.getDate()-1),ab=r(j)):(j=p(X.value),ab=X.value);var db=function(){eb.datepicker("getDate")||fb.datepicker("getDate")?pb.show():pb.hide()},eb=A.DATE.edit({value:_,onChange:db}).addClass("sk-timefilter-input"),fb=A.DATE.edit({value:ab,onChange:db}).addClass("sk-timefilter-input");v.element.addClass("nx-actionselect nx-conditiontoken");var gb,hb,ib=l("- Author
- July 9, 2024
EDIT: I bolded the 4 occurances of hasChanged in the above. Perhaps that actually useful to someone?
- Nintex Employee
- July 9, 2024
Matt gets the award for sending the most code…
I usually get this error when I have not defined an sObject for a model. Maybe you started to set up a model and then stopped to do somthing else and forgot about it? Happens to me all the time.
- Scholar
- July 9, 2024
My two cents. Don’t think it has anything to do with hasChanged. That’s skuid js and I don’t it’s their js that has a bug. Maybe, but I doubt it.
Does your page models point to any custom objects/fields. If not, I’ll take a look at the page if you want copy the page XML to here.
- Author
- July 9, 2024
Rob, all the models have sObjects.
Pat, Thanks… it’s entirely custom objects.
I’m guessing it has something to do with how the models are set up, but I haven’t been able to diagnose.
- Scholar
- July 9, 2024
What’s the last change you made? Assuming this worked before that.
- Author
- July 9, 2024
I made some changes early this week to which model would get the url parameter, and reordered the models. But everything seems to be set up the way it should with the models & conditions.
- Scholar
- July 9, 2024
I’d make a clone and start to remove one model at a time to see when the page starts to work again.
- Author
- July 9, 2024
Well… that was strange.
I realized that just before I noticed the error, I had added a field editor with a single field.
I removed that field editor, and voila! I worked.
I then added a field editor and the same field back again, and it still works!
So, I remain confused, but I have a working page. 🙂
- July 9, 2024
Hi Matt,
We consider any javascript error that comes from our code a problem with Skuid. Even if something is horribly wrong with your XML, Skuid Javascript should give you a nice error. One really cool feature I found recently in Chrome Dev Tools is the “Pretty Print” button on the “Sources” tab.
In the future, if you want to get closer to where the error is happening, click that button and it will turn one line of minified nastiness into lots of lines of slightly more understandable nastiness. I absolutely love that feature though.
- July 9, 2024
I just wanted to add to the conversation that i got this same error. The cause was from deleting a model. The table that was based on the model went away. And when i looked in the UI to change the models saved from my Save button on the page, the removed model was no longer listed there. However, when l looked at the XML, the deleted model was still in the XML to be updated by the save button. So I wanted to report this mismatch between the XML and the UI! If you have more questions or need clarification, let me know.
- Nintex Employee
- July 9, 2024
Thanks Rebecca. Great sleuthing! I’ll pass the issue along.
- Author
- July 9, 2024
Just a note that I ran into the same issue as Rebecca. Removing a model in the builder does not remove it from lists of models behind pagetitle save/cancel buttons.
- Nintex Employee
- July 9, 2024
Hmm. This does not happen for me any longer? ARe you on the latest version of Skuid? Check out Get the Latest Skuid Releases & Everything That Came Before
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Scanning file for viruses.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
OKThis file cannot be downloaded
Sorry, our virus scanner detected that this file isn't safe to download.
OK
