Skip to main content

Posts

Featured

Sneaky smart Quick Action to open record create, edit or like pages/panels for an object

This gives you great control over the standard lightning record actions like create and edit.

One of the best use cases for this can be, when you have done override of the standard action and still you want the Standard Lighting Panel for create, edit or so, for specific profiles or like, this will be a great option.

The idea is to trigger record page/panel events like e.force:createRecord through quick action and close the quick action immediately.



Component:

<aura:component implements="force:lightningQuickActionWithoutHeader,force:hasRecordId" >
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
</aura:component>

Client side Component controller:

({
    doInit : function(component, event, helper) {
        window.setTimeout(
            $A.getCallback(function() {
                $A.get("e.force:createRecord").setParams({
                    "entityApiName": "Contact"
                }).fi…

Latest posts

Workaround for custom width, header and footer of Lightning Quick Action

Ant Migration Tool - Installation & Usage

Kanban drag and drop Lightning Component - reusable

Handling Custom Events in the Lightning Component Framework - Full & Working Code

Salesforce Lightining Design System Checkbox Toggle - AngularJS

Dynamic object handling

A workaround for accessing Javascript values from Apex

JavaScript <-> apex (Using @RemoteAction and Using apex:actionFunction)

Search Drop down with sections and section headers

Custom toggle switch with pure HTML, CSS and JQuery with smooth transition 2