Quantcast
Channel: Active questions tagged lightning-experience - Salesforce Stack Exchange
Viewing all 2967 articles
Browse latest View live

is there a lightning experience version of the send email page?

$
0
0

We have some url link buttons on a few pages that go to the Send Email page in classic that loads an email template, allows for editing, and then sends. This is all OOTB functionality (other than the url button). We are converting to lightning and converting these buttons to quick actions. Is there a lightning version of the Send Email page? I was unable to find one or anything about it.

Question 2: I started recreating the send email page in lihgtning on my own but the problem is that the template being pulled in has merge fields and the custom component just displays the merge field text in the rich text editor because the text doesnt match the lightning web component syntax for data access. Has anyone done this?

Send Email Page


Selenium testing the Lightning Experience

$
0
0

I'm new to SalesForce and trying to use Selenium to test a page. When I check the "innerHTML" of a certain div (as selenium sees it), I see the following:

<div class="test-id" data-aura-rendered-by="34:1617;a">
  <span class="test-id__field-label slds-form-element__label" data-aura-rendered-by="35:1617;a">Preferred Name</span>
</div>
<div class="slds-form-element__control slds-grid itemBody" data-aura-rendered-by="37:1617;a">
    <span class="test-id__field-value slds-form-element__static slds-grow" data-aura-rendered-by="38:1617;a">
       <span data-aura-rendered-by="30:1617;a" class="uiOutputText" data-aura-class="uiOutputText"></span>
    </span>
    <!--render facet: 40:1617;a-->
    <!--render facet: 41:1617;a-->
</div>

My problem is that there's actually a button inside the "render facet" areas. Below is what I see in the Chrome Developer view (I want to get at the button).

<div class="test-id" data-aura-rendered-by="34:1617;a">
  <span class="test-id__field-label slds-form-element__label" data-aura-rendered-by="35:1617;a">Preferred Name</span>
</div>
<div class="slds-form-element__control slds-grid itemBody" data-aura-rendered-by="37:1617;a">
    <span class="test-id__field-value slds-form-element__static slds-grow" data-aura-rendered-by="38:1617;a">
       <span data-aura-rendered-by="30:1617;a" class="uiOutputText" data-aura-class="uiOutputText"></span>
    </span>
    <!--render facet: 40:1617;a-->
    <button class="slds-button test-id__inline-edit-trigger slds-button_icon slds-button_icon-small slds-shrink-none inline-edit-trigger slds-button--icon-container" type="button" title="Edit Preferred Name" data-aura-rendered-by="3404:0">
        <span data-aura-rendered-by="3407:0">
            <svg class="slds-button__icon " focusable="false" data-key="edit" aria-hidden="true">
                <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/_slds/icons/v7.18.0/utility-sprite/svg/symbols.svg#edit"></use>
            </svg>
        </span>
        <!--render facet: 3408:0-->
    </button>
    <!--render facet: 41:1617;a-->
</div>

How can I make Selenium see that button? I've tried a lot of things (that I can state here if necessary) but I think this shows what my problem is. Thanks for any help.

Stop SF Lightning from trying to open up Set Up Content in a new tab

$
0
0

When I am in Set Up and attempt to open something, like User Profiles for example, I always get this modal that asks We'd like to open the Salesforce page ... in a new tab and then when you allow it, it opens up the view in a new tab where no JS works, causing the page to be useless.

Is there a way to fix this issue? It seems to only happen in Safari, but its a pretty ridiculous issue to even exist.

Visualforce lookup field with apex:inputField in LEX?

$
0
0

Simple story: As a sales user, I want to mass assign leads to a teammate, so I can better distribute our total workload. The constraint is that I need to do this in Lightning Experience, in which the standard Change Owner button doesn't work.

Trailhead and the Winter '17 Release Notes both imply that to create a mass action that operates on a standard list view, Visualforce is the only option.

For the simple UX implied in the screenshot below, what is the easiest way for me to create a clean lookup field that fits the look and feel of LEX?

New Owner field and Assign button

The only way I know to have Salesforce generate a lookup field is to use the apex:inputField tag and bind it to an SObject field such as Lead.OwnerId.

But when I tried to combine apex:inputField with SLDS markup, the result was pretty ugly. Code and screenshot below.

<apex:form styleClass="slds-form--inline">
          <div class="slds-form-element">
            <div class="slds-form-element__control">
              <apex:inputField id="owner" styleClass="slds-input"
                               value="{!anyLead.OwnerId}" />
            </div>
          </div>
          <div class="slds-form-element">
            <button class="slds-button slds-button--brand"
                    type="button">Assign</button>
          </div>
        </apex:form>

New Owner field rendered from apex:inputField

unable to view option to create tasks and events in Case record page in Lightning

$
0
0

I am unable to get to show New Tasks and New Events in Activity component in lightning. I am able to show them on the Account Layout but when it comes to Cases it doesnt .

An thoughts on what could be the reason.

Activity on Cases Record Page enter image description here

Activity on Account Layout Activity on Account Layout

Dependency check of lightning application

$
0
0

I have to create package.xml for a custom lighting application and then I have to retrieve all metadata which is related to the app. For that I have to understand the dependencies.

How can I check complete dependency (including apex classes, triggers, component bundle, objects..etc.) for a custom lightning apps?

new task not showing on person account page

$
0
0

I saw that there exist the new task action (standard button) that can be added to an account page. Actually i'm using person account.

I want the new task button to show on my person account page. I added it onto my layout, but is not showing up. Same for the business account page. I've read that action will show depend upon the fields that are used on the action layout.

So I created an action (create record), but one too is not showing up. What may be the reason ?

Difference between lightning and ui tags

$
0
0

I've begun to work on lightning component last days ago and I wonder why two different tags exist for the same things. For example, what is the different between lightning:select and ui:inputSelect? All of them are used in lightning apps and more lightning:select already have "lightning style", so why should I use ui:inputSelect instead of lightning:select? Thanks in advance.


Is it possible to show action button in lightning outside of dropdown icon?

$
0
0

Currently buttons are visible within this drop down icon

enter image description here

enter image description here

Is it possible to show these buttons directly like this ?

enter image description here

Updated Values after VF PageReference redirect back to Lightning record page not appearing

$
0
0

I am attempting to emulate a Confirm process that was once handled well by a Javascript button. The idea is to ask for a Confirmation when attempting to deactivate a record.

To do this, I am creating a simple VF page using an controller extension. The PageMessages receive an INFO level confirmation message, and the button will call a method to deactivate and save the record, then redirect back to it:

From the record detail in Lightning Experience, I have a quick action button that references a VF page.

Ultimately the process is working, but when the page redirects back to the original record, the Active switch is still appears as checked, even though one or two hard refreshes show that its actually deactivated in the database. Here is the code

<apex:page standardController="Activity__c" extensions="Deactivate">
<apex:pageMessages />
<apex:form >
    <apex:pageBlock>
        <apex:pageBlockButtons location="top">
            <apex:commandButton action="{!DeActivate}" value="DeActivate Activity" rendered="{!Active = true}"/>
            <apex:commandButton action="{!Cancel}" value="Cancel" />
        </apex:pageBlockButtons>
    </apex:pageBlock>
</apex:form>

public with sharing class DeactivateController{
Public Activity__c pActivity {get; set;}
Public Boolean Active {get; set;}

public Deactivate(ApexPages.StandardController ctr){
    this.pActivity = (Activity__c) ctr.getRecord();
    this.pActivity = [Select id, Active__c from Activity__c Where Id = :this.pActivity.Id];
    Active = this.pActivity.Active__c;
    confirm();
}

private void confirm(){
    if (Active){
        ApexPages.addMessage(new ApexPages.message(ApexPages.severity.INFO,'Confirm Deactivate?'));
    }
}

public pageReference DeActivate(){
    pActivity.Active__c = False;
    update pActivity;
    PageReference pageRef = new PageReference('/'+pActivity.Id);

    pageRef.setRedirect(true);
    return pageRef;

}
}

I've also tried new PageReference('/one/one.app#/sObject/'+pActivityId+'/view'); as well as the full URL with https In all cases, the Record page returns, but Active still appears checked, even though it isn't in the database. If I refresh the page a couple of times, it finally comes up correct.

Capturing HttpResponse StatusCodes

$
0
0

I'm trying to capture a HttpResponseStatusCode in a @future method so I can then send it to an email to alert a dev of a possible issue and also alert the Salesfroce user of the error. I have found post on how to handle REST errors but not HttpResponse StatusCode. Is there a best practice or are they interchangeable?

Save Template disabled when sending email in Lightning

$
0
0

When I try to send an email, I want to be able that after a proof-read, I do want to save the existing template, not as a new version.

enter image description here

Even if I am an administrator I can't save the template. Is there any configuation that I am missing?

Salesforce lightning - switch on in January

$
0
0

I asked my colleagues on the admin team if we need to prepare for salesforce switching on lightning starting Jan 2020. I thought we might need to switch on in a Sandbox and learn the new navigation, adjust page layouts etc. However their reply was the following: 'all custom objects and processes break when converted to lightening experience'

I was not aware that turning on Lightning would break so many things - can someone help me confirm if custom objects all break when switching over from classic?

"Reply to and Forward Emails Right from Salesforce"

VF page is opening as modal in Salesforce lightning experience on an action button click

$
0
0

VF page is opening as modal in Salesforce lightning experience on an action button click. When I look at the generated code,my code is there in an iframe which the salesforce generated modal contains.

I need to perform the same operation on the cancel button(which is on my vf page) as of the cross icon (of the generated modal). I tried getting the modal element by class name and calling the same click event on cancel button,which is getting called on cross icon.

The problem here is, I am not able to access any element outside the iframe. It throws

'Blocked a frame with origin "https://c.na34.visual.force.com" from accessing a cross-origin frame.'

error. window.parent does not help either. Please provide suggestion to solve this.

Thanks in advance.


Open LWC as a full page without salesforce header

$
0
0

I have a button on Lightning Record page. On click i am redirecting to a LWC. Is there anyway where i can redirect or open the LWC in a full screen page. As of now it is opening with salesforce main header.

Is it possible to call the screen flow from auto launched flow or process builder? [closed]

$
0
0

I want to pass the record Id from the process builder to screen flow please help me

Lighting Component Communication through Event [closed]

$
0
0

Can we communicate between Sibling Component using Event in Lighting Component?

Need To Hide Help and Training Option/icon in Lightning for Specific Profile

$
0
0

enter image description here

Need to hide Help & Training Option/Icon in lightning for specific Profile.please find the attached screenshot for better understanding.

Inconsistent Scrolling Behaviour in Lightning Quick Actions

$
0
0

I have a lightning component I want to embed in a quick action. The component has content which might vary in size, which means I cannot predict what height my quick action needs.

As a simple example, here's my component which has content which is larger than the quick action box:

<aura:component implements="force:lightningQuickAction">
    <aura:iteration items="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15" var="item">
        <h1>{!item}</h1><br />
    </aura:iteration>
</aura:component>

This results in the content of the component spilling out of the bottom of the docked modal, without a scrollbar to access it

Overrunning content

However, if I expand the action by clicking the middle button at the top right, then it shows all my content

Expanded

And if the window is too small then it gets a scrollbar

Scrolling

To work around this, I can add a ui:scrollerWrapper with a hardcoded height to enable scrolling in the docked mode, but this results in double scrollbars depending on the viewport size and what size the scrollerWrapper is set to (in both Lightning Experience and Mobile):

Double Scroll Bars

To make this work better I can use css in a static resource to peek out into the Salesforce DOM to adjust my UI's behaviour, :

.forceDockingPanel.DOCKED .scrollerSize {
    height: 400px;
}

.forceDockingPanel.MAXIMIZED .scrollerSize {
    height: 100%;
}

<aura:component description="bigQuickAction" implements="force:lightningQuickAction">
    <ltng:require styles="{!$Resource.cssScroller}" />
    <ui:scrollerWrapper class="scrollerSize">
        <aura:iteration items="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15" var="item">
            <h1>{!item}</h1><br />
        </aura:iteration>
    </ui:scrollerWrapper>
</aura:component>

But this seems hacky as it's based on undocumented Salesforce components which might change. Is there a proper way to make the quick action respond to the size of its container correctly?

I also tried to use the utility bar APIs, but as you'd expect they don't appear to function outside of the utility bar.

Viewing all 2967 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>