Unsaved changes notification but I didn't change anything

  • 1
  • Problem
  • Updated 3 years ago
  • Solved
I am getting the error for unsaved changes but I haven't made any changes yet.  Any ideas?


Parent XML:
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="false" showheader="false" theme="Lightning Design" cachepage="false">
   <models>
      <model id="CurrentUser" limit="1" query="true" createrowifnonefound="false" adapter="" type="" sobject="User" processonclient="true" doclone="">
         <fields>
            <field id="Name"/>
            <field id="SmallPhotoUrl"/>
         </fields>
         <conditions>
            <condition type="userinfo" value="" field="Id" operator="=" enclosevalueinquotes="true" userinfotype="userid"/>
         </conditions>
         <actions/>
      </model>
   </models>
   <components>
      <grid uniqueid="sk-2ueomI-342">
         <divisions>
            <division behavior="flex" minwidth="100px" ratio="1" verticalalign="top">
               <components>
                  <pageregion uniqueid="sk-2uempF-338">
                     <styles>
                        <styleitem type="background" bgtype="none"/>
                     </styles>
                  </pageregion>
               </components>
            </division>
         </divisions>
         <styles>
            <styleitem type="background" bgtype="none"/>
         </styles>
      </grid>
      
   </components>
   <resources>
      <labels/>
      <javascript/>
      <css>
         <cssitem location="inline" name="hidetablefooter" cachelocation="false">.hidetablefooter .nx-list-footer {
    display:none;
}</cssitem>
      </css>
   </resources>
   <styles>
      <styleitem type="background" bgtype="none"/>
   </styles>
   <pageregioncontents>
      <pageregioncontent uniqueid="__header">
         <components>
            <skuidheader sticky="true">
               <components>
                  <grid uniqueid="sk-2uXr6L-48">
                     <divisions>
                        <division behavior="fit" verticalalign="top">
                           <components/>
                        </division>
                        <division behavior="flex" verticalalign="center" ratio="1" minwidth="100px">
                           <components>
                              <navigation uniqueid="sk-2ule3F-82">
                                 <navigationitems>
                                    <navigationitem label="Home">
                                       <actions>
                                          <action type="redirect" window="self" url="/home/home.jsp"/>
                                       </actions>
                                    </navigationitem>
                                    <navigationitem label="People">
                                       <actions>
                                          <action type="redirect" window="self"/>
                                       </actions>
                                       <navigationitems>
                                          <navigationitem label="Accounts">
                                             <actions>
                                                <action type="redirect" window="self" url="/001/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Contacts">
                                             <actions>
                                                <action type="redirect" window="self" url="/003/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Leads">
                                             <actions>
                                                <action type="redirect" window="self" url="/00Q/o"/>
                                             </actions>
                                          </navigationitem>
                                       </navigationitems>
                                    </navigationitem>
                                    <navigationitem label="For Clients">
                                       <actions>
                                          <action type="redirect" window="self"/>
                                       </actions>
                                       <navigationitems>
                                          <navigationitem label="Cases">
                                             <actions>
                                                <action type="redirect" window="self" url="/500/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Engagement Plan Summaries">
                                             <actions>
                                                <action type="redirect" window="self" url="/a29/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Engagement Plans">
                                             <actions>
                                                <action type="redirect" window="self" url="/a2A/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Contract Change Requests">
                                             <actions>
                                                <action type="redirect" window="self" url="/a0j/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Client Fact Sheet">
                                             <actions>
                                                <action type="redirect" window="self" url="/a0i/o"/>
                                             </actions>
                                          </navigationitem>
                                       </navigationitems>
                                    </navigationitem>
                                    <navigationitem label="Sales">
                                       <actions>
                                          <action type="redirect" window="self"/>
                                       </actions>
                                       <navigationitems>
                                          <navigationitem label="Opportunities">
                                             <actions>
                                                <action type="redirect" window="self" url="/006/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Dashboards">
                                             <actions>
                                                <action type="redirect" window="self" url="/01Z/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Reports">
                                             <actions>
                                                <action type="redirect" window="self" url="/00O/o"/>
                                             </actions>
                                          </navigationitem>
                                       </navigationitems>
                                    </navigationitem>
                                    <navigationitem label="Marketing">
                                       <actions>
                                          <action type="redirect" window="self"/>
                                       </actions>
                                       <navigationitems>
                                          <navigationitem label="Campaigns">
                                             <actions>
                                                <action type="redirect" window="self" url="/701/o"/>
                                             </actions>
                                          </navigationitem>
                                       </navigationitems>
                                    </navigationitem>
                                    <navigationitem label="Admin">
                                       <actions>
                                          <action type="redirect" window="self"/>
                                       </actions>
                                       <navigationitems>
                                          <navigationitem label="Contract History">
                                             <actions>
                                                <action type="redirect" window="self" url="/a2b/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Pages">
                                             <actions>
                                                <action type="redirect" window="self" url="/a1A/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Page Assignments">
                                             <actions>
                                                <action type="redirect" window="self" url="/a18/o"/>
                                             </actions>
                                          </navigationitem>
                                          <navigationitem label="Products">
                                             <actions>
                                                <action type="redirect" window="self" url="/01t/o"/>
                                             </actions>
                                          </navigationitem>
                                          
                                          <navigationitem label="Welcome Letters">
                                             <actions/>
                                             <navigationitems>
                                                <navigationitem label="Content">
                                                   <actions>
                                                      <action type="redirect" window="self" url="/a2d/o"/>
                                                   </actions>
                                                </navigationitem>
                                                <navigationitem label="Queue">
                                                   <actions>
                                                      <action type="redirect" window="self" url="/a2c/o"/>
                                                   </actions>
                                                </navigationitem>
                                             </navigationitems>
                                          </navigationitem>
                                          <navigationitem label="Help &amp; Training">
                                             <actions>
                                                <action type="redirect" window="self" url="https://help.salesforce.com/hthome?siteLang=en_US"/>
                                             </actions>
                                          </navigationitem>
                                       </navigationitems>
                                    </navigationitem>
                                    <navigationitem label="Certification">
                                       <actions>
                                          <action type="redirect" window="self" url="https://cs12.salesforce.com/servlet/servlet.Integration?lid=01r30000001HFjX&amp;ic=1"/>
                                       </actions>
                                       <navigationitems>
                                          <navigationitem label="Brainshark Learning">
                                             <actions>
                                                <action type="redirect" window="self" url="https://na1.salesforce.com/servlet/servlet.Integration?lid=01r30000001HFjX&amp;ic=1"/>
                                             </actions>
                                          </navigationitem>
                                       </navigationitems>
                                    </navigationitem>
                                    <navigationitem label="Show All Tabs">
                                       <actions>
                                          <action type="redirect" window="self" url="/home/showAllTabs.jsp"/>
                                       </actions>
                                    </navigationitem>
                                 </navigationitems>
                                 <styles>
                                    <styleitem property="padding" value="0"/>
                                 </styles>
                              </navigation>
                           </components>
                        </division>
                     </divisions>
                     <styles>
                        <styleitem type="background" bgtype="color">
                           <styles>
                              <styleitem property="background-color" value="white"/>
                           </styles>
                        </styleitem>
                     </styles>
                  </grid>
                  <grid uniqueid="sk-2uYIRV-65">
                     <divisions>
                        <division behavior="fit" verticalalign="center">
                           <components>
                              <image source="staticresource" uniqueid="sk-2uZA6u-102" resource="SDLogo">
                                 <styles>
                                    <styleitem type="itemsize"/>
                                    <styleitem type="border"/>
                                 </styles>
                              </image>
                           </components>
                        </division>
                        <division behavior="flex" verticalalign="center" ratio="1" minwidth="100px">
                           <components>
                              <search uniqueid="sk-2ua3RC-127" soslfields="All Fields">
                                 <objects>
                                    <object id="Account" icon="sk-icon-account-profile" displaytemplate="{{Name}}">
                                       <fields>
                                          <field id="Name"/>
                                       </fields>
                                       <resultactions/>
                                    </object>
                                    <object id="Contact" icon="sk-icon-contact" displaytemplate="{{Name}}: {{Title}} at {{Account.Name}}">
                                       <fields>
                                          <field id="Name"/>
                                          <field id="X3x3_Research_1x1__c"/>
                                          <field id="Account.Name"/>
                                          <field id="Title"/>
                                       </fields>
                                    </object>
                                    <object id="Opportunity" displaytemplate="{{Name}}">
                                       <fields>
                                          <field id="Name"/>
                                          <field id="Account.Name"/>
                                       </fields>
                                    </object>
                                    <object id="Lead" displaytemplate="{{Name}}"/>
                                    <object id="Contract" displaytemplate="{{ContractNumber}}">
                                       <fields>
                                          <field id="ContractNumber"/>
                                       </fields>
                                    </object>
                                    <object id="EngagementPlan__c" displaytemplate="{{Name}}">
                                       <fields>
                                          <field id="Name"/>
                                       </fields>
                                    </object>
                                    <object id="Report" displaytemplate="{{Name}}">
                                       <fields>
                                          <field id="Name"/>
                                       </fields>
                                    </object>
                                    <object id="Dashboard" displaytemplate="{{DeveloperName}}">
                                       <fields>
                                          <field id="Title"/>
                                          <field id="DeveloperName"/>
                                       </fields>
                                    </object>
                                 </objects>
                                 <selectactions>
                                    <action type="redirect" window="self" url="/{{Id}}"/>
                                 </selectactions>
                                 <resultactions/>
                              </search>
                           </components>
                        </division>
                        <division behavior="fit" verticalalign="center">
                           <components>
                              <navigation uniqueid="sk-2ubdeE-209" source="sfapps" type="dropdown">
                                 <navigationitems/>
                              </navigation>
                           </components>
                        </division>
                        <division behavior="fit" verticalalign="center">
                           <components>
                              <navigation uniqueid="sk-2ucU7o-234" source="sfusermenu" type="dropdown" label="{{$User.name}}">
                                 <navigationitems/>
                              </navigation>
                           </components>
                        </division>
                        <division behavior="fit" verticalalign="center">
                           <components>
                              <image source="url" uniqueid="sk-2ud2Ad-278" url="{{$Model.CurrentUser.data.0.SmallPhotoUrl}}">
                                 <styles>
                                    <styleitem type="itemsize" width="custom" height="custom">
                                       <styles>
                                          <styleitem property="width" value="30px"/>
                                          <styleitem property="height" value="30px"/>
                                       </styles>
                                    </styleitem>
                                    <styleitem type="border"/>
                                    <styleitem property="overflow" value="hidden"/>
                                    <styleitem property="border-radius" value="40px"/>
                                    <styleitem property="border" value="1px solid rgba(255,255,255,0.4)"/>
                                 </styles>
                                 <renderconditions logictype="and"/>
                              </image>
                           </components>
                        </division>
                     </divisions>
                     <styles>
                        <styleitem type="background" bgtype="color">
                           <styles>
                              <styleitem property="background-color" value="white"/>
                           </styles>
                        </styleitem>
                     </styles>
                  </grid>
               </components>
               <styles>
                  <styleitem type="background" bgtype="color">
                     <styles>
                        <styleitem property="background-color" value="white"/>
                     </styles>
                  </styleitem>
                  <styleitem type="border"/>
               </styles>
            </skuidheader>
         </components>
      </pageregioncontent>
   </pageregioncontents>
</skuidpage>




Child XML

<skuidpage unsavedchangeswarning="yes">
<models> <model id="Opportunity" limit="1" query="true" createrowifnonefound="false" sobject="Opportunity" doclone="" type=""> <fields> <field id="AccountId"/> <field id="Amount"/> <field id="CloseDate"/> <field id="IsClosed"/> <field id="Account.Name"/> <field id="NextStep"/> <field id="Name"/> <field id="StageName"/> <field id="OwnerId"/> <field id="Owner.Name"/> <field id="CreatedDate"/> <field id="CreatedById"/> <field id="CreatedBy.Name"/> <field id="Type"/> <field id="Description"/> <field id="Pricebook2Id"/> <field id="Pricebook2.Name"/> <field id="CV_to_be_Renewed__c"/> <field id="CV_Retained__c"/> <field id="Contact_Type__c"/> <field id="Contract_End_Date__c"/> <field id="Deal_Pressure_Status__c"/> <field id="Deal_Stall_Status__c"/> <field id="Engagement_Plan_Accepted__c"/> <field id="LastActivityDate"/> <field id="MCA_Received__c"/> <field id="MCA_Signed__c"/> <field id="NCVI__c"/> <field id="Needs_Confirmed__c"/> <field id="New_Logo__c"/> <field id="New_Renew__c"/> <field id="Id"/> <field id="PO_Received__c"/> <field id="PO_Required__c"/> <field id="Paperwork_Submitted__c"/> <field id="Power_Identified__c"/> <field id="Procurement_Process_Known__c"/> <field id="Proposal_Received__c"/> <field id="Proposal_Sent__c"/> <field id="Reason__c"/> <field id="Renewal_Discussion__c"/> <field id="Service_Term__c"/> <field id="Solution_Confirmed__c"/> <field id="Times_Pushed__c"/> <field id="Total_Consulting_Tgr__c"/> <field id="Total_Learning__c"/> <field id="Total_Advisory_Bookings__c"/> <field id="Value_Confirmation_Complete__c"/> <field id="Power_Conf__c"/> <field id="Vendor_Forms_Complete__c"/> <field id="Vendor_Forms_Rec_d__c"/> <field id="Verbal_Commitment__c"/> <field id="All_Players_ID_d__c"/> <field id="Aligned_to_Power__c"/> <field id="Plan_timing_Confirmed__c"/> <field id="NA__c"/> <field id="NA_Date__c"/> <field id="SA__c"/> <field id="SA_Date__c"/> <field id="VC__c"/> <field id="VC_Date__c"/> <field id="P__c"/> <field id="P_Date__c"/> <field id="C__c"/> <field id="C_Date__c"/> <field id="W__c"/> <field id="W_Date__c"/> <field id="L__c"/> <field id="L_Date__c"/> <field id="X2_Year_Deals_Test__c"/> <field id="New_Logo2__c"/> <field id="Exclude_from_Analysis__c"/> <field id="LastModifiedById"/> <field id="LastModifiedBy.Name"/> <field id="LastModifiedDate"/> <field id="ADV_Commission_Credit__c"/> <field id="Comp_Summit_Tickets__c"/> <field id="Paid_Summit_Tickets__c"/> <field id="Accounts_Payable_Contact__c"/> <field id="Accounts_Payable_Email__c"/> <field id="Accounts_Payable_Phone__c"/> <field id="Bill_To_Account__c"/> <field id="Bill_To_Account__r.Name"/> <field id="Billing_Terms__c"/> <field id="Contract__c"/> <field id="Contract__r.Name"/> <field id="Contract_Amount__c"/> <field id="Contract_Expiry_Date__c"/> <field id="ContractId"/> <field id="Contract.Name"/> <field id="Contract_Start_Date__c"/> <field id="Event_Region__c"/> <field id="Finance_Review__c"/> <field id="Finance_Review_Complete_Date__c"/> <field id="Intacct_Contract_Number__c"/> <field id="PO__c"/> <field id="PO_Needed__c"/> <field id="Service_Length__c"/> <field id="Special_Instructions__c"/> <field id="Split_with_Rep__c"/> <field id="Split_with_Rep__r.Name"/> <field id="Total_Advisory_Seats__c"/> <field id="Total_Learning_Seats__c"/> <field id="Total_Member_Seats__c"/> <field id="Year_of_Event__c"/> <field id="Sponsorship_Level__c"/> <field id="Type_of_Deal__c"/> <field id="Logistics_Contact__c"/> <field id="Logistics_Contact__r.Name"/> <field id="Timestamp__c"/> <field id="Absolute_Retention_Amount__c"/> <field id="Best_Case_Retention_Amount__c"/> <field id="Regional_Director__c"/> <field id="Regional_Director__r.Name"/> <field id="District_Manager__c"/> <field id="District_Manager__r.Name"/> <field id="New_AM__c"/> <field id="New_AM__r.Name"/> <field id="New_CSM__c"/> <field id="New_CSM__r.Name"/> <field id="RecordTypeId"/> <field id="RecordType.Name"/> <field id="Total_CV_Renewing__c"/> <field id="Secondary_Cancel_REason__c"/> <field id="Tertiary_Cancel_Reason__c"/> <field id="Hindsight__c"/> <field id="Total_Summit__c"/> <field id="Primary_Agency__c"/> <field id="Primary_Competition__c"/> <field id="Team_Leader__c"/> <field id="Team_Leader__r.Name"/> <field id="Learning_Admin__c"/> <field id="Learning_Admin__r.Name"/> <field id="Finance_Notes__c"/> <field id="Products_on_Opp__c"/> <field id="Contract__r.ContractNumber"/> <field id="TA_Migration_Transaction__c"/> <field id="Team_Access_Transaction__c"/> <field id="Team_Access_Product_Count__c"/> <field id="Opportunity_ID_18__c"/> <field id="Total_Consulting__c"/> <field id="Invoice_Status__c"/> <field id="Invoice_Date__c"/> </fields> <conditions> <condition type="param" operator="=" value="id" field="Id" novaluebehavior="" enclosevalueinquotes="true"/> </conditions> <actions/> </model> <model id="Account" limit="1" query="true" createrowifnonefound="false" sobject="Account"> <fields> <field id="Name"/> </fields> <conditions> <condition type="modelmerge" value="" field="Id" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="AccountId" novaluebehavior="noquery"/> </conditions> <actions/> </model> <model id="Pricebooks" limit="50" query="true" createrowifnonefound="false" sobject="Pricebook2" orderby="Name"> <fields> <field id="IsStandard"/> <field id="Name"/> </fields> <conditions> <condition type="fieldvalue" value="true" enclosevalueinquotes="false" field="IsActive"/> </conditions> <actions/> </model> <model id="PricebookEntries" limit="100" query="true" createrowifnonefound="false" orderby="Product2.Name" sobject="PricebookEntry"> <fields> <field id="Id"/> <field id="UnitPrice"/> <field id="Product2Id"/> <field id="Product2.Name"/> <field id="Product2.ProductCode"/> <field id="Product2.Family"/> <field id="Product2.Description"/> <field id="Product2.IsActive"/> </fields> <conditions> <condition type="fieldvalue" value="true" enclosevalueinquotes="false" field="IsActive" state="filterableon" inactive="false" name="IsActive"/> <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Pricebook2Id" state="filterableoff" inactive="true" name="Pricebook2Id"/> <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Product2.Family" state="filterableoff" inactive="true" name="Product2Family"/> </conditions> <actions/> </model> <model id="OpportunityRoles" limit="50" query="true" createrowifnonefound="false" sobject="OpportunityContactRole" orderby="" doclone="" type=""> <fields> <field id="ContactId"/> <field id="Contact.Name"/> <field id="IsPrimary"/> <field id="Role"/> <field id="Contact.Phone"/> <field id="Contact.Email"/> <field id="Contact.AccountId"/> <field id="Contact.Account.Name"/> <field id="Contact.Title"/> </fields> <conditions> <condition type="param" enclosevalueinquotes="true" operator="=" value="id" field="OpportunityId"/> </conditions> <actions/> </model> <model id="LineItems" limit="" query="true" createrowifnonefound="false" sobject="OpportunityLineItem" orderby="SortOrder, PricebookEntry.Product2.Name"> <fields> <field id="SortOrder"/> <field id="UnitPrice"/> <field id="Subtotal"/> <field id="TotalPrice"/> <field id="Quantity"/> <field id="Description"/> <field id="PricebookEntry.Product2Id"/> <field id="PricebookEntry.Product2.Name"/> <field id="PricebookEntryId"/> <field id="PricebookEntry.UnitPrice"/> <field id="CV_to_Renew__c"/> <field id="Context_Next_Action__c"/> <field id="NCVI_Override__c"/> <field id="Product_Family__c"/> <field id="Product_Renewal_Status__c"/> <field id="Seat_Holder_Name__c"/> <field id="Service_Term__c"/> <field id="Annual_NCVI_Amount__c"/> <field id="Current_Seats__c"/> <field id="Seat_Holder__c"/> <field id="Seat_Holder__r.Name"/> <field id="Amount_for_Retention__c"/> <field id="ProductCode"/> <field id="New_Seat_Holder__c"/> <field id="New_Seat_Holder__r.Name"/> </fields> <conditions> <condition type="param" enclosevalueinquotes="true" operator="=" value="id" field="OpportunityId"/> </conditions> <actions> <action> <actions> <action type="requeryModel" model="LineItemsforSeatAssigns" behavior="standard"/> </actions> <events> <event>models.saved</event> </events> </action> </actions> </model> <model id="OpenTasks" limit="10" query="true" createrowifnonefound="false" sobject="Task" orderby="ActivityDate DESC" doclone="" type=""> <fields> <field id="OwnerId"/> <field id="Owner.Name"/> <field id="WhoId"/> <field id="Who.Name" targetobjects="Contact"/> <field id="ActivityDate"/> <field id="Priority"/> <field id="Status"/> <field id="Subject"/> <field id="Type"/> <field id="Description"/> <field id="IsClosed"/> </fields> <conditions logic=""> <condition type="param" enclosevalueinquotes="true" operator="=" value="id" field="WhatId"/> <condition type="fieldvalue" enclosevalueinquotes="false" operator="=" field="IsClosed" value="false"/> </conditions> <actions/> </model> <model id="TaskHistory" limit="10" query="true" createrowifnonefound="false" sobject="Task" orderby="CreatedDate DESC" doclone="" type=""> <fields> <field id="Subject"/> <field id="ActivityDate"/> <field id="WhoId"/> <field id="Who.Name" targetobjects="Contact"/> <field id="LastModifiedById"/> <field id="LastModifiedBy.Name"/> <field id="LastModifiedDate"/> <field id="Type"/> <field id="OwnerId"/> <field id="Owner.Name"/> <field id="Description"/> <field id="Priority"/> <field id="Status"/> </fields> <conditions logic="(1 OR 2) AND 3"> <condition type="modelmerge" operator="=" value="" field="AccountId" model="Opportunity" enclosevalueinquotes="true" mergefield="AccountId" novaluebehavior="deactivate"/> <condition type="modelmerge" value="" field="WhatId" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="Id" novaluebehavior="noquery"/> <condition type="fieldvalue" enclosevalueinquotes="false" operator="=" field="IsClosed" value="true"/> </conditions> <actions/> </model> <model id="Event" limit="10" query="false" createrowifnonefound="false" sobject="Event" type=""> <fields> <field id="Subject"/> <field id="OwnerId"/> <field id="Owner.Name"/> <field id="Description"/> <field id="IsAllDayEvent"/> <field id="ActivityDateTime"/> <field id="DurationInMinutes"/> <field id="EndDateTime"/> <field id="StartDateTime"/> <field id="RecurrenceStartDateTime"/> </fields> <conditions> <condition type="modelmerge" value="" field="WhatId" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="Id" state="" inactive="false"/> <condition type="fieldvalue" value="false" enclosevalueinquotes="false" field="IsChild" state="" inactive="false"/> </conditions> <actions/> </model> <model id="StageHistory" limit="30" query="true" createrowifnonefound="false" sobject="OpportunityHistory" orderby="CreatedDate DESC" doclone="" type=""> <fields> <field id="Amount"/> <field id="StageName"/> <field id="Probability"/> <field id="ExpectedRevenue"/> <field id="CloseDate"/> <field id="CreatedDate"/> <field id="CreatedById"/> <field id="CreatedBy.Name"/> </fields> <conditions> <condition type="param" enclosevalueinquotes="true" operator="=" field="OpportunityId" value="id"/> </conditions> <actions/> </model> <model id="ProtoLineItem" limit="200" query="false" createrowifnonefound="true" sobject="OpportunityLineItem" type=""> <fields> <field id="Discount"/> <field id="Description"/> <field id="Quantity"/> <field id="ServiceDate"/> <field id="UnitPrice"/> </fields> <conditions> <condition type="fieldvalue" value="TODAY" enclosevalueinquotes="false" field="ServiceDate"/> <condition type="fieldvalue" value="1" enclosevalueinquotes="false" field="Quantity"/> </conditions> <actions/> </model> <model id="ProtoContactRole" limit="10" query="false" createrowifnonefound="true" sobject="OpportunityContactRole" type=""> <fields> <field id="Role"/> <field id="IsPrimary"/> </fields> <conditions/> <actions/> </model> <model id="Contracts" limit="10" query="true" createrowifnonefound="false" sobject="Contract" doclone="" type=""> <fields> <field id="ContractNumber"/> <field id="Contract_Amount__c"/> <field id="StartDate"/> <field id="EndDate"/> <field id="ContractTerm"/> <field id="Status"/> <field id="Renewal_Opportunity__c"/> <field id="Renewal_Opportunity__r.Name"/> <field id="Opportunity__r.Name"/> </fields> <conditions> <condition type="param" value="Id" field="Opportunity__c" operator="=" enclosevalueinquotes="true" novaluebehavior=""/> </conditions> <actions/> </model> <model id="SalesOrderForms" limit="5" query="true" createrowifnonefound="false" sobject="Sales_Order_Form__c" doclone="" type=""> <fields> <field id="NCVI__c"/> <field id="PO__c"/> <field id="SOF_Owner__c"/> <field id="SOF_Owner__r.Name"/> <field id="RecordTypeId"/> <field id="RecordType.Name"/> <field id="Name"/> <field id="Contract__c"/> <field id="Contract__r.Name"/> <field id="Bookings__c"/> <field id="Opportunity__c"/> <field id="Opportunity__r.Name"/> <field id="Id"/> <field id="CreatedDate"/> </fields> <conditions> <condition type="param" value="Id" field="Opportunity__c" operator="=" enclosevalueinquotes="true" novaluebehavior=""/> </conditions> <actions/> </model> <model id="Attachments" limit="20" query="true" createrowifnonefound="false" sobject="Attachment" doclone="" type=""> <fields> <field id="Id"/> <field id="Name"/> <field id="Description"/> <field id="ContentType"/> <field id="CreatedById"/> <field id="CreatedBy.Name"/> <field id="CreatedDate"/> </fields> <conditions> <condition type="param" value="id" field="ParentId" operator="=" enclosevalueinquotes="true" novaluebehavior=""/> </conditions> <actions/> </model> <model id="OpportunityTeams" limit="20" query="true" createrowifnonefound="false" sobject="OpportunityTeamMember" doclone="" type=""> <fields> <field id="OpportunityAccessLevel"/> <field id="OpportunityId"/> <field id="Opportunity.Name"/> <field id="Id"/> <field id="Name"/> <field id="UserId"/> <field id="User.Name"/> <field id="TeamMemberRole"/> </fields> <conditions> <condition type="param" value="id" field="OpportunityId" operator="=" enclosevalueinquotes="true" novaluebehavior=""/> </conditions> <actions/> </model> <model id="relatedOppys" limit="20" query="true" createrowifnonefound="false" sobject="Opportunity" doclone="" type="" orderby="closedate DESC"> <fields> <field id="Name"/> <field id="AccountId"/> <field id="Account.Name"/> <field id="CloseDate"/> </fields> <conditions/> <actions/> </model> <model id="LineItemsforSeatAssigns" limit="" query="true" createrowifnonefound="false" sobject="OpportunityLineItem" orderby="SortOrder, PricebookEntry.Product2.Name"> <fields> <field id="UnitPrice"/> <field id="TotalPrice"/> <field id="PricebookEntry.UnitPrice"/> <field id="ProductCode"/> <field id="New_Seat_Holder__c"/> <field id="New_Seat_Holder__r.Name"/> <field id="New_Seat_Holder__r.Account.Name"/> <field id="Team_Member_1__c"/> <field id="Team_Member_1__r.Name"/> <field id="Team_Member_2__c"/> <field id="Team_Member_2__r.Name"/> <field id="Context_Next_Action__c"/> </fields> <conditions> <condition type="param" enclosevalueinquotes="true" operator="=" value="id" field="OpportunityId"/> <condition type="multiple" value="" field="Product_Family__c" operator="in" enclosevalueinquotes="true"> <values> <value>Advisory Services</value> <value>Learning</value> <value>Public Learning</value> </values> </condition> <condition type="fieldvalue" value="0.0" enclosevalueinquotes="false" field="UnitPrice" operator="gt"/> </conditions> <actions/> </model> <model id="LineItemsforSeatAssignsBriefs" limit="" query="true" createrowifnonefound="false" sobject="OpportunityLineItem" orderby="SortOrder, PricebookEntry.Product2.Name"> <fields> <field id="UnitPrice"/> <field id="TotalPrice"/> <field id="PricebookEntry.UnitPrice"/> <field id="ProductCode"/> <field id="New_Seat_Holder__c"/> <field id="New_Seat_Holder__r.Name"/> <field id="New_Seat_Holder__r.Account.Name"/> <field id="Team_Member_1__c"/> <field id="Team_Member_1__r.Name"/> <field id="Team_Member_2__c"/> <field id="Team_Member_2__r.Name"/> <field id="Context_Next_Action__c"/> </fields> <conditions> <condition type="param" enclosevalueinquotes="true" operator="=" value="id" field="OpportunityId"/> <condition type="fieldvalue" value="LIC-" field="ProductCode" operator="starts with" enclosevalueinquotes="true"/> </conditions> <actions/> </model> </models> <pageregioncontents> <pageregioncontent regionid="sk-2uempF-338" uniqueid="sk-2vOG5d-96"> <components> <pagetitle model="Opportunity" uniqueid="sk-2v8YJ7-484"> <maintitle>{{Name}} | Stage: {{StageName}}</maintitle> <actions> <action type="popup" label="Edit"> <popup title="Edit Opportunity" width="95%"> <components> <includepanel type="skuid" pagename="OpportunityDetailEDIT" module="" querystring="id={{$Param.id}}" lazyload="false" uniqueid="sk-2v8YJ7-485"/> </components> </popup> <hotkeys/> </action> <action type="savecancel" window="self"> <models> <model>OpportunityRoles</model> <model>LineItems</model> <model>OpenTasks</model> <model>TaskHistory</model> <model>LineItemsforSeatAssigns</model> <model>LineItemsforSeatAssignsBriefs</model> </models> <savehotkeys/> </action> <action type="redirect" label="Clone" window="self" url="/{{Id}}/e?clone=1&amp;cloneli=1&amp;retURL%2F{{Id}}"> <renderconditions logictype="and"> <rendercondition type="multiple" operator="in" fieldmodel="Opportunity" sourcetype="userinfo" sourceuserinfotype="username" value="" enclosevalueinquotes="true"> <values> <value>joe.ort@siriusdecisions.com</value> <value>ben.knecht@siriusdecisions.com</value> </values> </rendercondition> </renderconditions> </action> <action type="multi" label="Delete"> <actions> <action type="markRowsForDeletion" fieldmodel="Opportunity" model="Opportunity"/> </actions> <renderconditions logictype="and"> <rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="Opportunity" sourcetype="userinfo" sourceuserinfotype="username" value="joe.ort@siriusdecisions.com"/> </renderconditions> </action> <action type="redirect" label="Add Opportunity Team Members" window="self" url="/ui/opportunity/team/MultiOpportunityTeamMemberEdit?oppId={{{Id}}}"/> <action type="redirect" label="Deal Explorer" window="blank" url="https://fcrm.na1.visual.force.com/apex/FCR_VFDealExplorer?scontrolCaching=1&amp;id={{Id}}" icon="fa-bar-chart-o"/> <action type="multi" label="$$WIN THIS DEAL!$$"> <actions> <action type="updateRow" fieldmodel="Opportunity" field="Needs_Confirmed__c" enclosevalueinquotes="false" value="true"/> <action type="updateRow" fieldmodel="Opportunity" field="Power_Identified__c" enclosevalueinquotes="false" value="true"/> <action type="updateRow" fieldmodel="Opportunity" field="Solution_Confirmed__c" enclosevalueinquotes="false" value="true"/> <action type="updateRow" fieldmodel="Opportunity" field="Engagement_Plan_Accepted__c" enclosevalueinquotes="false" value="true"/> <action type="updateRow" fieldmodel="Opportunity" field="All_Players_ID_d__c" enclosevalueinquotes="false" value="true"/> <action type="updateRow" fieldmodel="Opportunity" field="Procurement_Process_Known__c" enclosevalueinquotes="false" value="true"/> <action type="updateRow" fieldmodel="Opportunity" field="Plan_timing_Confirmed__c" enclosevalueinquotes="false" value="true"/> <action type="updateRow" fieldmodel="Opportunity" field="Proposal_Received__c" enclosevalueinquotes="false" value="true"/> <action type="updateRow" fieldmodel="Opportunity" field="MCA_Received__c" enclosevalueinquotes="false" value="true"/> <action type="updateRow" fieldmodel="Opportunity" field="Verbal_Commitment__c" enclosevalueinquotes="false" value="true"/> <action type="showPopup" fieldmodel="Opportunity"> <popup title="Close this deal!" width="60%"> <components> <pagetitle model="Opportunity"> <maintitle>{{Name}}</maintitle> <subtitle>Close this deal</subtitle> <actions> <action type="multi" label="Cancel"> <actions> <action type="cancel"> <models> <model>Opportunity</model> <model>LineItemsforSeatAssigns</model> </models> </action> <action type="closeAllPopups"/> </actions> <renderconditions logictype="and"/> </action> </actions> </pagetitle> <template multiple="true" model="Opportunity" allowhtml="true"> <contents>&lt;B&gt;&lt;I&gt;&lt;u&gt;SAVE BUTTON AT BOTTOM OF PAGE&lt;/B&gt;&lt;/I&gt;&lt;/U&gt;</contents> </template> <basicfieldeditor showheader="true" showsavecancel="false" model="Opportunity" buttonposition="" mode="edit" layout=""> <columns> <column width="75%"> <sections> <section title="Missing Components" collapsible="no"> <fields> <field id="Aligned_to_Power__c" showhelp="true" valuehalign="" type=""> <renderconditions logictype="and" onhidedatabehavior="keep"> <rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="Opportunity" sourcetype="fieldvalue" field="Aligned_to_Power__c"/> </renderconditions> </field> <field id="Power_Conf__c" showhelp="true" valuehalign="" type=""> <renderconditions logictype="and" onhidedatabehavior="keep"> <rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="Opportunity" sourcetype="fieldvalue" field="Power_Conf__c"/> </renderconditions> </field> <field id="Vendor_Forms_Rec_d__c" showhelp="true" valuehalign="" type=""> <renderconditions logictype="and" onhidedatabehavior="keep"> <rendercondition type="multiple" operator="in" fieldmodel="Opportunity" sourcetype="fieldvalue" field="Vendor_Forms_Rec_d__c" value="" enclosevalueinquotes="true"> <values> <value>No</value> <value/> </values> </rendercondition> </renderconditions> </field> <field id="Vendor_Forms_Complete__c" showhelp="true" valuehalign="" type=""> <renderconditions logictype="and" onhidedatabehavior="keep"> <rendercondition type="multiple" operator="in" fieldmodel="Opportunity" sourcetype="fieldvalue" field="Vendor_Forms_Complete__c" value="" enclosevalueinquotes="true"> <values> <value>No</value> <value/> </values> </rendercondition> </renderconditions> </field> <field id="PO_Received__c" showhelp="true" valuehalign="" type=""> <renderconditions logictype="and" onhidedatabehavior="keep"> <rendercondition type="multiple" operator="in" fieldmodel="Opportunity" sourcetype="fieldvalue" field="PO_Received__c" value="" enclosevalueinquotes="true"> <values> <value>No</value> <value/> </values> </rendercondition> </renderconditions> </field> </fields> </section> </sections> </column> <column width="50%"> <sections> <section title="Section B" collapsible="no" showheader="false"> <fields/> </section> </sections> </column> </columns> </basicfieldeditor> <basicfieldeditor showheader="true" showsavecancel="false" model="Opportunity" buttonposition="" mode="edit" layout=""> <columns> <column width="75%"> <sections> <section title="Sales Order Form" collapsible="no"> <fields> <columns/> <field id="Bill_To_Account__c"/> <field id="Contract_Amount__c" showhelp="true" decimalplaces="" valuehalign="" type=""> <label>*Contract Amount</label> </field> <field id="Accounts_Payable_Contact__c" valuehalign="" type=""> <label>*Accounts Payable Contact</label> </field> <field id="Accounts_Payable_Email__c"/> <field id="Accounts_Payable_Phone__c"/> <field id="Contract_Start_Date__c" valuehalign="" type=""> <label>*Contract Start Date</label> </field> <field id="Contract_Expiry_Date__c" valuehalign="" type=""> <label>*Contract Expiry Date</label> </field> <field id="Service_Length__c" decimalplaces="" valuehalign="" type=""/> <field id="Billing_Terms__c" valuehalign="" type=""> <label>*Billing Terms</label> </field> <field id="PO__c" valuehalign="" type=""/> <field id="PO_Required__c" valuehalign="" type=""> <label>*PO Required</label> </field> <field id="Special_Instructions__c" valuehalign="" type=""> <label>*Special Instructions</label> <renderconditions logictype="and" onhidedatabehavior="keep"/> </field> <field id="Total_Advisory_Seats__c" decimalplaces="" valuehalign="" type=""> <label>*Total # Advisory Seats</label> </field> <field id="Total_Member_Seats__c" decimalplaces="" valuehalign="" type=""> <label>*Total # Member Seats (Portal Only)</label> </field> <field id="Total_Learning_Seats__c" decimalplaces="" valuehalign="" type=""/> <field id="Learning_Admin__c" showhelp="true" valuehalign="" type=""> <label>Learning Admin (to assign tokens)</label> &l
Photo of Joe Ort

Joe Ort

  • 2,256 Points 2k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
In your child page you have two models that create new rows on page load.  See below: 

<model id="ProtoLineItem" limit="200" query="false" createrowifnonefound="true" sobject="OpportunityLineItem" type="">
         <fields>
<field id="Discount"/>
<field id="Description"/>
<field id="Quantity"/>
<field id="ServiceDate"/>
<field id="UnitPrice"/>
</fields>
<conditions>
<condition type="fieldvalue" value="TODAY" enclosevalueinquotes="false" field="ServiceDate"/>
<condition type="fieldvalue" value="1" enclosevalueinquotes="false" field="Quantity"/>
</conditions>
<actions/>
</model>
<model id="ProtoContactRole" limit="10" query="false" createrowifnonefound="true" sobject="OpportunityContactRole" type="">
<fields>
<field id="Role"/>
<field id="IsPrimary"/>
</fields>
<conditions/>
<actions/>
</model>

The new row acts like a change - which triggers the unsaved changes warning you have established for the page.  You can either turn off the unsaved changes warning for the page as a whole,  or uncheck the box in the advanced tab of the model that says: "Prevent users from leaving page is THIS model has unsaved changes."  This model specific override is a new feature introduced in Banzai... 
Photo of Joe Ort

Joe Ort

  • 2,256 Points 2k badge 2x thumb
Good find.  This was obviously built based off the template you guys have that was created before the AF was available.  I don't see these models referenced anywhere except in a couple of snippets.  

I found I could delete those models and just add an action to the LineItems model to query the opportunity for fresh data.

Because of the vast improvements you guys have made in the last 2 releases, that page repository could be juiced up now (remove snippets and use AF).
Photo of Anna Wiersema

Anna Wiersema

  • 10,890 Points 10k badge 2x thumb
We would love to do that...