29
votes
Set width of modal window of lightning action
There seems to be some confusion around this question. The question asks specifically how to increase modal width when the modal is opened by a lightning action button.
Some answers will work when ...
17
votes
Accepted
Lightning New Case action override
There is a solution that does indeed work, but it's a bit fragile because it's parsing the entire URL (assuming a structure that could change): https://developer.salesforce.com/forums/?id=...
14
votes
Accepted
How to call a standard controller action of a VF page from a VF component
This should be doable by passing an argument of type ApexPages.Action to the component
<apex:page standardController="Account">
<apex:form>
<apex:pageBlock title="My Content" mode="...
13
votes
Accepted
How to pass parameters for Lightning component called via quick a action
I resolved the issue with adding an attribute to the component and, set the account Id to the new attribute as follows and referred it back in the doInitit() helper method.
New Attribute in component
...
12
votes
How invocable method and bulk behavior in Process Builder work?
You can also create an @InvocableMethod that takes in a List of a custom class. By doing this, you can pass in parameters in the Process Builder
public with sharing class ActionForProcessBuilder {
...
11
votes
Accepted
lightning:datatable actions menu is hidden
As it turns out the overflow properties had to be set to visible not just on the slds-scrollable_y class but also on the slds-scrollable_x class.
Problem solved.
11
votes
Accepted
How to close Visualforce page opened as Quick Action in Lightning through JavaScript?
I've eventually found a solution. The following script has to be included:
<script type='text/javascript' src='/canvas/sdk/js/publisher.js'></script>
Then use this line to close the ...
10
votes
Set width of modal window of lightning action
Okay, So I had the same requirement where I needed to increase the pop-up size. So I have gone through various link also this. But none of them seems working for me. I tried to put the css suggested ...
10
votes
Passing parameter in getRowActions
To make sure you have access to class variables, bind this to the function:
{ type: 'action', typeAttributes: { rowActions: this.getRowActions.bind(this) } },
8
votes
Accepted
Can classes be used as types for return values for actions in Lightning Components?
Every property returned should be annotated as @AuraEnabled.
public class Data {
@AuraEnabled
public List<Opportunity> Opportunities { get; set; }
@AuraEnabled
public String ...
8
votes
How to call a standard controller action of a VF page from a VF component
You can pass the standard controller to the component, allowing you to invoke its functions normally:
public class ComponentControllerClass {
public ApexPages.StandardController ...
8
votes
Accepted
Passing record id from quick action to lightning component
You can refer to the documentation here
basically, you have implement the force:hasRecordId attribute:
<aura:component controller="yourControllerifany"
implements="force:hasRecordId">
declare ...
8
votes
Accepted
Dynamic Related List Not Supporting Custom Actions?
You cannot add custom action on the related list.
Review the bellow idea : Allow quick action on related lists
However, you can use a custom button on the related list (Display Type : List Button).
...
7
votes
Accepted
Urban Legend? Must Return PageReference To Rerender
Analysis
Conclusion
You do not need to return a PageReference for rerender to understand when the action has completed. So if you have a method that will never cause a redirect, you can make it void ...
7
votes
Accepted
Action remains in queue in lightning component when launched from timeout function
The behaviour is mentioned in the docs here
Use $A.getCallback() to wrap any code that modifies a component outside the normal rerendering lifecycle, such as in a setTimeout() call.
The $A....
6
votes
How invocable method and bulk behavior in Process Builder work?
The answer for #3 (about parameters as a singleton) is a straight up no:
There can be at most one input parameter and its data type must be one of the following:
A list of a primitive data type or a ...
6
votes
Accepted
how to call another visualforce page from an apex command button
Put the below code in the controller action method that is being called on click of command button
PageReference pr = new PageReference('/apex/yourVFPageName');
pr.getParameters().put('key','value');
...
6
votes
Accepted
How to avoid page reload on standardController standard action (Save)?
try action="{!quickSave}" Standard Controller action
6
votes
Accepted
Possible to call a javascript and action function from click
Yes, you can.
You can use the onclick attribute like below.
<apex:commandButton value="Search" action="{!objectCollection}"
onclick="callJSFunc()"
style="margin-left:10px" reRender="...
6
votes
Accepted
New Task Action missing in Lightning Experience
When viewing the Activity composer related list, you may notice that some activity actions within the lightning experience do not appear on records even though those actions have been added to the ...
5
votes
Process Builder calling Apex: "We can't find an action with the name and action type that you specified."
Here's what I would do...
Locate the Apex Class in the offending org
Go to Develop | Apex Classes | the class
See if the Status says it is active. If not, step 4
Use Developer Console or Setup | ...
5
votes
Lightning New Case action override
As of today, you cannot capture the "parent context" on a lightning component invoked from a related list. We have had a similar situation and found out that it is not possible and ended up creating ...
5
votes
Why are Lightning Actions for Case Object showing in Feed?
This is a expected behaviour from salesforce when feed tracking is enabled for cases or work orders, the page-level action menu on those records contains only custom buttons and supported standard ...
4
votes
Only rerender row in <apex:pageBlockTable> using <apex:actionRegion>
I found a way to rerender the rows while only processing the row you're on. I will try to outline the concept here but a a full description of my solution can be found here:
Visualforce: Dynamically ...
4
votes
How invocable method and bulk behavior in Process Builder work?
I did this just yesterday - so haven't tested it thoroughly.....
But - I passed in the ID from process builder & got it in the method below as a list of IDs
When I ran in 68 records (batch size ...
4
votes
Accepted
How to call controller extesion action from VF component
I found 3 strange reasons why the addMethod wasn't being called. I'd love to hear from anyone that has any ideas on the why, or where I might be wrong.
OnClick attribute
For some reason the onClick ...
4
votes
Accepted
Lightning: Caching Actions Across Components
I'm using a storable action (to get some metadata) that is called from multiple components. I see the behaviour mentioned in the Storable Actions documentation that when multiple requests are made for ...
4
votes
Accepted
How to download a file created by APEX
You would need to set up a download action. Arguably, this is probably most easily done with a download link:
<!-- visualforce -->
<a href="data:application/vnd.adobe.xdp+xml;base64,{!...
4
votes
Accepted
Email action not showing on my lightning layout
Go to setup and search for Deliverability. Set Access Level to All Email
If it is set to System email only, or No access, it will hide the email actions on the pagelayout.
4
votes
Accepted
The response from the backend takes too long
You need to make sure that any actions you're calling are called within the framework lifecycle. This typically means that you need to use $A.getCallback in situations where you're not responding to a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
action × 184visualforce × 43
apex × 36
lightning × 35
lightning-aura-components × 23
visual-workflow × 18
lightning-experience × 13
javascript × 11
lightning-web-components × 10
button × 9
commandbutton × 8
related-list × 7
button-overrides × 7
salesforce1-app × 6
custom-button × 6
process-builder × 5
case × 5
actionfunction × 5
standardcontroller × 5
trigger × 4
visualforce-component × 4
page-layout × 4
lightning-datatable × 4
rerender × 4
quickaction × 4