Tasks for two contacts owned by same owner render differently for the owner

Jimmy PerezJimmy Perez Member
edited September 2019 in Questions
image
Tasks for two contacts owned by same owner render differently for the owner.

Comments

  • Luzie BaumgartLuzie Baumgart Skuid Mod
    edited September 2019
    Hi Jimmy, thank you for the screenshot. Which Skuid version is currently installed? Can you reproduce this issue on a simplified Skuid page, that contains only the two models (Contacts and Tasks) and the Table component? If yes, could you please share the XML here?

  • Jimmy PerezJimmy Perez Member
    edited September 2019
    We are running 11.2.24, I will create a simplified page and let you know.
  • Jimmy PerezJimmy Perez Member
    edited September 2019

    Same issue:



    <skuidpage personalizationmode="server" showsidebar="false" showheader="true">
        <models>
            <model id="ContactPU" limit="50" query="true" createrowifnonefound="false" sobject="Contact" orderby="LastName" datasource="salesforce" forview="true" nativeuiautosync="true">
                <fields>
                    <field id="Email"/>
                    <field id="HasOptedOutOfEmail"/>
                    <field id="Phone"/>
                    <field id="Extension__c"/>
                    <field id="MobilePhone"/>
                    <field id="FirstName"/>
                    <field id="LastName"/>
                    <field id="Title"/>
                    <field id="Note__c"/>
                    <field id="Active__c"/>
                    <field id="ReportsToId"/>
                    <field id="ReportsTo.Name"/>
                    <field id="Name"/>
                    <field id="CreatedDate"/>
                    <field id="CreatedById"/>
                    <field id="CreatedBy.Name"/>
                    <field id="LastModifiedById"/>
                    <field id="LastModifiedBy.Name"/>
                    <field id="LastModifiedDate"/>
                    <field id="Primary_POC__c"/>
                    <field id="Billing_Contact__c"/>
                    <field id="Contracts_POC__c"/>
                    <field id="Compliance_POC__c"/>
                    <field id="FTP_POC_Compliance__c"/>
                    <field id="FTP_POC__c"/>
                    <field id="Nrisk_POC__c"/>
                    <field id="Ncomply_POC__c"/>
                    <field id="Signatory__c"/>
                    <field id="Nfindings_POC__c"/>
                    <field id="N_ALLL_POC__c"/>
                    <field id="AccountId"/>
                    <field id="Account.Name"/>
                    <field id="Id"/>
                    <field id="MailingCity"/>
                    <field id="MailingCountryCode"/>
                    <field id="MailingStateCode"/>
                    <field id="MailingStreet"/>
                    <field id="MailingPostalCode"/>
                    <field id="OtherCity"/>
                    <field id="OtherCountryCode"/>
                    <field id="OtherStateCode"/>
                    <field id="OtherStreet"/>
                    <field id="OtherPostalCode"/>
                    <field id="OwnerId"/>
                    <field id="Owner.Name"/>
                    <field id="Sales_Status__c"/>
                    <field id="HubSpot_Score__c"/>
                    <field id="Time_Last_Seen__c"/>
                    <field id="Last_Email_Send_Date__c"/>
                    <field id="Emails_Opened__c"/>
                    <field id="Emails_Clicked__c"/>
                    <field id="Click_Through_Rate__c"/>
                    <field id="Last_Email_Name__c"/>
                    <field id="First_Email_Click_Date__c"/>
                    <field id="Last_Email_Click_Date__c"/>
                    <field id="Demo_Request__c"/>
                    <field id="MQL_Date__c"/>
                    <field id="MQL_Event__c"/>
                    <field id="Original_Source__c"/>
                    <field id="Original_Source_Drill_Down_1__c"/>
                    <field id="Original_Source_Drill_Down_2__c"/>
                    <field id="LeadSource"/>
                    <field id="Number_of_Visits__c"/>
                    <field id="Number_of_Pageviews__c"/>
                    <field id="Average_Pageviews__c"/>
                    <field id="Number_of_Form_Submissions__c"/>
                    <field id="Account.Type"/>
                    <field id="Disqualified_Reason__c"/>
                    <field id="Disqualified_Reason_Other__c"/>
                    <field id="Competitor__c"/>
                    <field id="Owner.Title"/>
                    <field id="Account_Type__c"/>
                    <field id="Ncontinuity_POC__c"/>
                    <field id="Nvendor__c"/>
                    <field id="Last_Survey__c"/>
                    <field id="Survey_Recipient__c"/>
                    <field id="Nvendor_POC__c"/>
                    <field id="Survey_Q1__c"/>
                    <field id="Survey_Q2__c"/>
                    <field id="Survey_Q3__c"/>
                    <field id="Survey_Q4__c"/>
                    <field id="Survey_Q5__c"/>
                    <field id="Survey_Q6__c"/>
                    <field id="Survey_Q7__c"/>
                    <field id="Account.Account_Number__c"/>
                    <field id="Account.BillingCity"/>
                    <field id="Account.BillingStateCode"/>
                    <field id="Supernal_CaseSafeId__c"/>
                    <field id="Deactivated_By__c"/>
                    <field id="Deactive_Person__c"/>
                    <field id="Recycle_Date__c"/>
                    <field id="Case_Safe_ID__c"/>
                    <field id="Email_Domain__c"/>
                    <field id="First_Touch_Campaign__c"/>
                    <field id="First_Touch_Campaign__r.Name"/>
                    <field id="Last_Touch_Campaign__c"/>
                    <field id="Last_Touch_Campaign__r.Name"/>
                    <field id="Other_Email__c"/>
                    <field id="Ngage_Invoice__c"/>
                    <field id="Ngage_Invoice_Amount__c"/>
                    <field id="Account_Name__c"/>
                </fields>
                <conditions>
                    <condition type="param" field="Id" operator="=" enclosevalueinquotes="true" value="Id"/>
                </conditions>
                <actions>
                    <action>
                        <actions>
                            <action type="publish" scope="global" event="force:refreshView">
                                <params/>
                            </action>
                        </actions>
                        <events>
                            <event>models.saved</event>
                            <event>row.updated</event>
                        </events>
                        <fields>
                            <field>Sales_Status__c</field>
                        </fields>
                    </action>
                </actions>
            </model>
            <model id="TaskHistoryContact_CPU" limit="20" query="true" createrowifnonefound="false" sobject="Task" orderby="LastModifiedDate DESC" datasource="salesforce">
                <fields>
                    <field id="LastModifiedDate"/>
                    <field id="OwnerId"/>
                    <field id="Owner.Name"/>
                    <field id="WhoId"/>
                    <field id="Who.Name"/>
                    <field id="WhatId"/>
                    <field id="What.Name"/>
                    <field id="Interaction_Category__c"/>
                    <field id="Interaction_Subject__c"/>
                    <field id="Subject"/>
                    <field id="Status"/>
                    <field id="Priority"/>
                    <field id="ActivityDate"/>
                    <field id="Description"/>
                    <field id="Interaction_Type__c"/>
                </fields>
                <conditions>
                    <condition type="modelmerge" value="" field="WhoId" operator="=" mergefield="Id" novaluebehavior="noquery" model="ContactPU" enclosevalueinquotes="true" inactive="false"/>
                    <condition type="multiple" field="Interaction_Subject__c" operator="in" inactive="true" enclosevalueinquotes="true" name="__autofilter__Interaction_Subject__c" state="filterableoff" value=""/>
                </conditions>
                <actions/>
            </model>
        </models>
        <components>
            <tabset rememberlastusertab="false" defertabrendering="true" uniqueid="sk-39veaY-1760">
                <tabs>
                    <tab name="Profile" loadlazypanels="true" icon="sk-icon-personal-info">
                        <components>
                            <basicfieldeditor showheader="true" showsavecancel="true" showerrorsinline="true" model="ContactPU" uniqueid="sk-c2v-731" mode="read">
                                <columns>
                                    <column width="50%" uniqueid="sk-c2v-727">
                                        <sections>
                                            <section title="Section A" uniqueid="sk-c2v-728" collapsible="no">
                                                <fields>
                                                    <field uniqueid="sk-c2_-747" id="Account_Name__c"/>
                                                    <field uniqueid="sk-c2_-748" id="Name"/>
                                                </fields>
                                            </section>
                                        </sections>
                                    </column>
                                    <column width="50%" uniqueid="sk-c2v-729">
                                        <sections>
                                            <section title="Section B" uniqueid="sk-c2v-730">
                                                <fields/>
                                            </section>
                                        </sections>
                                    </column>
                                </columns>
                            </basicfieldeditor>
                        </components>
                    </tab>
                    <tab name="Activities &amp; Notes ({{$Model.TaskHistoryContact_CPU.data.length}})" loadlazypanels="true" icon="sk-icon-important">
                        <components>
                            <template multiple="true" uniqueid="sk-39zyD3-1978" allowhtml="true" model="TaskHistoryContact_CPU">
                                <contents>&lt;div class="nx-editor-header-title"&gt;Completed Activities&lt;/div&gt;</contents>
                            </template>
                            <skootable showconditions="true" showsavecancel="false" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" createrecords="false" model="TaskHistoryContact_CPU" mode="read" uniqueid="sk-39_8Ul-2031" emptysearchbehavior="query" searchplaceholdertext="Completed Activities" instantfilters="true" alwaysresetpagination="false" hideheader="false">
                                <fields>
                                    <field id="OwnerId" type="CUSTOM" allowordering="true" snippet="removeHyperlink" uniqueid="sk-2rqvm7-695">
                                        <label>Assigned To</label>
                                    </field>
                                    <field id="ActivityDate" uniqueid="sk-2rqvm8-698" allowordering="true">
                                        <label>Activity Date</label>
                                    </field>
                                    <field id="Subject" type="CUSTOM" required="true" snippet="noLinkSubject" uniqueid="sk-2rqvmC-701" allowordering="true"/>
                                    <field id="WhatId" type="CUSTOM" allowordering="true" snippet="removeHyperlink" uniqueid="sk-2rqvmE-704">
                        &nb
  • Matt DavisMatt Davis Skuad
    edited September 2019
    Jimmy, did the xml get cut off on this by chance? 
  • Luzie BaumgartLuzie Baumgart Skuid Mod
    edited September 2019
    I took out the custom fields (and the model condition that used a custom field), so that I could test it in my environment. Jimmy, could you please test the following XML in your org and let us know if the issue remains?

    <skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true">
    <models>
    <model id="ContactPU" limit="50" query="true" createrowifnonefound="false" sobject="Contact" orderby="LastName" datasource="salesforce" forview="true" nativeuiautosync="true">
    <fields>
    <field id="Id"/>
    </fields>
    <conditions>
    <condition type="param" field="Id" operator="=" enclosevalueinquotes="true" value="Id"/>
    </conditions>
    <actions>
    <action>
    <actions>
    <action type="publish" scope="global" event="force:refreshView">
    <params/>
    </action>
    </actions>
    <events>
    <event>models.saved</event>
    <event>row.updated</event>
    </events>
    <fields>
    <field>Sales_Status__c</field>
    </fields>
    </action>
    </actions>
    </model>
    <model id="TaskHistoryContact_CPU" limit="20" query="true" createrowifnonefound="false" sobject="Task" orderby="LastModifiedDate DESC" datasource="salesforce">
    <fields>
    <field id="LastModifiedDate"/>
    <field id="OwnerId"/>
    <field id="Owner.Name"/>
    <field id="WhoId"/>
    <field id="Who.Name"/>
    <field id="WhatId"/>
    <field id="What.Name"/>
    <field id="Subject"/>
    <field id="Status"/>
    <field id="Priority"/>
    <field id="ActivityDate"/>
    <field id="Description"/>
    </fields>
    <conditions>
    <condition type="modelmerge" value="" field="WhoId" operator="=" mergefield="Id" novaluebehavior="noquery" model="ContactPU" enclosevalueinquotes="true" inactive="false"/>
    </conditions>
    <actions/>
    </model>
    </models>
    <components>
    <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" hideheader="false" hidefooter="false" pagesize="10" alwaysresetpagination="false" createrecords="true" model="ContactPU" buttonposition="" mode="read" allowcolumnreordering="true" responsive="true" uniqueid="sk-cS4-361">
    <fields>
    <field id="Id" uniqueid="fi-cS4-362"/>
    </fields>
    <rowactions>
    <action type="edit"/>
    <action type="delete"/>
    </rowactions>
    <massactions usefirstitemasdefault="true">
    <action type="massupdate"/>
    <action type="massdelete"/>
    </massactions>
    <views>
    <view type="standard"/>
    </views>
    </skootable>
    <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" hideheader="false" hidefooter="false" pagesize="10" alwaysresetpagination="false" createrecords="true" model="TaskHistoryContact_CPU" buttonposition="" mode="read" allowcolumnreordering="true" responsive="true" uniqueid="sk-cS5-415">
    <fields>
    <field id="LastModifiedDate" uniqueid="fi-cS5-416"/>
    <field id="OwnerId" uniqueid="fi-cS5-417"/>
    <field id="Owner.Name" uniqueid="fi-cS5-418"/>
    <field id="WhoId" uniqueid="fi-cS5-419"/>
    <field id="Who.Name" uniqueid="fi-cS5-420"/>
    <field id="WhatId" uniqueid="fi-cS5-421"/>
    <field id="What.Name" uniqueid="fi-cS5-422"/>
    <field id="Subject" uniqueid="fi-cS5-423"/>
    <field id="Status" uniqueid="fi-cS5-424"/>
    <field id="Priority" uniqueid="fi-cS5-425"/>
    <field id="ActivityDate" uniqueid="fi-cS5-426"/>
    <field id="Description" uniqueid="fi-cS5-427"/>
    </fields>
    <rowactions>
    <action type="edit"/>
    <action type="delete"/>
    </rowactions>
    <massactions usefirstitemasdefault="true">
    <action type="massupdate"/>
    <action type="massdelete"/>
    </massactions>
    <views>
    <view type="standard"/>
    </views>
    </skootable>
    </components>
    <resources>
    <labels/>
    <javascript/>
    <css/>
    <actionsequences/>
    </resources>
    <styles>
    <styleitem type="background" bgtype="none"/>
    </styles>
    </skuidpage>
  • Jimmy PerezJimmy Perez Member
    edited September 2019
    No, the issue went away, user can see all activities.
  • Jimmy PerezJimmy Perez Member
    edited September 2019
    Question:  When I use the simplified url, not the Lightning page, the user can see the activities.  What can cause this?
    https://ncontracts--skuid.na65.visual.force.com/apex/skuid__ui?page=Contact_detail_LEX&id=0031A0...
  • Luzie BaumgartLuzie Baumgart Skuid Mod
    edited September 2019
    Jimmy informed us that the issue could be resolved :-) There was a field that was assigned a javascript snippet causing the problem.
Sign In or Register to comment.