Changes you made may not be saved - no changes made though?

edited April 12, 2019 in Questions
I've added a lightning component to a page on occasion when you haven't even clicked it it tells you you have unsaved changes. Sometimes it even shows the message as the page is loading. 
I have one model that creates a new row automatically which is the main purpose of the page and allows the user to easily start creating the record, so I would like to keep this active if possible. 
I have double checked and nothing else creates a new row unless they click a button on the page/component. 

Comments

  • Khamla PhimmachackKhamla Phimmachack 🛠️ 
    edited April 12, 2019
    Hi Kendra, do you mean that you've added a Lightning Component inside of a Skuid page? If this is the case, this is not currently supported by Skuid as it can lead to some wonky behavior. If I misunderstood, can you paste your page XML here so we can see how it is configured?

  • edited April 12, 2019
    Nope, sorry. I am using the skuid page as a component on a lightning page.



    <skuidpage personalizationmode="server" useviewportmeta="true" showsidebar="false" showheader="false" tabtooverride="Opportunity" theme="Lightning Design" unsavedchangeswarning="yes">
    <models>
    <model id="Opportunity" limit="1" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Opportunity">
    <fields>
    <field id="Name"/>
    <field id="AccountId"/>
    <field id="Account.Name"/>
    <field id="Account.Id"/>
    <field id="Account.RecordTypeId"/>
    <field id="Account.RecordType.Name"/>
    <field id="StageName"/>
    <field id="SG_Lead_Category__c"/>
    <field id="Amount"/>
    <field id="CloseDate"/>
    <field id="Id"/>
    <field id="SG_Product_Interest__c"/>
    <field id="CampaignId"/>
    <field id="Campaign.Name"/>
    <field id="Primary_Contact__c"/>
    <field id="Primary_Contact__r.Name"/>
    <field id="Primary_Contact__r.Id"/>
    <field id="Account.SG_Region_Code__c"/>
    <field id="Account.SG_Region_Code__r.Name"/>
    <field id="Account.SG_Region_Code__r.Id"/>
    <field id="FollowUpType" uionly="true" displaytype="PICKLIST" label="Follow-Up Type" ogdisplaytype="TEXT" picklistsource="manual" returntype="TEXT">
    <picklistentries>
    <entry value="Task" label="Task"/>
    <entry value="Event" label="Event"/>
    <entry value="None" label="None"/>
    </picklistentries>
    </field>
    <field id="OwnerId"/>
    <field id="Owner.Name"/>
    <field id="Owner.Id"/>
    </fields>
    <conditions>
    <condition type="param" value="id" field="Id" fieldtargetobjects="Account" operator="=" mergefield="AccountId" novaluebehavior="deactivate" enclosevalueinquotes="true"/>
    </conditions>
    <actions/>
    </model>
    <model id="Contact" limit="1" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Contact">
    <fields>
    <field id="AccountId"/>
    <field id="Account.Name"/>
    <field id="Account.Id"/>
    <field id="Account.SG_Region_Code__c"/>
    <field id="Account.SG_Region_Code__r.Name"/>
    <field id="Account.SG_Region_Code__r.Id"/>
    <field id="Phone"/>
    <field id="Fax"/>
    <field id="Email"/>
    <field id="Name"/>
    <field id="Id"/>
    <field id="Account.Opportunity_Type__c"/>
    <field id="Account.SG_Region_Code__r.SG_Salesman_Name__c"/>
    <field id="Account.SG_Region_Code__r.SG_Salesman_Name__r.Name"/>
    <field id="Account.SG_Region_Code__r.SG_Salesman_Name__r.Id"/>
    <field id="Account.SG_Region_Code__r.SG_Salesman_Name__r.SSA__c"/>
    <field id="Account.SG_Region_Code__r.SG_Salesman_Name__r.SSA__r.Name"/>
    <field id="Account.SG_Region_Code__r.SG_Salesman_Name__r.SG_Salesman_Name__c"/>
    <field id="Account.SG_Region_Code__r.SG_Salesman_Name__r.SG_Salesman_Name__r.Name"/>
    <field id="Account.SG_Region_Code__r.SG_Salesman_Name__r.SG_Salesman_Name__r.MobilePhone"/>
    <field id="Account.SG_Region_Code__r.Salesman__c"/>
    <field id="Account.SG_Region_Code__r.Salesman_No__c"/>
    <field id="Account.RecordTypeId"/>
    <field id="Account.RecordType.Name"/>
    <field id="Account.RecordType.Id"/>
    <field id="AttnHandler" uionly="true" displaytype="FORMULA" label="Attn Handler" ogdisplaytype="TEXT" readonly="true" returntype="TEXT">
    <formula>TEXT("Attn ")&amp;{{Name}}</formula>
    </field>
    </fields>
    <conditions>
    <condition type="modelmerge" value="" field="Id" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="Primary_Contact__c" novaluebehavior="deactivate" fieldtargetobjects="Contact"/>
    </conditions>
    <actions/>
    </model>
    <model id="Sample" limit="1" query="false" createrowifnonefound="true" datasource="salesforce" sobject="SG_Sample__c">
    <fields>
    <field id="SG_ATTN__c"/>
    <field id="SG_ATTN__r.Name"/>
    <field id="SG_ATTN__r.Id"/>
    <field id="SG_ATTN__r.Account.Id"/>
    <field id="SG_ATTN__r.AccountId"/>
    <field id="SG_ATTN__r.Account.Name"/>
    <field id="Opportunity__c"/>
    <field id="Opportunity__r.Name"/>
    <field id="Opportunity__r.Id"/>
    <field id="SG_Campaign__c"/>
    <field id="SG_Campaign__r.Name"/>
    <field id="SG_Campaign__r.Id"/>
    <field id="Internal_Comment__c"/>
    <field id="SG_External_Comments__c"/>
    <field id="SG_Email__c"/>
    <field id="SG_Fax__c"/>
    <field id="SG_Phone__c"/>
    <field id="SG_Remarks_Text__c"/>
    <field id="SG_Sample_Account__c"/>
    <field id="SG_Ship_to__c"/>
    <field id="SG_Ship_to__r.Name"/>
    <field id="SG_Address__c"/>
    <field id="SG_Address__r.Name"/>
    <field id="SG_Ship_to__r.Id"/>
    <field id="Id"/>
    <field id="SG_Region_Code__c"/>
    <field id="SG_Region_Code__r.Name"/>
    <field id="SG_Region_Code__r.Id"/>
    <field id="NewAddress" uionly="true" displaytype="BOOLEAN" label="New Address" ogdisplaytype="TEXT" picklistsource="manual" returntype="TEXT"/>
    <field id="Name"/>
    <field id="SG_Address__r.SG_Account__c"/>
    <field id="SG_Address__r.SG_Account__r.Name"/>
    <field id="SG_Address__r.SG_Address_1__c"/>
    <field id="SG_Address__r.SG_Address_3__c"/>
    <field id="SG_Address__r.SG_City__c"/>
    <field id="SG_Address__r.SG_Country__c"/>
    <field id="SG_Address__r.SG_Postal_Zip_Code__c"/>
    <field id="SG_Address__r.SG_Billing_State_Province_Code__c"/>
    <field id="SG_Address__r.SG_Province__c"/>
    <field id="Opportunity_Exemption_Comments__c"/>
    <field id="Opportunity_Exemption_Reason__c"/>
    <field id="SG_Total_Price__c"/>
    <field id="RequiresApproval" uionly="true" displaytype="FORMULA" ogdisplaytype="TEXT" readonly="true" returntype="BOOLEAN" label="Requires Approval" defaultvaluetype="fieldvalue">
    <formula>OR(
    AND({{SG_Total_Price__c}} &gt; 50, {{LastModifiedBy.Profile.Name}}!="Territory Manager"),
    AND({{SG_Total_Price__c}} &gt; 250, {{LastModifiedBy.Profile.Name}}="Territory Manager"))</formula>
    </field>
    <field id="For_Further_Info__c"/>
    <field id="Requires_Approval__c"/>
    <field id="SG_ATTN__r.Email"/>
    <field id="SG_ATTN__r.Phone"/>
    <field id="SG_Ship_to__r.SG_Region_Code__c"/>
    <field id="SG_Ship_to__r.SG_Region_Code__r.Name"/>
    <field id="SG_Ship_to__r.SG_Region_Code__r.Id"/>
    </fields>
    <conditions>
    <condition type="modelmerge" value="" field="SG_ATTN__c" operator="=" mergefield="Id" novaluebehavior="deactivate" fieldtargetobjects="Contact" model="Contact" enclosevalueinquotes="true"/>
    <condition type="modelmerge" value="" field="SG_Ship_to__c" fieldtargetobjects="Account" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="AccountId" novaluebehavior="deactivate"/>
    <condition type="modelmerge" value="" field="Opportunity__c" fieldtargetobjects="Opportunity" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="Id" novaluebehavior="deactivate"/>
    <condition type="modelmerge" value="" field="SG_Campaign__c" fieldtargetobjects="Campaign" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="CampaignId" novaluebehavior="deactivate"/>
    <condition type="modelmerge" value="" field="SG_Region_Code__c" fieldtargetobjects="SG_Region__c" operator="=" model="Region" enclosevalueinquotes="true" mergefield="Id" novaluebehavior="deactivate"/>
    </conditions>
    <actions/>
    </model>
    <model id="ShippingAddress" query="true" createrowifnonefound="false" datasource="salesforce" sobject="SG_Shipping_Address__c">
    <fields>
    <field id="SG_Account__c"/>
    <field id="SG_Account__r.Name"/>
    <field id="SG_Account__r.Id"/>
    <field id="SG_Address_1__c"/>
    <field id="SG_City__c"/>
    <field id="SG_Country__c"/>
    <field id="SG_Postal_Zip_Code__c"/>
    <field id="Id"/>
    <field id="SG_Billing_State_Province_Code__c"/>
    <field id="SG_Province__c"/>
    <field id="Name"/>
    </fields>
    <conditions>
    <condition type="modelmerge" value="" field="SG_Account__c" fieldtargetobjects="Account" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="AccountId" novaluebehavior="deactivate"/>
    </conditions>
    <actions/>
    </model>
    <model id="NewShippingAddress" query="false" createrowifnonefound="false" datasource="salesforce" limit="1" sobject="SG_Shipping_Address__c">
    <fields>
    <field id="SG_Account__c"/>
    <field id="SG_Account__r.Name"/>
    <field id="SG_Account__r.Id"/>
    <field id="SG_Address_1__c"/>
    <field id="SG_Address_3__c"/>
    <field id="SG_City__c"/>
    <field id="SG_Country__c"/>
    <field id="Owner.Name"/>
    <field id="SG_Postal_Zip_Code__c"/>
    <field id="SG_Billing_State_Province_Code__c"/>
    <field id="Id"/>
    <field id="Name"/>
    <field id="SG_Province__c"/>
    </fields>
    <conditions>
    <condition type="modelmerge" value="" field="SG_Account__c" fieldtargetobjects="Account" operator="=" model="Contact" enclosevalueinquotes="true" mergefield="Account.Id" novaluebehavior="deactivate"/>
    </conditions>
    <actions/>
    </model>
    <model id="NewSampleLineItem" limit="1" query="false" createrowifnonefound="false" datasource="salesforce" sobject="SG_Sample_Line_Item__c">
    <fields>
    <field id="SG_Sample__c"/>
    <field id="SG_Sample__r.Name"/>
    <field id="SG_Sample__r.Id"/>
    <field id="SG_Product__c"/>
    <field id="SG_Product__r.Name"/>
    <field id="SG_Quantity__c"/>
    <field id="SG_Product__r.SG_Key_Price__c"/>
    <field id="SG_Description__c"/>
    <field id="SG_Product__r.Description"/>
    <field id="SG_Product__r.IsActive"/>
    <field id="SG_Product__r.SG_Item_Status__c"/>
    <field id="SG_Product__r.SG_UV_Price__c"/>
    <field id="SG_Product__r.SG_Item_desc__c"/>
    <field id="SG_Product__r.RecordTypeId"/>
    <field id="SG_Product__r.RecordType.Name"/>
    </fields>
    <conditions>
    <condition type="modelmerge" value="" field="SG_Sample__c" fieldtargetobjects="SG_Sample__c" operator="=" model="Sample" enclosevalueinquotes="true" mergefield="Id" novaluebehavior="deactivate"/>
    <condition type="modelmerge" value="" field="SG_Price__c" operator="=" model="NewSampleLineItem" enclosevalueinquotes="false" mergefield="SG_Product__r.SG_UV_Price__c" novaluebehavior="deactivate"/>
    </conditions>
    <actions/>
    </model>
    <model id="SampleLineItem" query="false" createrowifnonefound="false" datasource="salesforce" sobject="SG_Sample_Line_Item__c" orderby="Name ASC">
    <fields>
    <field id="SG_Description__c"/>
    <field id="SG_Product__c"/>
    <field id="SG_Product__r.Name"/>
    <field id="SG_Product__r.IsActive"/>
    <field id="SG_Product__r.Id"/>
    <field id="SG_Sample__c"/>
    <field id="SG_Sample__r.Name"/>
    <field id="SG_Sample__r.Id"/>
    <field id="SG_Product__r.Description"/>
    <field id="SG_Product__r.SG_Key_Price__c"/>
    <field id="SG_Quantity__c"/>
    <field id="SG_Product__r.SG_UV_Price__c"/>
    <field id="Total_Price__c"/>
    </fields>
    <conditions>
    <condition type="modelmerge" value="" field="SG_Sample__c" fieldtargetobjects="SG_Sample__c" operator="=" model="Sample" enclosevalueinquotes="true" mergefield="Id" novaluebehavior="deactivate"/>
    </conditions>
    <actions/>
    </model>
    <model id="Product" query="false" createrowifnonefound="false" datasource="salesforce" sobject="Product2">
    <fields>
    <field id="RecordTypeId"/>
    <field id="Quantity" uionly="true" displaytype="DOUBLE" label="Quantity" ogdisplaytype="TEXT" precision="9" scale="0"/>
    <field id="Name"/>
    <field id="Family"/>
    <field id="Id"/>
    </fields>
    <conditions/>
    <actions/>
    </model>
    <model id="Region" query="true" createrowifnonefound="false" datasource="salesforce" sobject="SG_Region__c" limit="1">
    <fields>
    <field id="Id"/>
    <field id="Name"/>
    <field id="SG_Salesman_Name__c"/>
    <field id="SG_Salesman_Name__r.Name"/>
    <field id="Salesman__c"/>
    <field id="SG_Salesman__c"/>
    <field id="Salesman_No__c"/>
    </fields>
    <conditions>
    <condition type="modelmerge" value="" field="Id" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="Account.SG_Region_Code__c" novaluebehavior="deactivate" fieldtargetobjects="SG_Region__c"/>
    </conditions>
    <actions/>
    </model>
    <model id="NewEvent" limit="1" query="false" createrowifnonefound="false" datasource="salesforce" sobject="Event">
    <fields>
    <field id="OwnerId"/>
    <field id="Owner.Name"/>
    <field id="CreatedById"/>
    <field id="CreatedBy.Name"/>
    <field id="CreatedDate"/>
    <field id="Description"/>
    <field id="ActivityDate"/>
    <field id="ActivityDateTime"/>
    <field id="EndDateTime"/>
    <field id="WhoId"/>
    <field id="Who.Name"/>
    <field id="WhatId"/>
    <field id="What.Name"/>
    <field id="What.Id"/>
    <field id="StartDateTime"/>
    <field id="Subject"/>
    <field id="Id"/>
    </fields>
    <conditions>
    <condition type="modelmerge" value="" field="OwnerId" fieldtargetobjects="User" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="OwnerId" novaluebehavior="deactivate"/>
    <condition type="modelmerge" value="" field="Subject" operator="=" model="Opportunity" enclosevalueinquotes="true" mergefield="Subject_Handler__c" novaluebehavior="deactivate"/>
    <condition type="modelmerge" value="" field="WhatId" fieldtargetobjects="Account,Asset,AssetRelationship,CRMfusionDBR101__Duplicate_Warning__c,Campaign,Case,ChannelProgram,ChannelProgramLevel,Contract,Contract_Line_Item__c,Contract_Request__c,ListEmail,Master_Question__c,New_Account_Request__c,Opportunity,PartnerFundAllocation,PartnerFundClaim,PartnerFundRequest,PartnerMarketingBudget,Product2,Quote,SG_Order_Line_Item__c,SG_Order__c,SG_Prototype__c,SG_Sample_Line_Item__c,SG_Sample__c,SLA_History__c,Solution,
  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited April 12, 2019
    Might be due to a Ui-Only field on the Model.
  • edited April 12, 2019
    Thank you, Zach. How would this be only affected sometimes, even when someone hasn't clicked into the component (skuid page) at all?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!