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

Sharing button is not visible in lightning in case object

$
0
0

I have installed a component called Lightning sharing to make sharing button visible for all objects in lightning. But the sharing button in not visible on case object. But it is visible in contact ,account object and in custom objects.I followed the steps as mentioned in the link below.

https://www.forcetalks.com/blog/the-sharing-button-is-not-available-in-the-salesforce-lightning-experience-ui-heres-a-solution-for-this/

Kindly help me out how to make the sharing button visible for case object.


SF Agile Accelerator LEX

$
0
0

Has anyone ever experienced the dragging of tasks or work in the Work Manager becoming disabled?

Adding custom functions to Lead "control bar" drop down list

$
0
0

Apologies if the question title is vague, I'm unsure what the correct name for this particular object/control is. I've attached an image to demonstrate more clearly.

Drop Down List

The "Send SMS" is a custom function included in a managed package which was configured for us previously - I'm looking to add other functions (some would be newly built custom ones) to this drop down list on the "Lead" object. Where can this be configured?

Is the Potential Duplicate Standard Component also for Custom Objects on the roadmap?

$
0
0

I found that there is an Potential Duplicate Lightning Component (Standard) available for Lead, Accounts and Contacts. The components has also a merge process build in. This is very nice and important for Data Quality. However this component is not available for any Custom Objects or other standard objects. The process and the logic behind this should be very similar for any objects.

The components is the second in the right panel - the one with the yellow icon and the bold text.

enter image description here

Here is the documentation on that feature: https://help.salesforce.com/articleView?id=duplicates_existing_setup.htm&type=5

We have already created a custom lightning component for any objects (pink icon with the bell), but it is still buggy and the merge process is incomplete. Especially the merge is a lot of work and I found a strange behavior on DuplicateRecordItem (this is elaborated in this question here)

I want to plan ahead and avoid wasting time to create things which will eventually become available as standard.

So I would like to know if there is an update for this components on the roadmap which will be usable in the same manner, but for all objects - standard as well as custom? Any hint under Safeharbor is highly appreciated.

Copy to the Clipboard in Lightning Component

$
0
0

I'm creating Lightning Component that displays Classic version of the Current URL record page with a button that onclick copy to the clipboard that URL.

Just a simple functionality that saves time for Lightning Users, when they need to send a URL of the record to non-Lightning users.

Cmp:

<lightning:button class="slds-align_right slds-button slds-button_neutral" iconName="utility:copy_to_clipboard" variant="border-filled" label="Copy" onclick="{! c.copyClassic }"/>
<textarea readonly="true" id="urlClassic">https://name.my.salesforce.com/{!v.recordId}</textarea>

Controller:

({
   copyClassic : function(cmp, event){
     var urlClassic = document.getElementById('urlClassic');
     urlClassic.select();
     document.queryCommandSupported('copy');
     document.execCommand('copy');
     //urlClassic.remove();

     var source = event.getSource();
     source.set('v.label', 'COPIED!');
     setTimeout(function(){
      source.set('v.label', 'Copy');
     }, 2000);
} })

It is working on first time when I open record and clicked the button. It selecting the url and copy to the clipboard. But if I open a new record in the same window, Textarea displays new URL and button changed to 'COPIED!' but the URL is not selected and not copied.

I assume it may have something to do with the fact that Lightning Component is SPA and when I open new record in the same window it's not refreshing the page.

It's working when I add remove() method but then if user would like to copy URL again (while still on the same page) will have to refresh the page to perform the same action.

Does anyone has similar issue or idea to solve this problem?

How to quickly switch between Classic and Lightning experience?

$
0
0

As not all of my users have adopted lightning UI, as admin, I need to switch back and forth from the two UI's in order to understand, and help solve issues.

What is the fastest/easiest way to do it?

e.g.:

  • User X notifies me he does not see a field on the Lightning UI
  • At the same time I assist someone else on classic UI
  • I want to see what user X talks about, without login as him or web-conf him.

Some quick sneak peak, and back to classic (or vice versa)

How to add fields to "New Event" under "Activity" tab in Lightning?

$
0
0

I am trying to add custom fields to the "New Event" layout under "Activities" on Opportunity:

enter image description here

However, it appears this component is a static, non-customizable component because when I click on it in Builder, I only see this:

enter image description here

One forum post suggested that one cannot customize this component and therefore cannot add custom fields.

Another post suggests it is possible by editing the Global Action Layout, but this only changed the Global Action for Classic UI.

How can I make available a custom "New Event" layout in Lightning Experience under the "New Event" tab?

Open a lightning component using URL button to open in new tab

$
0
0

Can we open a lightning component using URL button to open in new tab? If yes, can you kindly let me know what URL to use for that and how to pass parameters?

We have tried using quick action, but the modal dialog flashes once before the new tab opens. Is there anyway to solve this ? We wanted to use quick action , instead of the the custom URL Button.


Lightning Usage/Adoption Reports and Metrics (e.g. most viewed pages, switches to Classic, etc.)

$
0
0

Salesforce's native "Lightning Usage App" app (Summer '18) includes several reports with metrics around page views, load times, mobile activity, etc.

I find the "Most Viewed Pages" usage report below interesting, and would like to build some customization around this data. Does anyone know which metadata type this data is based off, and if it's accessible to us clients?

enter image description here

I'm familiar with the VisualforceAccessMetrics object, but this report seems to encompass ALL screens that a user might view, not just VF pages.

Why LEX is sometimes rendering -elements (shadow DOMs) on same flexipage for one user but not for the other user?

$
0
0

The core question is reduced and skipping the "Why do I ask this and what do I want to achieve?". Read the "Background notes" at the end, if you want to know the ugly truth...

Core question

Why LEX (Lightning Experience) is generating the markup differently for different users when it renders the very same flexipage? Sometimes it is using lots of <slot>-elements with Shadow DOMs and sometime it is creating an old style <div>-structure. The following screenshots were made from the very same flexipage on the same org and same app shot with different users (having the very same profile):

CASE old <div> style

enter image description here

CASE new <slot> style

enter image description here

Is there any way on how I can control which user get which HTML-style rendered by Salesforce? If yes: how and where can I control it?

Background notes (not relevant for the core question)

I'm not using LWCs. This is a general question. The reason why I'm asking this is because I need to get the exact height of the so called "Highlights Panel" which is a standard Salesforce component available in the designer for record pages. I need the height to implement a "Sticky Header" feature for tables we are developing as aura components. We got that using aura components without Locker Service, just to determine the damn height... The height is not constant. No way to hardcode it. It depends on the scroll-position of the page (it's shrinking and growing) and if a user has selected "Comfy" or "Compact" mode, and maybe other things, too... now our code is working only if we get the HTML served in the old style without the <slot>-elements. The reason is very clear to me: the shadow DOM is blocking my queries to determine the exact height...

And yes, I know: this is something what shouldn't be done in the first place... but still I'm curious ;-)

Closing popped out utility bar from cross button

$
0
0

I have a utility bar which is having features to search for articles. I am using it to pop out from the bar to and independent utility window, when I use the pop-in button to take it back into the utility bar then everything working fine. The issue here is: When I use the cross button to close the utility window then it is not getting back to utility bar and it's not in working state.

Here is the GIF, showing the issue. http://g.recordit.co/Sq6qvMGqci.gif

wrapper class using datatable in visual force page [on hold]

$
0
0

I have relationship between account and order and i have record in account under order in order i have formula field which generated month based on date

the task is: i want to display the record of account name,and all the month record like jan feb march

10 2 5

like this in table formate.

I have a requirement to implement Duplicity check for Case object in lightning experience

$
0
0

I have a requirement to implement Duplicity check for Case object, Users should be able to create but before creation, the system to give a warning message that he/she is creating a duplicate case. In-case a duplicate case is created even after the warning, it will be assigned to the owner of the previous open case. in-case of auto-creation, the warning will not be present. the duplicate case will be assigned to the owner of the previous open case. Since it's a lightning interface, the mobile interface should also have this. Is it possible in Standard or I have to go with customization, What would be the customization approach, please suggest?

Salesforce Lightning Tab URL not working

$
0
0

I am working on an assignment where the phone number of a contact will be passed via the URL. I have developed a lightning tab, associated with a Lightning component with the corresponding js controller, helper and apex controller and the functionality is working fine from the development sandbox where I have developed. Now, I deployed the components to the QA sandbox and when I try the QA URL (exactly in the same format as the DEV URL), I am getting a "Page doesn't exist" error. A screenshot is given below.

Lightning tab URL Issue

The DEV URL is below. https://dtc--dtcDEV.lightning.force.com/one/one.app#/n/RPCMemberSearch?phoneNumber=6232241123

The QA URL is below. https://dtc--dtcQA.lightning.force.com/one/one.app#/n/RPCMemberSearch?phoneNumber=6232241123

RPCMemberSearch is the lightning tab associated with the lightning component RPCMemberSearch.cmp. The DEV URL parses the phone number, queries salesforce, and lists the contacts if there are multiple contacts. If there is a single contact, the contact page will be displayed. If there are no contacts associated with the supplied phone number, a message will be displayed accordingly and "Goto Home" button will be available. All this works fine in DEV, but not in QA. Can some one help? I am not sure if this is related to Summer 18 release that was pushed by Salesforce over the weekend.

FYI, I have not developed a separate app for this.

how to get the selected record from list view

$
0
0

I'm using lightning component, and lightning:listView. I wanna get the selected reocrd from lightning:listView when I select the record like below img.

Successfully I got the selected record Id by using formula hyperlink, but it occures page reload, and I don't wanna reload the page.

Anyone knows how to get the selected record when select in lightning:listView?

enter image description here


Add searchable fields to Global Search Suggestions

$
0
0

The global search bar on can give suggestions based on Name. For example, entering 'James' will suggest the below:

enter image description here

'James Bonello''s phone number is 79521075.

I would like to know if it is possible to get the same above suggestion just by entering the phone number or any other custom field. As it stands, if I enter '79521075' in the global search, I will only get the below:

enter image description here

Thanks!

Salesforce: Drag & Drop not working in lightning web components or drop events are not triggering

$
0
0

I have a Lightning web component to drag one div into other dropzones (div). But the ondrop & ondragover events are not firing.

Here is my code

<template>

    <div class="draggable" draggable="true" ondragstart={dragged} ondragend={enddragged}>
        drag  item 1

    </div>

    <div  ondrop={dropped} class="droppable" ondragover={allowDrop}  >

        </div>
    <div  ondrop={dropped} class="droppable" ondragover={allowDrop}>

        </div>
    <div  ondrop={dropped} class="droppable" ondragover={allowDrop}  >

        </div>
    <div ondrop={dropped} class="droppable" ondragover={allowDrop} ondragenter={dragEnter} onmouseover={onhover}>

        </div>

and the js controller:

import { LightningElement } from 'lwc';

export default class LwcTestDragANDDrop extends LightningElement {

    constructor() {
        super();
        //register dragover event to the template
        //this.template.addEventListener('dragover', this.allowDrop.bind(this));
        console.log('constructor');
    }


    allowDrop(ev) {
        console.log('over drag ');
        ev.preventDefault();
    }

    dropped(ev) {                  
        console.log('on drop ');

        ev.preventDefault();
        /*let data = ev.dataTransfer.getData("text");
        console.log('strt drag ');*/
    }

    dragged(ev) {
        console.log('dragg start ');
        ev.dataTransfer.setData("Text", 'ev.target.id');
    }

    enddragged(ev) {
        console.log('dragg end ');
    }

    dragEnter(event) {
        console.log(12);
        event.target.style.border = "3px dotted red";
    }

    onhover(){
        console.log('on hover');
    }
}

And the rendered UI: enter image description here

I wanted to drag the drag Item 1 to any of the below boxes.

The events ondrop={dropped} ondragover={allowDrop} are not firing. I have a requirement to use Firefox browser. Its working in Google chrome.

In raw JavaScript, the drag & drop is working. The only difference in LWC is the way of event binding

Am I missing anything? or not a proper HTML structure? how can I make it workable?

Redirect to record page after toast event is fired LWC

$
0
0

I have this below code where i am updating a record. After updating i am calling closemodal() function, which will close the modal and navigate to the detail page.

The issue which i am facing is after update happens it is redirecting to detail page but i am unable to see the toast message.

How can i redirect to detail page after toast message.

import {ShowToastEvent} from 'lightning/platformShowToastEvent';
          updateRecord(recordInput)
                    .then(result => {
                        this.message = result;
                        this.dispatchEvent(
                            new ShowToastEvent({
                                title: 'Success',
                                message: 'Request Detail updated',
                                variant: 'success'
                            })
                        );
                        // Display fresh data in the form
                        return refreshApex(this.wiredResults);
                    })
    this.closeModal()

close modal

closeModal() {
    this.openmodel = false;
    this[NavigationMixin.Navigate]({
        type: 'standard__recordPage',
        attributes: {
            recordId: this.recordId,
            objectApiName: 'Test__C',
            actionName: 'view'
        },
    });
}

Need to remove the Notifications from the notifications list in the Salesfoce Lightning

$
0
0

Need to remove the Notifications from the notifications list in the Salesfoce Lightning once users Acknowledge it.

How to get selected records from list view

$
0
0

I'm using a Lightning Aura component and lightning:listView. I wanna get the selected record from lightning:listView when I select the record like below img.

Successfully I get the selected record Id by using formula hyperlink, but it occurs page reload, and I don't wanna reload the page. And it should be clicked two times(double clicks).. so I wanna know how to choose a record by only one click.

Anyone knows how to get the selected record when select in lightning:listView?

enter image description here

Viewing all 3014 articles
Browse latest View live


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