• Andee Weir 20
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Hi,

I have a user requirement to add a warning message to the standard Lightning Case UI which displays an 'Are you sure?' type message if the user is updating the status to Closed & a custom field, frequency__c, is not One-Off.  It should work in a similar fashion to the warning that appears in Lightning when deleting a client e.g. user given 2 options; one that continues with the operation & the second cancels it.

Any thoughts on how to achieve this? Thanks
Hi,

I've been tasked with creating a custom version of the Opportunity Team component that users currently see in the side panel.  Most of my development is fine but I am struggling to correctly position the button menu that appears when the dropdown arrow is clicked.

Salesforce working version :-
Salesforce standard button menuMy version :-
User-added image
As you can see on my version the menu items appear beneath & to the right of the dropdown (which means half the text is missing as the dropdown appears on the righthand side of the page) whereas the Salesforce version appears to the left & can also appear above the dropdown if there is not enough room on the browser beneath the dropdown.

Cutdown version of the aura component which demonstrates the problem when added to the righthand sidepanel of an opportunity page:-
<aura:component implements="force:hasRecordId,flexipage:availableForAllPageTypes" access="global">
	<div class="container forceRelatedListSingleContainer" data-aura-class="forceRelatedListSingleContainer">
        <article class="slds-card slds-card_boundary headerBottomBorder forceRelatedListCardDesktop" data-aura-class="forceRelatedListCardDesktop">
            <div class="slds-grid slds-page-header forceRelatedListCardHeader" data-aura-class="forceRelatedListCardHeader">
                <header class="slds-media slds-media--center slds-has-flexi-truncate" >
                    <div class="slds-media__figure stencil slds-avatar slds-avatar_small" aria-hidden="true">
                        <div class="extraSmall forceEntityIcon" style="background-color: #FCB95B" data-aura-class="forceEntityIcon">
                            <span class="uiImage" data-aura-class="uiImage">
                                <img src="/img/icon/t4v35/standard/team_member_120.png" class="icon " alt="Opportunity Team" title="Opportunity Team"/>
                            </span>
                        </div>
                    </div>
                    <div class="slds-media__body">
                        <h2 class="slds-card__header-title">
                            <a class="slds-card__header-link baseCard__header-title-container">
                                <span class="slds-truncate slds-m-right--xx-small" title="Opportunity Team">
                                    Opportunity Team
                                </span>
                            </a>
                        </h2>
                    </div>
                    
                    <div class="slds-p-around_medium container lgc-bg">
                        <lightning:buttonMenu alternativeText="Show menu" variant="border-filled">
                            <lightning:menuItem value="MenuItemOne" label="Menu Item One" />
                            <lightning:menuItem value="MenuItemTwo" label="Menu Item Two" />
                            <lightning:menuItem value="MenuItemThree" label="Menu Item Three" />
                            <lightning:menuItem value="MenuItemFour" label="Menu Item Four" />
                        </lightning:buttonMenu>
                    </div>
                    
                </header>
            </div>
        </article>
    </div>
</aura:component>
Any thoughts gratefully received.
 
Hi,

I have a user requirement to add a warning message to the standard Lightning Case UI which displays an 'Are you sure?' type message if the user is updating the status to Closed & a custom field, frequency__c, is not One-Off.  It should work in a similar fashion to the warning that appears in Lightning when deleting a client e.g. user given 2 options; one that continues with the operation & the second cancels it.

Any thoughts on how to achieve this? Thanks
Hi,

I've been tasked with creating a custom version of the Opportunity Team component that users currently see in the side panel.  Most of my development is fine but I am struggling to correctly position the button menu that appears when the dropdown arrow is clicked.

Salesforce working version :-
Salesforce standard button menuMy version :-
User-added image
As you can see on my version the menu items appear beneath & to the right of the dropdown (which means half the text is missing as the dropdown appears on the righthand side of the page) whereas the Salesforce version appears to the left & can also appear above the dropdown if there is not enough room on the browser beneath the dropdown.

Cutdown version of the aura component which demonstrates the problem when added to the righthand sidepanel of an opportunity page:-
<aura:component implements="force:hasRecordId,flexipage:availableForAllPageTypes" access="global">
	<div class="container forceRelatedListSingleContainer" data-aura-class="forceRelatedListSingleContainer">
        <article class="slds-card slds-card_boundary headerBottomBorder forceRelatedListCardDesktop" data-aura-class="forceRelatedListCardDesktop">
            <div class="slds-grid slds-page-header forceRelatedListCardHeader" data-aura-class="forceRelatedListCardHeader">
                <header class="slds-media slds-media--center slds-has-flexi-truncate" >
                    <div class="slds-media__figure stencil slds-avatar slds-avatar_small" aria-hidden="true">
                        <div class="extraSmall forceEntityIcon" style="background-color: #FCB95B" data-aura-class="forceEntityIcon">
                            <span class="uiImage" data-aura-class="uiImage">
                                <img src="/img/icon/t4v35/standard/team_member_120.png" class="icon " alt="Opportunity Team" title="Opportunity Team"/>
                            </span>
                        </div>
                    </div>
                    <div class="slds-media__body">
                        <h2 class="slds-card__header-title">
                            <a class="slds-card__header-link baseCard__header-title-container">
                                <span class="slds-truncate slds-m-right--xx-small" title="Opportunity Team">
                                    Opportunity Team
                                </span>
                            </a>
                        </h2>
                    </div>
                    
                    <div class="slds-p-around_medium container lgc-bg">
                        <lightning:buttonMenu alternativeText="Show menu" variant="border-filled">
                            <lightning:menuItem value="MenuItemOne" label="Menu Item One" />
                            <lightning:menuItem value="MenuItemTwo" label="Menu Item Two" />
                            <lightning:menuItem value="MenuItemThree" label="Menu Item Three" />
                            <lightning:menuItem value="MenuItemFour" label="Menu Item Four" />
                        </lightning:buttonMenu>
                    </div>
                    
                </header>
            </div>
        </article>
    </div>
</aura:component>
Any thoughts gratefully received.
 
Hi Team,

We are trying to do apexsharing in triggers and webservices for Account Object.We can able to set sharing ID(userId or group Id),but if we set Rowcause is apart from manual its throughing error.
We are getting ​ this exception : CheckRowcause: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: RowCause (cannot insert sharing row with this cause): [RowCause]: Trigger.CheckRowcause: line 14, column 1 .

I have gone through lot of salesforce use cases docuements for this issue. I am properly using my sharing model and also I am using the latest API version i.e 35.0.

Kindly suggest the solution for the same.

Thanks 
Arun.R

 
  • February 09, 2016
  • Like
  • 0