Uncaught TypeError: Cannot read property 'hasChanged' of undefined

  • 1
  • Problem
  • Updated 2 years ago
  • Not a Problem
Blank screen on page load, with this error. Any ideas?

Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
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.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
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','<skuidpage showsidebar="false" showheader="false" tabtooverride="" theme="" unsavedchangeswarning="yes" modstamp="1424463725000" name="STDProcess" pageid="a0fF00000092AN2IAM" uniqueid="skuid-page-a0fF00000092AN2IAM-component-1"><components><pagetitle model="Patient"><maintitle><template>{{Name}}</template></maintitle><subtitle>STD Process</subtitle><actions><action type="savecancel" window="self" rollbackonanyerror="true" afterSave="/{{Id}}" afterCancel="/{{Model.KeyPrefix}}/o" saveLabel="Save &amp; Close"><models><model>Interaction</model><model>PatientCase</model><model>InteractionsTable</model><model>RelatedPerson</model><model>STD</model><model>STDTest</model></models></action><action type="save" label="Quick Save" window="self" rollbackonanyerror="true" icon="sk-icon-save"><models><model>PatientCase</model><model>Interaction</model><model>RelatedPerson</model><model>PatientSTD</model></models></action></actions></pagetitle><basicfieldeditor showheader="true" showsavecancel="false" model="Patient" buttonposition="" mode="read" layout=""><columns><column width="50%"><sections><section title="*** WARNING - PATIENT ALLERGIES ***" collapsible="no"><fields><field id="Allergic_to_Latex__c" valuehalign="" type=""><renderconditions logictype="and" onhidedatabehavior="keep"/></field><field id="Food_or_Medicine_Allergies__c" valuehalign="" type=""/></fields><renderconditions logictype="or"><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" fieldmodel="Patient" sourcetype="fieldvalue" nosourcerowbehavior="deactivate" field="Allergic_to_Latex__c" value="true"/><rendercondition type="blank" operator="!=" fieldmodel="Patient" sourcetype="fieldvalue" field="Food_or_Medicine_Allergies__c" value="null" enclosevalueinquotes="false"/></renderconditions></section></sections><renderconditions logictype="and"/></column></columns><renderconditions logictype="or"><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" fieldmodel="Patient" sourcetype="fieldvalue" nosourcerowbehavior="deactivate" field="Allergic_to_Latex__c" value="true"/><rendercondition type="blank" operator="!=" fieldmodel="Patient" sourcetype="fieldvalue" nosourcerowbehavior="deactivate" field="Food_or_Medicine_Allergies__c" value="null" enclosevalueinquotes="false"/></renderconditions></basicfieldeditor><tabset rememberlastusertab="false" defertabrendering="true" renderas=""><tabs><tab name="Patient Overview" icon="" loadlazypanels="true"><components><custom name="toggleButtonE"/><custom name="scriptEText" cssclass="scriptBar-enabled"/><panelset type="custom" scroll=""><panels><panel width="50%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Patient" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="Patient" collapsible="no"><fields><field id="Name" required="true"/><field id="Sex__c"/><field id="Age__c"/></fields></section></sections></column></columns></basicfieldeditor></components></panel><panel width="50%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="read" layout=""><columns><column width="100%"><sections><section title="Section A" collapsible="no" showheader="false"><fields><field id="Payment_Option__c"/><field id="Other_PaymentOption__c" valuehalign="" type=""><renderconditions logictype="and" onhidedatabehavior="keep"><rendercondition type="fieldvalue" operator="contains" enclosevalueinquotes="true" fieldmodel="PatientCase" sourcetype="fieldvalue" field="Payment_Option__c" value="Other"/></renderconditions></field></fields></section></sections></column></columns></basicfieldeditor><basicfieldeditor showheader="true" showsavecancel="false" model="Interaction" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="" collapsible="no" showheader="false"><fields><field id="Notes__c" valuehalign="" type=""/></fields></section></sections></column></columns></basicfieldeditor></components></panel></panels></panelset><basicfieldeditor showheader="true" showsavecancel="false" model="RelatedPerson" buttonposition="" mode="edit"><columns><column width="50%"><sections><section title="Caller Someone Other Than Patient?" collapsible="collapsed"><fields><field id="Name" valuehalign="" type=""/><field id="Relationship_to_Patient__c"/><field id="Other_RelationshipToPatient__c" valuehalign="" type=""><renderconditions logictype="and" onhidedatabehavior="keep"><rendercondition type="fieldvalue" operator="contains" enclosevalueinquotes="true" fieldmodel="RelatedPerson" sourcetype="fieldvalue" field="Relationship_to_Patient__c" value="Other"/></renderconditions></field><field id="Sex__c" valuehalign="" type=""/></fields></section></sections><renderconditions/></column><column width="50%"><sections><section title="Related Person Contact Info" collapsible="collapsed"><fields><field id="Primary_Phone__c"/><field id="Primary_Phone_Type__c"/></fields></section></sections></column></columns></basicfieldeditor><skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="false" showexportbuttons="false" pagesize="all" createrecords="true" model="InteractionsTable" buttonposition="" mode="read" emptysearchbehavior="query"><fields><field id="Date__c" valuehalign="" type=""/><field id="Interaction_Category__c" valuehalign="" type=""><label>Category</label></field><field id="Interaction_Purpose__c" valuehalign="" type=""><label>Purpose</label></field><field id="Interaction_Type__c" valuehalign="" type=""><label>Type</label></field><field id="Status__c"/><field id="Notes__c"/></fields><rowactions><action type="edit"/><action type="delete"/></rowactions><massactions usefirstitemasdefault="true"/><views><view type="standard"/></views><searchfields/></skootable></components></tab><tab name="Welcome Packet" loadlazypanels="true"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Patient" buttonposition="" mode="readonly" layout=""><columns><column width="50%"><sections><section title="Basics" collapsible="no"><fields><field id="Name" required="false" valuehalign="" type="CUSTOM"/><field id="First_Name__c" required="true"/><field id="Middle_Name__c"/><field id="Last_Name__c" required="true"/><field id="Date_of_Birth__c" readonly="false" required="true" valuehalign="" type=""/><field id="Sex__c" valuehalign="" type=""/><field id="Ethnicity__c"/><field id="Marital_Status__c" valuehalign="" type=""/><field id="Occupation__c"/></fields></section></sections></column><column width="50%"><sections><section title="Contact Info" collapsible="no"><fields><field id="Primary_Phone__c" required="true" valuehalign="" type=""/><field id="Primary_Phone_Type__c" required="true"/><field id="Alternate_Phone__c" valuehalign="" type=""/><field id="Alternate_Phone_Type__c"/><field id="Email_Address__c" required="false"/><field id="Mailing_Address__c" required="true" valuehalign="" type=""/><field id="City__c" required="true" valuehalign="" type=""/><field id="State__c" required="true" valuehalign="" type=""/><field id="Zip__c" readonly="false" required="false" valuehalign="" type=""/></fields></section></sections></column></columns></basicfieldeditor><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="readonly" layout=""><columns><column width="50%"><sections><section title="How may we contact you?" collapsible="no"><fields><field id="Permission_to_Call__c"/><field id="Permission_to_Leave_Message__c" valuehalign="" type=""/><field id="Permission_to_say_CompassCare__c" valuehalign="" type=""><label>Permission to Say &quot;CompassCare&quot;</label></field><field id="Permission_to_Text__c" valuehalign="" type=""/></fields></section></sections></column><column width="50%"><sections><section title="Education" collapsible="no"><fields><field id="Currently_in_School__c" valuehalign="" type=""/><field id="School_Name__c" valuehalign="" type=""><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Currently_in_School__c" value="true"/></renderconditions></field><field id="Education__c" valuehalign="" type=""/></fields></section></sections></column></columns></basicfieldeditor><basicfieldeditor showheader="true" showsavecancel="false" model="RelatedPerson" buttonposition="" mode="readonly" layout=""><columns><column width="50%"><sections><section title="Emergency Contact" collapsible="no"><fields><field id="First_Name__c" valuehalign="" type=""/><field id="Middle_Name__c"/><field id="Last_Name__c"/><field id="Relationship_to_Patient__c"/><field id="Other_RelationshipToPatient__c"><label>Other Relationship</label><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" field="Relationship_to_Patient__c" value="Other (please specify below)"/></renderconditions></field><field id="Primary_Phone__c"/><field id="Primary_Phone_Type__c"/></fields></section></sections></column></columns><renderconditions/></basicfieldeditor></components><renderconditions logictype="and"/></tab><tab name="Intake Form" loadlazypanels="true"><components><custom name="toggleButtonA"><renderconditions logictype="and"/></custom><custom name="scriptAText" cssclass="scriptBar-enabled"><renderconditions logictype="and"/></custom><custom name="toggleButtonB"/><custom name="scriptBText" cssclass="scriptBar-disabled"/><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="" collapsible="no" showheader="false"><fields><field id="Chief_Complaint__c" valuehalign="" type=""/></fields></section></sections></column></columns></basicfieldeditor></components></tab><tab name="STD Panel" loadlazypanels="true"><components><custom name="toggleButtonC"/><custom name="scriptCText" cssclass="scriptBar-disabled"/><template multiple="false" model="Interaction"><contents>Insert List of STD Tests here for RN to review with Patient.</contents></template></components></tab><tab name="Consents" loadlazypanels="true"><components><custom name="toggleButtonD"/><custom name="scriptDText" cssclass="scriptBar-enabled"/></components></tab><tab name="Health Questionnaire" loadlazypanels="true"><components><custom name="toggleButtonF"/><custom name="scriptFText" cssclass="scriptBar-enabled"/><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="edit" layout=""><columns><column width="50%"><sections><section title="Sexual Activity" collapsible="no"><fields><field id="Sexual_Partners_Last_90_Days__c"/><field id="Monthly_Sexual_Encounters__c"/><field id="Anal_Sex_Given__c" showhelp="true"><label>Anal Sex Given (M)</label><renderconditions><rendercondition type="fieldvalue" operator="!=" enclosevalueinquotes="true" field="Patient__r.Sex__c" value="Female"/></renderconditions></field><field id="Anal_Sex_Received__c"><label>Anal Sex Received (M\/F)</label><renderconditions/></field><field id="Vaginal_Sex_Given__c" showhelp="true"><label>Vaginal Sex Given (M)</label><renderconditions><rendercondition type="fieldvalue" operator="!=" enclosevalueinquotes="true" field="Patient__r.Sex__c" value="Female"/></renderconditions></field><field id="Vaginal_Sex_Received__c"><label>Vaginal Sex Received (F)</label><renderconditions><rendercondition type="fieldvalue" operator="!=" enclosevalueinquotes="true" value="Male" field="Patient__r.Sex__c"/></renderconditions></field><field id="Oral_Sex_Given__c"><label>Oral Sex Given (M\/F)</label></field><field id="Oral_Sex_Received__c"><label>Oral Sex Received (M\/F)</label></field></fields></section></sections></column><column width="50%"><sections><section title="Symptoms" collapsible="no"><fields><field id="Sore_Throat__c"/><field id="Genital_Pain__c"/><field id="Genital_Lesions__c"/><field id="Abnormal_Discharge_Odor__c"/><field id="Frequent_Urination__c"/><field id="Pain_Burning_with_Urination__c"/><field id="Blood_in_Urine__c"/><field id="Other_STD_Symptom__c"/></fields></section></sections></column></columns></basicfieldeditor></components><renderconditions/></tab><tab name="STD History" loadlazypanels="true"><components><panelset type="custom"><panels><panel width="66.6%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="edit"><columns><column width="50%"><sections><section title="STD History" collapsible="no"><fields><field id="Patient_Tested_for_STDs__c" showhelp="true"/><field id="Date_of_Last_STD_Test__c"><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Patient_Tested_for_STDs__c" value="true"/></renderconditions></field><field id="Patient_has_Ever_Had_an_STD__c" showhelp="true"/><field id="Date_of_Most_Recent_STD__c"><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Patient_has_Ever_Had_an_STD__c" value="true"/></renderconditions></field></fields></section></sections></column><column width="50%"><sections><section title="Sexual Exposure" collapsible="no"><fields><field id="Sexual_Exposure_to_Person_with_STD__c" showhelp="true"/><field id="Date_of_Sexual_Exposure__c"><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Sexual_Exposure_to_Person_with_STD__c" value="true"/></renderconditions></field><field id="Sexual_Exposure_to_What_STD__c"><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Sexual_Exposure_to_Person_with_STD__c" value="true"/></renderconditions></field><field id="Other_SexualExposureToWhatSTD__c"><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Sexual_Exposure_to_Person_with_STD__c" value="true"/><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" field="Sexual_Exposure_to_What_STD__c" value="Other (please specify below)"/></renderconditions><label>Other STD</label></field></fields></section></sections></column></columns></basicfieldeditor></components></panel><panel width="33.3%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Interaction" buttonposition="" mode="edit"><columns><column width="100%"><sections><section title="STD Discussion" collapsible="no"><fields><field id="STD_Testing_Requested__c"/></fields></section></sections></column></columns></basicfieldeditor></components></panel></panels></panelset><template multiple="true" model="STD" allowhtml="true"><contents>&lt;h1&gt;STD History&lt;\/h1&gt;</contents></template><skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="false" showexportbuttons="false" pagesize="all" createrecords="true" model="STD" buttonposition="" mode="edit" emptysearchbehavior="query"><fields><field id="STD__c" columnwidth="25%"/><field id="Date_of_STD__c" columnwidth="25%"/><field id="Treated__c" columnwidth="25%"/></fields><rowactions><action type="edit"/><action type="delete"/></rowactions><massactions usefirstitemasdefault="true"/><views><view type="standard"/></views><renderconditions logictype="and"><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" fieldmodel="PatientCase" nosourcerowbehavior="deactivate" field="Patient_has_Ever_Had_an_STD__c" value="true"/></renderconditions><searchfields/></skootable></components></tab><tab name="Health Conditions" loadlazypanels="true"><components><panelset type="custom"><panels><panel width="66.6%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="edit"><columns><column width="50%"><sections><section title="" collapsible="no"><fields><field id="Over_the_Counter_or_Prescription_Meds__c"/><field id="What_Medications__c"/></fields></section></sections></column><column width="50%"><sections><section title="" collapsible="no"><fields><field id="Cigaretters__c"/><field id="How_Many_Cigarettes__c"/></fields></section></sections></column></columns></basicfieldeditor><panelset type="custom"><panels><panel width="50%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="edit"><columns><column width="100%"><sections><section title="" collapsible="no"><fields><field id="Street_Drugs__c"/><field id="Which_Street_Drugs__c"/></fields></section></sections></column></columns></basicfieldeditor></components></panel><panel width="50%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="edit"><columns><column width="100%"><sections><section title="" collapsible="no"><fields><field id="Alcohol__c"/><field id="How_Often_Alcohol_Used__c"/></fields></section></sections></column></columns></basicfieldeditor></components></panel></panels></panelset></components></panel><panel width="33.3%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Patient" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="" collapsible="no"><fields><field id="Allergic_to_Latex__c"/><field id="Allergic_Response__c"><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Allergic_to_Latex__c" value="true"/></renderconditions></field><field id="Food_or_Medicine_Allergies__c"/></fields></section></sections></column></columns></basicfieldeditor></components></panel></panels></panelset></components></tab><tab name="Test, Results &amp; Education" loadlazypanels="true"><components><custom name="toggleButtonI"/><custom name="scriptITest"/><custom name="toggleButtonH"/><custom name="scriptHTest"/><skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="false" showexportbuttons="false" pagesize="25" createrecords="true" model="STDTest" buttonposition="" mode="read" emptysearchbehavior="query"><fields><field id="STD__c"/><field id="Date_of_Test__c"/><field id="Results__c"/><field id="STD_Treatment__c"/></fields><rowactions><action type="edit"/><action type="delete"/><action type="drawer" label="Details" icon="fa-file-text"><drawer title="Drawer Area" width="800" closehandle="true"><components><basicfieldeditor showheader="true" showsavecancel="true" model="STDTest" buttonposition="" mode="read" layout="above" cssclass="STDTableDrawer"><columns><column width="25%"><sections><section title="Fields" collapsible="no"><fields><field type="COMBO" valuehalign="" editmodebehavior="autopopup" allowhtml="true" readonly="true"><template>&lt;strong&gt;Test&lt;\/strong&gt;</template></field><field type="COMBO" valuehalign="" editmodebehavior="autopopup" allowhtml="true" readonly="true"><template>&lt;strong&gt;Results&lt;\/strong&gt;</template></field><field type="COMBO" valuehalign="" editmodebehavior="autopopup" allowhtml="true" readonly="true"><template>&lt;strong&gt;Reported to Patient&lt;\/strong&gt;</template></field><field type="COMBO" valuehalign="" editmodebehavior="autopopup" allowhtml="true" readonly="true"><template>&lt;strong&gt;Reported to Health Dept.&lt;\/strong&gt;</template></field><field type="COMBO" valuehalign="" editmodebehavior="autopopup" allowhtml="true" readonly="true"><template>&lt;strong&gt;Treatment&lt;\/strong&gt;</template></field></fields></section></sections></column><column width="25%"><sections><section title="STD Details" collapsible="no"><fields><field id="Test_Method__c" valuehalign="" type=""><label/></field><field id="Results__c" valuehalign="" type=""><label/></field><field id="Results_Reported_to_Patient__c" valuehalign="" type=""><label/></field><field id="Results_Reported_to_Health_Department__c" valuehalign="" type=""><label/></field><field id="STD_Treatment__c" valuehalign="" type=""><label/></field></fields></section></sections></column><column width="25%"><sections><section title="Date" collapsible="no"><fields><field id="Date_of_Test__c" valuehalign="" type=""><label/></field><field id="Results_Date__c" valuehalign="" type=""><label/></field><field id="Date_of_Report_to_Patient__c" valuehalign="" type=""><label/></field><field id="Date_of_Report_to_Health_Department__c" valuehalign="" type=""><label/></field><field id="Treatment_Date__c" valuehalign="" type=""><label/></field></fields></section></sections></column><column width="25%"><sections><section title="RN Initials" collapsible="no"><fields><field id="RN_Initials_for_Test__c" valuehalign="" type=""><label/></field><field id="RN_Initials_for_Results__c" valuehalign="" type=""><label/></field><field id="RN_Initials_for_Reporting_to_Patient__c" valuehalign="" type=""><label/></field><field id="RN_Initials_Reporting_to_Health_Dept__c" valuehalign="" type=""><label/></field><field id="RN_Initials_for_Treatment__c" valuehalign="" type=""><label/></field></fields></section></sections></column></columns><conditions/><renderconditions logictype="and"/></basicfieldeditor></components><beforeload/></drawer></action></rowactions><massactions usefirstitemasdefault="true"><action type="massupdate"/><action type="massdelete"/></massactions><views><view type="standard"/></views><searchfields/><renderconditions logictype="and"/></skootable></components></tab><tab name="PRL" loadlazypanels="true"><components><custom name="toggleButtonG"/><custom name="scriptGText" cssclass="scriptBar-enabled"/><template multiple="true" model="ReferralPhysicians" allowhtml="true"><contents>&lt;h1&gt;Physicians&lt;\/h1&gt;</contents></template><skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="false" showexportbuttons="false" pagesize="all" createrecords="true" model="ReferralPhysicians" buttonposition="" mode="edit"><fields><field id="Print__c" type="" valuehalign=""/><field id="Name" valuehalign="" type="" readonly="true"/><field type="COMBO" valuehalign="" readonly="true"><label>Description</label><template>{{Description1__c}} {{Description2__c}}</template></field><field id="Phone__c" valuehalign="" type="" readonly="true"/><field id="Address1__c" valuehalign="" type="" readonly="true"><label>Address</label></field><field id="City__c" valuehalign="" type="" readonly="true"/><field id="Postal_Code__c" valuehalign="" type="" readonly="true"/></fields><rowactions/><massactions usefirstitemasdefault="true"/><views/><searchfields/></skootable><template multiple="true" model="ReferralInsurance" allowhtml="true"><contents>&lt;h1&gt;Insurance&lt;\/h1&gt;</contents></template><skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="false" showexportbuttons="false" pagesize="all" createrecords="true" model="ReferralInsurance" buttonposition="" mode="edit"><fields><field id="Print__c" type="" valuehalign=""/><field id="Name" valuehalign="" type="" readonly="true"/><field id="Description1__c" valuehalign="" type="" readonly="true"><label>Description</label></field><field id="Phone__c" valuehalign="" type="" readonly="true"/><field id="Email__c" valuehalign="" type="" readonly="true"/><field id="Website__c" valuehalign="" type="" readonly="true"/></fields><rowactions/><massactions usefirstitemasdefault="true"/><views/><searchfields/></skootable><template multiple="true" model="ReferralOthers" allowhtml="true"><contents>&lt;h1&gt;Additional Referrals&lt;\/h1&gt;</contents></template><skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="false" showexportbuttons="false" pagesize="all" createrecords="true" model="ReferralOthers" buttonposition="" mode="edit"><fields><field id="Print__c"/><field id="Name" valuehalign="" type="" readonly="true"/><field id="Category__c" valuehalign="" type="" readonly="true"/><field type="COMBO" valuehalign="" readonly="true"><label>Description</label><template>{{Description1__c}} {{Description2__c}}</template></field><field id="Phone__c" valuehalign="" type="" readonly="true"/><field id="Address1__c" valuehalign="" type="" readonly="true"><label>Address</label></field><field id="Postal_Code__c" valuehalign="" type="" readonly="true"/><field id="Website__c" valuehalign="" type="" readonly="true"/><field id="Contact_Name__c" valuehalign="" type="" readonly="true"/></fields><rowactions/><massactions usefirstitemasdefault="true"/><views/><searchfields/></skootable></components></tab><tab name="Church" loadlazypanels="true"><components><panelset type="custom" scroll=""><panels><panel width="50%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Patient" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="Religion" collapsible="no"><fields><field id="Religious_Background__c"/><field id="Other_ReligiousBackground__c"><label>Other Religious Background</label><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" field="Religious_Background__c" value="Other (please specify below)"/></renderconditions></field></fields></section></sections></column></columns></basicfieldeditor></components></panel><panel width="50%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="Religious Engagement" collapsible="no"><fields><field id="Religiously_Active__c"/><field id="Congregation__c"><renderconditions><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Religiously_Active__c" value="true"/></renderconditions></field></fields></section></sections></column></columns></basicfieldeditor></components></panel></panels></panelset><template multiple="true" model="MotherCare" allowhtml="true"><contents>&lt;h1&gt;MotherCare&lt;\/h1&gt;</contents></template><skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="false" showexportbuttons="false" pagesize="all" createrecords="true" model="MotherCare" buttonposition="" mode="edit"><fields><field id="Print__c" type="" valuehalign=""/><field id="Name" valuehalign="" type="" readonly="true"/><field id="Address1__c" valuehalign="" type="" readonly="true"><label>Address</label></field><field id="Postal_Code__c" valuehalign="" type="" readonly="true"/><field id="Contact_Name__c" valuehalign="" type="" readonly="true"/><field id="Contact_Phone__c" valuehalign="" type="" readonly="true"/><field id="Contact_Email__c" valuehalign="" type="" readonly="true"/></fields><rowactions/><massactions usefirstitemasdefault="true"/><views/><searchfields/><renderconditions logictype="and"/></skootable></components></tab><tab name="Evangelism" loadlazypanels="true"><components><panelset type="custom" scroll=""><panels><panel width="50%"><components><custom name="toggleButtonJ"/><custom name="scriptJText" cssclass="scriptBar-enabled"/></components></panel><panel width="50%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="PatientCase" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="Gospel Presentation" collapsible="no"><fields><field id="Patient_Claims_to_be_a_Christian__c" valuehalign="" type=""/><field id="Complete_Gospel_Presentation_Given__c" valuehalign="" type=""><renderconditions logictype="and" onhidedatabehavior="keep"/></field><field id="Patient_Accepted_Christ__c" valuehalign="" type=""><label>Patient Accepted Christ?</label><renderconditions logictype="and" onhidedatabehavior="cancel"><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Complete_Gospel_Presentation_Given__c" value="true"/></renderconditions></field><field id="Refused_to_Allow_Gospel_Presentation__c" valuehalign="" type=""><renderconditions logictype="and" onhidedatabehavior="cancel"><rendercondition type="fieldvalue" operator="!=" enclosevalueinquotes="false" field="Complete_Gospel_Presentation_Given__c" value="true" fieldmodel="Interaction" sourcetype="fieldvalue"/></renderconditions></field><field id="Why_Gospel_Presentation_Not_Given__c" valuehalign="" type=""><renderconditions logictype="and" onhidedatabehavior="cancel"><rendercondition type="fieldvalue" operator="!=" enclosevalueinquotes="false" field="Complete_Gospel_Presentation_Given__c" value="true" fieldmodel="Interaction" sourcetype="fieldvalue" nosourcerowbehavior="deactivate"/><rendercondition type="fieldvalue" operator="!=" enclosevalueinquotes="false" field="Refused_to_Allow_Gospel_Presentation__c" value="true" fieldmodel="Interaction" sourcetype="fieldvalue" nosourcerowbehavior="deactivate"/></renderconditions></field><field id="Reason_for_Patient_Refusal__c" valuehalign="" type=""><renderconditions logictype="and" onhidedatabehavior="cancel"><rendercondition type="fieldvalue" operator="!=" enclosevalueinquotes="false" fieldmodel="PatientCase" sourcetype="fieldvalue" field="Complete_Gospel_Presentation_Given__c" value="true"/><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" field="Refused_to_Allow_Gospel_Presentation__c" value="true" fieldmodel="Interaction" sourcetype="fieldvalue"/></renderconditions></field><field id="Steps_to_Peace_with_God__c" valuehalign="" type=""><label>&quot;Steps to Peace with God&quot; Given?</label><renderconditions logictype="and" onhidedatabehavior="keep"/></field><field id="Evangelism_Notes__c" valuehalign="" type=""/></fields></section></sections></column></columns></basicfieldeditor></components></panel></panels></panelset><panelset type="vertical"><panels><panel width="225"><components><custom name="toggleButtonK"/><custom name="scriptKText"/></components></panel><panel><components><template multiple="true" model="MotherCare" allowhtml="true"><contents>&lt;h1&gt;MotherCare&lt;\/h1&gt;</contents><renderconditions logictype="and"/></template><skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="all" createrecords="true" model="MotherCare" buttonposition="" mode="edit"><fields><field id="Print__c" type="" valuehalign=""/><field id="Name" valuehalign="" type="" readonly="true"/><field id="Address1__c" valuehalign="" type="" readonly="true"><label>Address</label></field><field id="Postal_Code__c" valuehalign="" type="" readonly="true"/><field id="Contact_Name__c" valuehalign="" type="" readonly="true"/><field id="Contact_Phone__c" valuehalign="" type="" readonly="true"/><field id="Contact_Email__c" valuehalign="" type="" readonly="true"/></fields><rowactions/><massactions usefirstitemasdefault="true"/><views/><searchfields/><renderconditions logictype="and"><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="PatientCase" sourcetype="fieldvalue" nosourcerowbehavior="deactivate"/></renderconditions></skootable></components></panel></panels><renderconditions logictype="and"><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" fieldmodel="PatientCase" sourcetype="fieldvalue" nosourcerowbehavior="deactivate" field="Patient_Accepted_Christ__c" value="true"/></renderconditions></panelset></components></tab><tab name="Closing-Return" loadlazypanels="true"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Interaction" buttonposition="" mode="edit" layout=""><columns><column width="50%"><sections><section title="Return Appointment" collapsible="no"><fields><field id="Return_Appointment_Required__c" valuehalign="" type=""/><field id="Return_Appointment_Details__c"/></fields></section></sections></column><column width="50%"><sections><section title="" collapsible="no"><fields><field id="Anything_Else_We_Can_Do_for_Patient__c" valuehalign="" type=""/><field id="Closing_Notes__c"/></fields></section></sections></column></columns></basicfieldeditor><includepanel type="skuid" pagename="CalendarInclude" module="CCUI" querystring="intid={{$Model.Interaction.data.0.Id}}"><renderconditions logictype="and"><rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" fieldmodel="Interaction" sourcetype="fieldvalue" nosourcerowbehavior="deactivate" field="Return_Appointment_Required__c" value="true"/></renderconditions></includepanel></components></tab><tab name="RN Summary" loadlazypanels="true"><components><panelset type="custom" scroll=""><panels><panel width="33.3%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Patient" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="Patient Summary" collapsible="no"><fields><field id="Sex__c"/><field id="Age__c"/><field id="Ethnicity__c"/><field id="Food_or_Medicine_Allergies__c"/></fields></section></sections></column></columns></basicfieldeditor></components></panel><panel width="33.3%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Interaction" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="Interaction Summary" collapsible="no"><fields><field id="Interaction_Category__c"/><field id="Interaction_Purpose__c"/><field id="Interaction_Type__c"/><field id="Status__c"/></fields></section></sections></column></columns></basicfieldeditor></components></panel><panel width="33.3%"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Interaction" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="Return Appointment" collapsible="no"><fields><field id="Return_Appointment_Required__c" valuehalign="" type=""/></fields></section></sections></column></columns></basicfieldeditor></components></panel></panels></panelset><template multiple="true" model="STDTest" allowhtml="true"><contents>&lt;h1&gt;STD Tests &amp; Results&lt;\/h1&gt;</contents></template><skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="all" createrecords="true" model="STDTest" buttonposition="" mode="edit"><fields><field id="Test_Performed__c"/><field id="Results__c"/><field id="STD_Treatment__c"/></fields><rowactions><action type="edit"/><action type="delete"/></rowactions><massactions usefirstitemasdefault="true"/><views><view type="standard"/></views></skootable><basicfieldeditor showheader="true" showsavecancel="false" model="Interaction" buttonposition="" mode="edit" layout=""><columns><column width="100%"><sections><section title="" collapsible="no"><fields><field id="Nurse_s_Additional_Notes__c" valuehalign="" type=""/></fields></section></sections></column></columns></basicfieldeditor></components></tab><tab name="Feedback" loadlazypanels="true"><components><basicfieldeditor showheader="true" showsavecancel="false" model="Interaction" buttonposition="" mode="edit" layout=""><columns><column width="50%"><sections><section title="Core Values" collapsible="no"><fields><field id="Demonstrated_Fighting_Spirit__c"/><field id="Demonstrated_Relevance__c"/><field id="Demonstrated_Accountability__c" valuehalign="" type=""/></fields></section><section title="Signature" collapsible="no"><fields><field id="LastModifiedBy.Name" valuehalign="" type=""><label>Staff</label></field><field type="COMBO" valuehalign="" editmodebehavior="autopopup"><label>Signature</label><template>[Collect User Signature Here]</template></field></fields></section></sections></column><column width="50%"><sections><section title="Continuous Improvement Feedback" collapsible="no"><fields><field id="Interaction_Positives__c" valuehalign="" type=""><label>Interaction Positives (What went well?)</label></field><field id="Interaction_Enhancements__c"><label>Interaction Enhancements (How could we improve?)</label></field></fields></section></sections></column></columns></basicfieldeditor></components></tab></tabs><renderconditions logictype="and"/></tabset></components></skuidpage>');</script>
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Looking again, it's not all the XML, just everything inside <components>.

Hence the name "skuid.component.factory" I presume.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
hehehe.... a screenshot. Not copy paste.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
;) 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("<div>"),jb=l("<div>").addClass("nx-actionselect-text").append(ib),kb=l("<div>").addClass("nx-actionselect-arrow").append(l("<div>")),lb=l("<div>").addClass("nx-actionselect-dropdown sk-timefilter-body").hide(),mb=l("<div>").text(t("start_date")).addClass("sk-timefilter-label"),nb=l("<div>").text(t("end_date")).addClass("sk-timefilter-label"),ob=l("<div>"),pb=l("<div>").addClass("sk-timefilter-clearfilter-button").text("Clear Filter");pb.click(function(){eb.datepicker("setDate",null),fb.datepicker("setDate",null),db()}),B?(hb=l("<div>").text(t("done")).addClass("sk-timefilter-button"),ob.append(hb)):(gb=l("<div>").text(t("cancel")).addClass("sk-timefilter-button-grey"),hb=l("<div>").text(t("apply")).addClass("sk-timefilter-button"),ob.append(hb,gb)),v.updateDisplayValue=function(b,c){var d,e=o.makeFormattedDateFromJS,f=a.label.merge;return d=b&&c?e(b)+" - "+e(c):b&&!c?f(t("after_this"),e(b)):!b&&c?f(t("before_this"),e(c)):t("all_time"),ib.text(d),eb.datepicker("setDate",b),fb.datepicker("setDate",c),db(),v},v.updateDisplayValue(i,j),gb&&gb.click(function(){lb.hide("fast")}),v.activateFilter=function(){var a,b,c=eb.datepicker("getDate"),d=fb.datepicker("getDate");if(c&&(a=r(c)),d&&(b=r(d)),a?("DATETIME"===bb&&(a=s(p(a))),v.model.setCondition(W,a,v.affectCookies)):v.model.deactivateCondition(W,v.affectCookies),b){if("DATETIME"===cb){var e=p(b);e.setDate(e.getDate()-0+1),b=s(e)}v.model.setCondition(X,b,v.affectCookies)}else v.model.deactivateCondition(X,v.affectCookies);v.setOriginalValue({start:c,end:d})},hb.click(function(){var a=eb.datepicker("getDate"),b=fb.datepicker("getDate");B?v.list.showFilterActions():(v.activateFilter(),v.executeFilter()),v.updateDisplayValue(a,b),lb.hide("fast")}),lb.append(mb,eb,nb,fb,pb,ob),v.element.addClass("nx-actionselect-haslabel").append(jb,kb,lb),jb.add(kb).click(function(){lb.is(":visible")?lb.toggle("fast"):(lb.css("min-width",Math.max(v.element.width(),180)+"px"),lb.show("fast"))})}"toggle"===x||"auto"!==C&&"manual"!==C||(h=l("<div>").addClass("nx-actionselect-label"),"auto"===C?"daterange"===x?f=d.label:c&&(f=c.label):"manual"===C&&(f=k.attr("label"),f&&(f=n.mergeAsTextInContext(f,{model:v.model}))),f&&(h.text(f),v.element.addClass("nx-actionselect-haslabel").prepend(h))),v.selectedItem||v.isMultiselect||(c&&v.isReferenceFilter?v.selectedItem=v.element.actionAutocomplete("getSelectedItem"):"daterange"===x?v.setOriginalValue({start:i,end:j}):v.selectedItem=v.element.actionSelect("getSelectedItem"))}function h(a){a=a||{};var b=this,e=a.grandparent,f=a.parent,g=a.model,h=a.element;b.model=g,e.css({overflow:"hidden","overflow-x":"hidden","overflow-y":"hidden"}),f.css({position:"relative","padding-left":"0px","padding-right":"0px",height:"100%"}),b.element=h.addClass("nx-queue").data("object",b).appendTo(f);var i=a.title?n.mergeAsText("model",a.title,{createFields:!0,registerFields:!1},g):"";b.header=l("<div>").addClass("nx-queue-header").attr({"aria-controls":h.prop("id")}),b.headerInner=l("<div>").addClass("nx-queue-header-inner").appendTo(b.header),b.titleBar=l("<div>").addClass("nx-queue-titlebar").appendTo(b.headerInner),(a.showSearchBox===!0||a.filtersXML&&a.filtersXML.children&&a.filtersXML.children().length>0)&&(b.titleIcon=l("<div>").addClass("ui-icon ui-icon-gear nx-queue-titleicon").on("click",function(){b.settingsBar.toggle(),b.element.css("border-top",b.header.height()+2+"px solid white")}).appendTo(b.titleBar)),b.titleText=l("<div>").text(i).addClass("nx-queue-titletext").appendTo(b.titleBar),b.settingsBar=l("<div>").addClass("nx-queue-settings").hide().appendTo(b.headerInner),f.append(b.element,b.header),b.editor=new c(b.element,{showSaveCancel:!1,buttonPosition:"block"});var j={};j.render=function(c){c.element.addClass("nx-queue-item");var d=l("<div>").addClass("nx-queue-item-inner").appendTo(c.element);a.tagRenderer&&a.tagRenderer(b.model,b.list,c,d)},b.views={standard:j},b.list=new d(b.editor,b.model,{views:b.views,listFilters:a.filtersXML,conditions:a.editorConditions,showSearchBox:a.showSearchBox,useSOSLSearch:a.useSOSLSearch,SOSLFields:a.SOSLFields,searchMethod:a.searchMethod||"server",searchConditionName:a.searchConditionName,tokenizeSearch:"undefined"!=typeof a.tokenizeSearch?a.tokenizeSearch:!0,searchPlaceholderText:a.searchPlaceholderText,delayFilterExecution:a.delayFilterExecution}),b.model.registerList(b.list),b.list.render(),b.list.attach();var k=this.list.editor.header;k.detach().appendTo(b.settingsBar),b.element.on("click.skuid",".nx-queue-item",function(b){var c=l(this).data("object");a.tagClickAction&&a.tagClickAction(c),b.stopPropagation()})}function i(a,b){b||(b={});var c=b.mode||"edit",d=l("<div>").addClass("nx-editor-contents nx-basicfieldeditor-section-body");return l.each(a,function(a,e){var f=l("<div>").addClass("nx-basicfieldeditor-item"),g=l("<div>").addClass("nx-basicfieldeditor-item-label").text(e.metadata.label).appendTo(f);e.mode=c,e.editable=e.metadata.editable,e.editor=b.editor,e.wrapperElement=f,e.labelElement=g,e.render(),f.append(e.element),d.append(f)}),d}function j(a,b,c){a&&(a.css("opacity",1).show(),b.text(c))}function k(a,b,c,d){a&&(b.text(c),0===d?a.hide():a.animate({opacity:"0"},d||500,function(){a.hide()}))}var l=a.$,m=a.ui={},n=a.utils,o=a.time,p=o.parseSFDate,q=o.parseSFDateTime,r=o.getSFDate,s=o.getSFDateTime,t=a.label.read,u=n.encodeHTML,v=n.decodeHTML,w=window.sforce&&sforce.one?sforce.one:!1,x=window.sforce&&sforce.console&&sforce.console.isInConsole()?sforce.console:!1;c.prototype.id=function(){return this._GUID},c.prototype.registerModel=function(a){var b=this,c=!a.hasChanged;b.models.push(a),a.registerEditor(b),b.options.showSaveCancel&&!b.submitbuttons&&(b.savebutton=l("<div>").addClass("sk-button-save").text(t("save")).skooButton({icon:"sk-icon-save",disabled:c}),b.cancelbutton=l("<div>").addClass("nx-button-secondary sk-button-cancel").text(t("cancel")).skooButton({icon:"sk-icon-cancel",disabled:c}),b.savebutton.on("click.skuid",function(){l(this).removeClass("ui-state-hover"),b.submitbuttons&&b.submitbuttons.filter(".ui-button").button("disable"),b.save()}),b.cancelbutton.on("click.skuid",function(){l(this).removeClass("ui-state-hover"),b.submitbuttons&&b.submitbuttons.filter(".ui-button").button("disable"),b.cancel()}),b.submitbuttons=b.savebutton.add(b.cancelbutton),b.submitwrapper.append(b.savebutton,b.cancelbutton))},c.prototype.registerList=function(a){this.lists.push(a),this.registerModel(a.model)},c.prototype.unregister=function(){var a=this;return a.lists&&a.lists.length&&l.each(a.lists,function(){this.unregister&&this.unregister()}),a.models&&a.models.length&&l.each(a.models,function(){this.unregisterEditor(a)}),a},c.prototype.hasModelWithChanges=function(){var a=this,b=!1;return l.each(a.models,function(){return this.hasChanged?(b=!0,!0):void 0}),b},c.prototype.handleChange=function(){var a=this;a.submitbuttons&&a.submitbuttons.filter(".ui-button").button("enable"),a.lists.length&&l.each(a.lists,function(a,b){b.disableFiltersAndSearch()})},c.prototype.clearMessages=function(){this.messages&&this.messages.empty()},c.prototype.handleMessages=function(a,b){var c=this;return c.messages?b&&b.initiatorId&&c._GUID!==b.initiatorId?!1:void l.each(a,function(a,b){var d="nx-message";"ERROR"===b.severity||"FATAL"===b.severity?d="nx-error":"WARNING"===b.severity&&(d="nx-warning");var e;try{e=c.messages.children("."+d).filter(":contains('"+n.escapeSelector(b.message)+"')")}catch(f){}if(e&&e.length)if(e.data("dupcount")){var g=parseInt(e.data("dupcount"),10)+1;e.children(".nx-dupcounter").text(g),e.data("dupcount",g)}else e.data("dupcount",2),e.prepend('<div class="nx-dupcounter" style="">2</div>');else{var h=l("<div>").addClass(d);h.append("DUPLICATE_VALUE"===b.status?b.message:l("<div>").text(v(b.message))),h.on("click.skuid",function(){l(this).remove()}),c.messages.append(h)}}):!1},c.prototype.handleCancel=function(){var a=this,b=!1,c={};l.each(a.models,function(a,d){d.hasChanged&&(b=!0,c[d.id]=!0)}),b===!1&&(a.clearMessages(),a.submitbuttons&&a.submitbuttons.filter(".ui-button").button("disable")),a.lists.length&&l.each(a.lists,function(a,b){!b.model||b.model.id in c||b.enableFiltersAndSearch()})},c.prototype.handleSave=function(a){var b=!1,c={},d=this;l.each(d.models,function(a,d){d.hasChanged&&(b=!0,c[d.id]=!0)}),a?d.hideStatus(t("saved")):d.hideStatus("",0),d.clearMessages(),a&&!b&&d.submitbuttons&&d.submitbuttons.filter(".ui-button").button("disable"),!a&&b&&d.submitbuttons&&d.submitbuttons.filter(".ui-button").button("enable"),d.lists.length&&l.each(d.lists,function(a,b){!b.model||b.model.id in c||b.enableFiltersAndSearch()})},c.prototype.cancel=function(){a.model.cancel(this.models,{initiatorId:this._GUID})},c.prototype.save=function(b){b=b||{};var c="rollbackOnAnyError";!(c in b)&&c in this.options&&(b[c]=this.options[c]),this.setStatus(t("saving")),b.initiatorId=this._GUID,a.model.save(this.models,b)},c.prototype.setStatus=function(b){a.ui.setStatus(this.status,this.statustext,b)},c.prototype.hideStatus=function(b,c){a.ui.hideStatus(this.status,this.statustext,b,c)},c.prototype._createConditionsFromXml=function(a,b){return b&&a?b.createConditionsFromXml(a):void 0},d.prototype.id=function(){return this._GUID},d.prototype.unregister=function(){var b=this;return b.model&&b.model.unregisterList(b),b.renderedItems&&l.each(b.renderedItems,function(){this.unregister&&this.unregister()}),b.options.responsive&&a.responsive.unregisterGrid(b.id()),b},d.prototype.getSelectedItems=function(){var a=[];return l.each(this.renderedItems,function(b,c){c.selected&&a.push(c)}),a},d.prototype.unSelectAll=function(){l.each(this.renderedItems,function(a,b){b.selected&&(b.selected=!1)})},d.prototype.addSearchField=function(a,b){var c=this;if(a){var d,e=c.model.getField(a.id),f=e.displaytype;f in m.searchableDisplayTypes&&e.filterable&&(e.id in c.searchFieldsMap||(d=l.extend({},e),b&&(d.searchOperator=b),c.searchFields.push(d),c.searchFieldsMap[e.id]=d))}},d.prototype.addSearchSubField=function(a,b){var c=this;if("object"==typeof b&&(b=b.id),a&&b){var d=c.model.getField(b,a),e=d.displaytype;if(e in m.searchableDisplayTypes&&d.filterable){var f=c.searchSubFieldsMap[a],g=c.searchSubFields[a];f||(f=c.searchSubFieldsMap[a]={},g=c.searchSubFields[a]=[]),d.id in f||(f[d.id]=1,g.push(d))}}},d.prototype.addRequiredField=function(a){this.requiredFields[a.id]=a},d.prototype.removeRequiredField=function(a){delete this.requiredFields[a.id]},d.prototype.validateRequiredFields=function(){var a=this,b=[],c=a.model,d=a.requiredFields;return l.each(c.changes,function(e,f){if(!("__deleted"in f)){var g={severity:"ERROR",status:"REQUIRED_FIELD_MISSING",fields:[]},h=c.getRowById(e),i="",j=!1;h&&h.Id in a.renderedItems&&l.each(d,function(a,b){var d=c.getFieldValue(h,a,!0),e=(""===d||null===d)&&"BOOLEAN"!==b.displaytype;e&&(i&&(i+=", "),i+="["+b.label+"]",g.fields.push(b.label),j=!0)}),j&&(g.message=t("required_fields_have_no_value")+" "+i,b.push(g))}}),b},d.prototype.getView=function(a){return a||(a=this.currentView),this.views[a]},d.prototype.setUp=function(a){this.callViewOperation("setUp",a)},d.prototype.beforeRender=function(a){this.callViewOperation("beforeRender",a)},d.prototype.renderComplete=function(a){this.callViewOperation("renderComplete",a)},d.prototype.tearDown=function(a){this.callViewOperation("tearDown",a)},d.prototype.callViewOperation=function(a,b){b||(b=this.getView()),b&&a&&a in b&&b[a](this)},d.prototype.getAllRows=function(){var a,b,c=this;return c.conditions?a=n.filterRowsByConditions(c.model.data,c.conditions):(a=[],c.model.data&&c.model.data.length&&l.each(c.model.data,function(b,c){a.push(c)})),c.customFilter&&c.customFilterValue&&(b=[],l.each(a,function(){c.customFilter(c.customFilterValue,this)&&b.push(this)}),a=b),a},d.prototype.render=function(b){b=b||{};var c,d,e=this,f=e.options,g=[],h=b.previousView||!1,i=h&&h!==e.currentView,j=e.getView(),k=!e.element||b.doNotCache||j.alwaysFullRender,m=b.changedRows;j.alwaysFullRender&&(b.doNotCache=!0),i&&(h=e.getView(h),h&&e.tearDown(h)),b.resetPagination&&(e.currentPage=0),d=e.getAllRows();var n=d.length,o=e.currentPageSize,p=0,q=n;if(e.footer&&(e.footerleft.empty(),e.footercenter.empty(),e.footerright.empty()),(!e.element||i)&&(e.element&&e.element.remove(),e.element=l("<"+(j.nodeType||"div")+">").addClass("nx-list"),c=e.contents=l("<"+(j.contentsNodeType||"div")+">").addClass("nx-list-contents").appendTo(e.element),f.responsive&&a.responsive.registerGrid(e.id(),c.addClass("sm-grid").data({precision:f.gridPrecision||4,minwidth:f.gridMinWidth||300,layoutmode:"rigid"})),e.setUp(j)),o&&"all"!=o&&n>o){e.currentPage<0&&(e.currentPage=0);var r=Math.ceil(n/o);e.currentPage>r-1&&(e.currentPage=r-1),p=o*e.currentPage,q=o*(e.currentPage-0+1),e.currentPage==r-1&&(q=n),d=d.slice(p,q);var s=l("<div>").addClass("nx-buttonset"),u=l("<div>").addClass("first").text(t("first")).button(),v=l("<div>").addClass("prev").text(t("previous")).button(),w=l("<div>").addClass("next").text(t("next")).button(),x=l("<div>").addClass("last").text(t("last")).button(),y=e.currentPage<r-3?e.currentPage-2:r-5,z=e.currentPage>2?e.currentPage+2:4;s.append(u,v);for(var A=y;z>=A;A++)if(A>=0&&r>A){var B=l("<div>").text(A-0+1).attr("data-pn",A).button();A===e.currentPage&&B.addClass("nx-button-selected"),s.append(B)}s.append(w,x).buttonset(),s.children().filter('[data-pn="'+e.currentPage+'"]').button("disable"),0===e.currentPage?(u.button("disable"),v.button("disable")):e.currentPage==r-1&&(x.button("disable"),w.button("disable")),this.footerright.append(s),s.on("click",".ui-button",function(){var a=l(this);a.is(".first")?e.goToPage(0):a.is(".prev")?e.prevPage():a.is(".next")?e.nextPage():e.goToPage(a.is(".last")?r-1:parseInt(a.data("pn"),10))})}if(o&&"all"!=o&&n){var C=[5,10,25,50];-1==C.indexOf(e.options.pageSize)&&C.push(e.options.pageSize),-1==C.indexOf(e.currentPageSize)&&C.push(e.currentPageSize);var D=function(a,b){return a-b};C.sort(D);for(var E=l("<select>"),F=0;F<C.length;F++)E.append('<option value="'+C[F]+'">'+C[F]+"</option>");E.children().filter('[value="'+o+'"]').attr("selected","selected"),E.change(function(){l.cookie("nx-page-"+a.page.id+"-"+e.model.id+"-ps",l(this).val()),e.currentPageSize=parseInt(l(this).val(),10),e.render()});var G=l("<span>");G.append("<span>"+t("show")+" </span>",E,"<span> "+a.label.merge(t("objects_per_page"),e.model.labelPlural)+"</span>"),this.footerleft.append(G)}var H=t("pagination_limit_reached"),I=e.model.debug===H,J=e.model.canRetrieveMoreRows===!0;if(n){var K=n+"";J&&(K+="+"),this.footercenter.append("<span>"+a.label.merge(t("showing_rows"),p+1,q,K)+(I?" ("+H+")":"")+"</span>")}if(J&&!I){var L=l('<div class="nx-list-loadmore">').text(t("load_more"));L.on("click.skuid",function(){e.blockUI({message:t("loading")}),e.model.loadNextOffsetPage(function(){e.unblockUI()})}),this.footerleft.append(L)}n||this.footercenter.append("<span>"+a.label.merge(t("no_objects_to_display"),e.model.labelPlural)+"</span>").css("line-height","25px"),b.doNotCache&&(l.each(e.renderedItems,function(a,b){b&&b.destroy()}),e.renderedItems={},e.makeConditionsBar()),e.beforeRender(j),e.visibleItems=[],b.destroyDeletedRows===!0&&l.each(e.renderedItems,function(a,b){!b||a in e.model.dataMap&&!(b.row&&"__deleted"in b.row)||(b.destroy(),delete e.renderedItems[a])}),l.each(d,function(){var a=this,c=e.renderedItems[a.Id];c&&!b.doNotCache?(b.resetItemModes===!0&&c.resetMode(),b.refreshFields!==!1&&(m&&m[a.Id]?c.refreshFields(m[a.Id]):c.refreshFields())):c=e.newItem(this,b),"__notdeleted"in this&&c.element.removeClass("deleted"),"__deleted"in this?c.element.addClass("deleted"):c.element.removeClass("deleted"),g.push(c.element),e.visibleItems.push(c)}),j.noAutoAppend||(e.contents.children().detach(),e.contents.append(g)),k&&e.attach(),e.renderComplete(j)},d.prototype.showRow=function(a){var b=this,c=!0;return b.conditions&&b.conditions.length&&(c=n.doesRowMeetConditions(a,b.conditions)),c},d.prototype.handleNewRow=function(a,b){var c=this,d={};if(b&&l.extend(d,b),a.Id&&!(a.Id in c.renderedItems)&&c.showRow(a)){var e=c.newItem(a,d);if(c.contents.prepend(e.element),c.render({resetPagination:!0,refreshFields:!1}),e&&"edit"===e.mode){var f=e.element.find(".nx-field > :input:visible:not(.nx-skootable-rowselect):not(.hasDatepicker):not(select)").first();f&&f.focus()}}},d.prototype.handleRowDeletion=function(a){a&&a in this.renderedItems&&this.renderedItems[a].destroy()},d.prototype.newItem=function(a,b){if(a.Id){var c=new e(this,a,{mode:b&&b.editModeForNewItems?"edit":this.mode,selected:b&&b.selected});return c.render(),this.renderedItems[a.Id]=c,c}},d.prototype.attach=function(){this.editor.contents.append(this.element,this.footer)},d.prototype.makeViewSwitcher=function(){var b=this,c=[];l.each(b.views,function(a,d){c.push({value:a,label:d.label||a,icon:d.icon,isSelected:b.currentView===a})});var d=l("<div>").actionSelect({items:c,onItemSelect:function(c){var d=b.currentView;b.currentView=c.value,b.render({doNotCache:!0,previousView:d}),l.cookie("nx-list-view-"+a.page.name+"-"+b.model.id,c.value)}});return d.addClass("nx-viewswitcher")},d.prototype.makeSearchBox=function(){var a=this;if("client"===a.searchMethod&&(a.customFilter=function(b,c){var d=!1;return l.each(a.searchFields,function(e,f){var g=a.model.getFieldValue(c,f.id,!0);return null!==g&&(d=-1!=g.toLowerCase().indexOf(b.toLowerCase())),!d}),!d&&a.searchSubFields&&l.each(a.searchSubFields,function(e,f){var g=c[e];g&&g.totalSize&&f.length&&l.each(g.records,function(c,e){return l.each(f,function(c,f){var g=a.model.getFieldValue(e,f.id,!0);return null!==g&&(d=-1!==g.toLowerCase().indexOf(b.toLowerCase())),!d}),!d})}),d}),a.searchFields||"custom"===a.searchMethod){var b="placeholder"in document.createElement("input"),c=l('<input type="text" class="searchbox" />'),d=a.searchPlaceholderText?n.mergeAsText("model",a.searchPlaceholderText,{createFields:!0,registerFields:!1},a.model):t("search")+" "+a.model.labelPlural;a.customFilterValue&&c.val(a.customFilterValue),b?c.attr("placeholder",d):(c.addClass("unchanged").val(d),c.focus(function(){c.hasClass("unchanged")&&c.val("").removeClass("unchanged")}).blur(function(){""===c.val()&&c.val(d).addClass("unchanged")}));var e=a.model.getConditionByName(a.searchConditionName);return e&&"group"===e.type&&!e.inactive&&e.value&&c.val(e.value),a.options.delayFilterExecution&&c.on("keyup",function(b){13===b.which&&a.applyFiltersAndSearch()}),n.delayInputCallback(c,function(b,d){a.options.delayFilterExecution&&"undefined"==typeof c.data("originalValue")&&c.data("originalValue",d),"client"===a.searchMethod||"custom"===a.searchMethod?(a.customFilterValue=b,a.render()):a.options.delayFilterExecution?a.showFilterActions():(a.setSearchCondition(b),"remove"!==a.options.emptySearchBehavior||b?a.updateData({message:t("searching"),failmessage:t("error_performing_requested_search"),showerror:!0}):a.model.abandonAllRows())}),c}return!1},d.prototype.setSearchCondition=function(a){var b=this;b.model.buildSearchCondition(b.searchConditionName,a,b.searchFields,{tokenize:b.options.tokenizeSearch,useSOSLSearch:b.options.useSOSLSearch,SOSLFields:b.options.SOSLFields})},d.prototype.showFilterActions=function(){this.applyFiltersBtn.show("fast"),this.cancelFiltersBtn.show("fast"),this.editor.options.showSaveCancel&&this.editor.submitbuttons.hide("fast")},d.prototype.hideFilterActions=function(){this.applyFiltersBtn.hide("fast"),this.cancelFiltersBtn.hide("fast"),this.editor.options.showSaveCancel&&this.editor.submitbuttons.show("fast")},d.prototype.applyFiltersAndSearch=function(){var a,b=this,c=b.searchBox;c&&(a=c.is(".unchanged")?"":c.val(),c.data("originalValue",a),b.setSearchCondition(a)),b.filters&&l.each(b.filters,function(){var a=this.activateFilter;a&&a()}),"remove"!==b.options.emptySearchBehavior||a?b.updateData({message:t("searching"),failmessage:t("error_performing_requested_search"),showerror:!0,successcallback:function(){b.hideFilterActions()}}):(b.model.abandonAllRows(),b.hideFilterActions())},d.prototype.cancelFiltersAndSearch=function(){var a=this,b=a.searchBox;b&&b.val(b.data("originalValue")),a.filters&&l.each(a.filters,function(){this.restoreOriginalValue()}),a.hideFilterActions()},d.prototype.updateData=function(a){var b=this;b.blockUI({message:a.message});var c=b.model.updateData();l.when(c).then(function(){b.unblockUI(),a.successcallback&&a.successcallback()},function(c){b.unblockUI({failmessage:a.failmessage+(a.showerror&&c?" \n\n"+t("error")+": "+c:"")})})},d.prototype.makeConditionsBar=function(){this.makeFiltersBar()},d.prototype.enableFiltersAndSearch=function(){var a,b=this;b.conditionsBar&&(a=b.conditionsBar.find(".nx-conditiontoken"),a.removeClass("unavailable"),a.children("select").multiselect("enable")),"server"===b.searchMethod&&b.searchBox&&b.searchBox.prop("disabled",!1)},d.prototype.disableFiltersAndSearch=function(){var a,b=this;b.conditionsBar&&(a=b.conditionsBar.find(".nx-conditiontoken"),a.addClass("unavailable"),a.children("select").multiselect("disable")),"server"===b.searchMethod&&b.searchBox&&b.searchBox.prop("disabled",!0)},d.prototype.blockUI=function(a){var b=this;a=a||{};var c={message:a.message};b.options.blockUICSS&&(c.css=b.options.blockUICSS),b.options.blockOverlayCSS&&(c.overlayCSS=b.options.blockOverlayCSS),b.editor.element.block(c)},d.prototype.unblockUI=function(a){var b=this;a=a||{};var c={};a.failmessage?(b.options.blockUICSS&&(c.css=b.options.blockUICSS),b.options.blockOverlayCSS&&(c.overlayCSS=b.options.blockOverlayCSS),c.timeout=a.timeout||4e3,c.message=a.failmessage,b.editor.element.block(c)):b.editor.element.unblock()},d.prototype.makeFiltersBar=function(){var a=this,b=a.options.listFilters;if(a.filters=[],!b)return!1;var c=a.conditionsBar;return c.empty(),l.each(b.children(),function(){var b=new g({xml:l(this),list:a});a.filters.push(b),b&&b.element&&c.append(b.element)}),c},d.prototype.nextPage=function(){this.currentPage++,this.render({refreshFields:!1})},d.prototype.prevPage=function(){this.currentPage--,this.render({refreshFields:!1})},d.prototype.goToPage=function(a){this.currentPage=a,this.render({refreshFields:!1})},e.prototype.id=function(){return this._GUID},e.prototype.render=function(){if(this.list&&this.list.views&&this.list.currentView){var a=this.list.views[this.list.currentView];this.element&&this.element.remove(),this.element=l("<"+(a.itemNodeType||"div")+">").addClass("nx-item"),this.element.data("object",this),a.render(this)}return this},e.prototype.refreshFields=function(a){var b=this;return l.each(b.fields,function(){(b.mode!==this.mode||!a||this.id in a)&&(this.mode=b.mode,this.render())}),b},e.prototype.resetMode=function(){return this.mode!==this.defaultMode&&(this.mode=this.defaultMode),this},e.prototype.toggleEdit=function(){return"readonly"!==this.mode&&(this.mode="read"==this.mode?"edit":"read",this.refreshFields()),this},e.prototype.toggleDelete=function(a){var b=this;return b.deleted?b.unMarkForDelete(a):b.markForDelete(a),b},e.prototype.handleUnmarkRowForDeletion=function(a){return!this.row||this.row!==a&&this.row.Id!=a.Id||this.unMarkForDelete(!1),this},e.prototype.handleMarkRowForDeletion=function(a){return!this.row||this.row!==a&&this.row.Id!=a.Id||this.markForDelete(!1),this},e.prototype.unMarkForDelete=function(a){return this.element.removeClass("deleted"),this.deleted=!1,a&&this.list.model.undeleteRow(this.row),this},e.prototype.markForDelete=function(a){return this.element.addClass("deleted"),this.deleted=!0,a&&this.list.model.deleteRow(this.row),this},e.prototype.registerField=function(a){this.fields.push(a)},e.prototype.unregister=function(){var a=this;return a.list&&a.list.model&&a.list.model.unregisterItem(this),a.fields&&a.fields.length&&l.each(a.fields,function(){this.destroy()}),a},e.prototype.destroy=function(){this.element&&this.element.remove(),this.unregister()},f.prototype.uid=function(){return this._GUID},f.prototype.register=function(a){return this.model&&this.model.registerField(this,a),this},f.prototype.unregister=function(){var a=this,b=a.options;a.model&&a.model.unregisterField(a,b?b.controllingFields:!1)},f.prototype.calculateReferenceText=function(){return n.calculateReferenceText({model:this.model,row:this.row,template:this.options.template,fieldMetadata:this.metadata})},f.prototype.calculateReferenceMerges=function(a){return a||(a={}),n.calculateReferenceMerges(l.extend(a,{model:this.model,row:this.row,template:this.options.template,fieldMetadata:this.metadata}))},f.prototype.getValidPicklistEntries=function(){var a,b,c=n.toArray,d=this,e=d.item,f=this.metadata.controllingField,g=function(a,b){var c=new sforce.Base64Binary(""),d=c.decode(b),e=d.charCodeAt(a>>3);return 0!==(e&128>>a%8)},h=e&&e.ValidRecordTypeIds?e.ValidRecordTypeIds:[],i=d.model.getFieldValue(d.row,"RecordTypeId",!0);if(i&&-1===l.inArray(i,h)&&h.push(i),h.length&&(a=n.getPicklistEntriesValidForRecordTypes(this.model.objectName,d.id,h)),f){var j,k,m=n.getAPIDescribeSObject(this.model.objectName);if(m&&(l.each(c(m.fields),function(){return d.id===this.name?j=this:d.metadata.controllingField===this.name&&(k=this),j&&k?!1:void 0}),j&&k)){var o,p=d.model.getFieldValue(d.row,f,!0);a&&a.length?(b={},l.each(a,function(){b[this.value]=1}),a.length=0):a=[],"boolean"===k.type?o=p?1:0:l.each(c(k.picklistValues),function(a){this.value===p&&(o=a)}),(o||0===o)&&l.each(c(j.picklistValues),function(){g(o,this.validFor)&&(!b||this.value in b)&&a.push(this)})}}return a?a:this.metadata.picklistEntries},f.prototype.addOrReplaceConditionsForLookupFiltersToModel=function(b){var c=this,d=[],e=c.options&&c.options.filters?c.options.filters:!1;return b||(b=c.model),e&&e.length&&l.each(e,function(e,f){var g,h,i=c.id+"_"+f.field+"_"+e,j=b.getConditionByName(i);if(j||(j=new a.model.Condition,j.name=i,b.addCondition(j)),j.field=f.field,j.operator=f.operator||"=",j.encloseValueInQuotes=f.encloseValueInQuotes,g=n.isMultiValueOperator(j.operator),"dependent"===f.type)h=c.model.getFieldValue(c.row,f.depfield,!0),"undefined"!=typeof h&&(g?j.values=h&&-1!=h.indexOf(";")?h.split(";"):[h]:j.value=h),j.type="fieldvalue";else if("param"===f.type)h=a.page.params[f.mergeField],"undefined"!=typeof h&&(g?j.values=h&&-1!=h.indexOf(";")?h.split(";"):[h]:j.value=h),j.type="fieldvalue";else if("modelmerge"===f.type){var k=a.model.getModel(f.mergeModel);k&&(g?(j.values=[],l.each(k.data,function(){j.values.push(k.getFieldValue(this,f.mergeField,!0))})):j.value=k.getFieldValue(k.getFirstRow(),f.mergeField,!0),j.type="fieldvalue")}else j.type=f.type,f.values?j.values=f.values:j.value=f.value,f.mergeField&&(j.mergeField=f.mergeField,j.originalValue=null);d.push(j)}),d};var y=function(a){if(a&&a.length){var b=[];return a.children().each(function(){var a=l(this),c="false"!==a.attr("enclosevalueinquotes"),d={field:a.attr("field"),type:a.attr("type"),operator:a.attr("operator"),value:a.attr("value"),depfield:a.attr("depfield"),encloseValueInQuotes:c};if("multiple"==d.type){d.values=[];var e=a.children("values");e.length&&e.first().children("value").each(function(){var a=n.getXML(this);a.length>8?(a=n.decodeXML(a.substring(7,a.length-8)),d.values.push(n.adjustValueBasedOnQuotedness(a,c))):d.values.push("")})}else"userinfo"==d.type?d.mergeField=a.attr("userinfotype"):"param"===d.type?d.mergeField=a.attr("value"):"modelmerge"===d.type&&(d.mergeField=a.attr("mergefield"),d.mergeModel=a.attr("model"));b.push(d)}),b}};g.prototype.setOriginalValue=function(a){"undefined"==typeof this.element.data("originalValue")&&this.element.data("originalValue",a)},g.prototype.restoreOriginalValue=function(){var a=this,b=a.element,c=b.data("originalValue");if(a.isMultiselect&&!a.isReferenceFilter){if(b=b.find("select"),"__reset"===c)b.val("");else if(c){var d=c.split(";");l.each(b.children("option"),function(a,b){l(b).prop("selected",l.inArray(b.value,d)>-1)})}b.data("echMultiselect")&&b.multiselect("refresh")}else"undefined"!=typeof c&&("toggle"===a.type?b.toggleClass("disabled",c):"daterange"===a.type?a.updateDisplayValue(c.start,c.end):a.isReferenceFilter?b.actionAutocomplete("resetItem",c):c&&"undefined"!=typeof c.value&&(a.element.is(".nx-actionautocomplete")?b.actionAutocomplete("resetItem",c.value):b.actionSelect("selectItem",c,{triggerHandlers:!1})))},g.prototype.isSelectedFromEffects=function(b){var c=this,d=!1;return b.each(function(){var b=l(this),e=c.affectedConditions[b.attr("condition")];if(e)if("deactivate"===b.attr("action")){if(!e.inactive)return d=!1,!1}else if("set"===b.attr("action")){var f=a.utils.mergeAsText("global",b.attr("value")||"",{createFields:!0,registerFields:!1});if(f!==e.value||e.inactive)return d=!1,!1}else if("activate"===b.attr("action")&&e.inactive)return d=!1,!1;d=!0}),d},g.prototype.resetAffectedConditions=function(){var a=this;l.each(a.affectedConditions,function(){a.model.resetCondition(this,a.affectCookies)})},g.prototype.applyFilterForItem=function(b){var c,d=this,e=[],f=b.effects,g=b.source,h=g&&g.effects,i=b.affectDefaultCondition;if(f&&f.length&&l.each(f,function(){e.push(this)}),h&&h.length&&l.each(h,function(){e.push(this)}),c=e&&e.length,c&&l.each(e,function(){var c=l(this),e=d.affectedConditions[c.attr("condition")];if(e)if("deactivate"===c.attr("action"))d.model.deactivateCondition(e,d.affectCookies);else if("set"===c.attr("action")){var f,h={};b.row&&(h.row=b.row),g&&g.model&&(h.model=g.model),c.attr("value")?f=c.attr("value"):b.value&&(f=b.value),f=a.utils.mergeAsTextInContext(f,h,{createFields:!1,registerFields:!1}),d.model.setCondition(e,f,d.affectCookies)}else"activate"===c.attr("action")&&d.model.activateCondition(e,d.affectCookies)}),i&&"undefined"!=typeof b.value&&d.filterCondition)if("__reset"===b.value)d.model.resetCondition(d.filterCondition,d.affectCookies);else{var j,k=a.utils.mergeAsText("global",b.value||"",{createFields:!1,registerFields:!1}),m=d.filterCondition.operator;d.isMultiselect?(j=d.filterCondition.values,j?(a.utils.isString(j)&&(j=j.split(";")),-1===l.inArray(k,j)&&j.push(k)):j||(j=[k]),a.utils.isMultiValueOperator(m)||("="===m?m="in":"!="===m&&(m="not in"),d.filterCondition.operator=m)):j=k,d.model.setCondition(d.filterCondition,j,d.affectCookies)}},g.prototype.unApplyFilterForItem=function(b){var c,d=this,e=[],f=b.effects,g=b.source,h=g&&g.effects,i=b.affectDefaultCondition;if(f&&f.length&&l.each(f,function(){e.push(this)}),h&&h.length&&l.each(h,function(){e.push(this)}),c=e&&e.length,c&&l.each(e,function(){var a=l(this),b=d.affectedConditions[a.attr("condition")];b&&("deactivate"===a.attr("action")?d.model.activateCondition(b,d.affectCookies):d.model.deactivateCondition(b,d.affectCookies))}),i&&"undefined"!=typeof b.value&&d.filterCondition)if("__reset"===b.value){var j=a.utils.mergeAsText("global",b.value||"",{createFields:!1,registerFields:!1});d.model.setCondition(d.filterCondition,j,d.affectCookies)}else if(d.isMultiselect){var k=d.filterCondition.values,m=l.inArray(b.value,k);m>-1&&k.splice(m,1)}else d.model.resetCondition(d.filterCondition,d.affectCookies)},g.prototype.executeFilter=function(){var a,b=this,c=b.list.searchBox;c&&(a=c.val()),"remove"!==this.list.options.emptySearchBehavior||a?this.list.updateData({message:t("applying_filter"),failmessage:t("filter_could_not_be_applied"),showerror:!0}):this.list.model.abandonAllRows()
(Edited)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
EDIT: I bolded the 4 occurances of hasChanged in the above. Perhaps that actually useful to someone?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
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.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
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. 
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
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.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
What's the last change you made? Assuming this worked before that.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
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.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
I'd make a clone and start to remove one model at a time to see when the page starts to work again.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
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. :)
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
How many lines of xml is the page?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
1592
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Yup. I have no idea.
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,490 Points 10k badge 2x thumb
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.
Photo of Ryan Denis

Ryan Denis

  • 478 Points 250 badge 2x thumb
I'm having a very similar problem now. Except it only seems to be a blank page for non admin users. I have updated to the latest patch, and it seems like 1. Every model has an object and 2. there are no additional models in a page title save/cancel button. This happened to me once before and I just started the page over. However, I've put a lot of time in to this page this time. 
Photo of Ryan Denis

Ryan Denis

  • 478 Points 250 badge 2x thumb
I'm having a very similar problem now. Except it only seems to be a blank page for non admin users. I have updated to the latest patch, and it seems like 1. Every model has an object and 2. there are no additional models in a page title save/cancel button. This happened to me once before and I just started the page over. However, I've put a lot of time in to this page this time. 
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
I don't think its the same problem.  If it were - even Admin users would get a blank page.   Are the errors in the browser console the same as Matt's above?

This sounds to me like a object level security issue. If the users can't see an object,  skuid will not show it to them (and the page might look blank) 
Photo of Ryan Denis

Ryan Denis

  • 478 Points 250 badge 2x thumb
You're right. It was an object that was used as a table filter. Giving them view access to that object fixed the issue. Or, removing the filter. 
Photo of Anthony Lee

Anthony Lee

  • 60 Points
Ben,

Just some information on a similar javascript error and the situation I had to create it.

I just had a similar issue when moving page between environments. The error I was receiving was as follows:
Uncaught TypeError: Cannot read property 'createable' of undefined

The page I was using this on had a calendar component using a REST data source. In my situation the person who had done the configuration didn't mention a data source was used and this was not transferred to the production environment.

Skuid only provided a relevant error message once the calendar component was removed and the page was refreshed, at which point it stated the environment was missing a data source.

Hope that helps.
(Edited)