New answers tagged

3

The equality operator is == i.e. you need UAIHistory.size() == 0. Do format your code to help you and others read your code more easily: public static void setAppData(String userId){ UserAppInfo uai = [ select UserId, AppDefinitionId, FormFactor, LastModifiedDate from UserAppInfo where UserId = :userId ]; List<...


1

We faced this issue. You need to disable some js rules, like this one, as this is not built for Aura framework.


1

I don't know a way of doing that with force:showToast, you can obtain a similar result using the lightning:overlayLibrary or creating a custom toast copying the SLDS toast blueprint.


1

You can scatter System.debug(Limits.getHeapSize()) calls in your code to see what the platform's count is. Remember the heap could end up holding both the text form of the message and the parsed version of the message so likely at least x2 the message size. And you may have pulled other data onto the heap. As I understand it, the limits are not always ...


2

Your code produces the following warning in Chrome: WARNING: Methods are not available until the component is rendered logWarning@aura_proddebug.js51519 You have to wait until rendering is complete. Try: ({ doInit: function (component, event, helper) { setTimeout( $A.getCallback(() => component.find("taxCalculator").computeTax()) ...


0

As another option, you could create a screen Flow and put your aura component there. Then, use the URL of the flow as a URL button. You'll want to add the lightning:availableForFlowScreens interface and handle ending the flow using availableActions attribute lists. To get the selected records, there's a couple documents noting the ability to create a ...


1

You can't, you still have to use a Visualforce page with standard list controller and pass the records to the aura component using lightning out, as explained in Custom List view buttons in the lightning environment - this feature request is on the roadmap, but I don't know when it will be delivered. Here you have a sample implementation of how to do it.


0

If you only want to control the finish behaviour of a flow, maybe calling it from its URL and setting the "retURL" parameter could help you "/flow/flowName?retURL=url" You can put this URL in a button if this suits your goal so the user can call it. https://help.salesforce.com/articleView?id=flow_distribute_internal_url_retURL.htm&...


1

I would recommend to build the quick action using force:lightningQuickActionWithoutHeader. If you want to stick to the force:lightningQuickAction you can try to add the following code as pointed out in this idea: https://trailblazer.salesforce.com/ideaView?id=0873A0000003Sq6QAE: ({ afterRender: function (component, helper) { this.superAfterRender(); ...


Top 50 recent answers are included