Dev

Dev brings you the power of programming and App Development with classic code snippets.

How to fire Lightning Event from Visualforce Page

How to fire Lightning Event from Visualforce Page

In this blog, we will learn how to fire lightning event from visualforce page. We will be using apex:includeLightning and aura:dependency tags. Let us know about these tags in brief. Tag Reference A brief information about tags. 1) apex:includeLightning : It includes lightning components for Visualforce JavaScript library, lightning.out.js, according to the domain mapping. Attributes- […]

Read More

Action Function In VisualForce Page.

Action Function In VisualForce Page.

In this blog we will learn about <apex:actionFunction> tag. This tag is used to invoke Apex action by using JavaScript asynchronously via AJAX requests. JavaScript is Dynamic scripting language which perform action on client side. By use of this language we can reduce traffic on  web server.  <apex:actionFunction> and <apex:actionSupport> are two components which we […]

Read More

Exception Handling In Lightning Component

Exception Handling In Lightning Component

In this blog we will learn about Exception Handling In Lightning Component. What is Exception and Exception Handling? Exception is an event which occur during execution of  program instruction and disrupts the normal flow of program instructions. Exception handling is a mechanism to handle exception so that normal flow of program should be maintained. Steps to perform […]

Read More

Mass Delete In Lightning Component

Mass Delete In Lightning Component

In this blog we will learn how to delete selected record on button click in Salesforce Lightning Component. Steps: Steps to add the custom button and perform Mass Delete of selected record. Step 1:   Create a lightning component and add following code. aura:component implements=”force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes” access=”global” controller=”accListClass” > <aura:attribute name=”account” type=”List”></aura:attribute> <aura:handler name=”init” value=”{!this}” action=”{!c.accountList}”></aura:handler> […]

Read More

Add Custom Row Action In Admin Controller Prestashop

When we create any admin controller in prestashop there we can have three only defined row action “View“, “Edit” and “Delete“. These row action can easily be create if we write $this->addRowAction(‘view’), $this->addRowAction(‘edit’), $this->addRowAction(‘delete’) because for this prestashop has already code for us. But what If you need to add some row action then ??? […]

Read More
css.php