Questions tagged [promises]
A Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value.
17
questions with no upvoted or accepted answers
4
votes
0
answers
592
views
How run logic after NavigationMixin.Navigate completes
This code works great.
this[NavigationMixin.Navigate]({
type: 'standard__objectPage',
attributes: {
objectApiName: this.selectedObject,
...
1
vote
0
answers
110
views
Handling Complete Error Messages in JSForce Promises for Salesforce Apex REST Calls
In a Salesforce instance we have a web service to be consumed by an external service. Considering the resource that the ws will consume, it has been designed in such a way that for each request ...
1
vote
1
answer
109
views
Server Lightning calls using promises
EDIT:
I could not figured out how my code is different from the link you provided and the blog, is that possible to pinpoint what/where i'm doing wrong?
I'm trying to wrap my head around with promises ...
1
vote
1
answer
199
views
Reading a file from salesforce aura helper recursion problem
I'm trying to read a file in an async way on aura helper, but recursion is not happening, is just executed once. The code is pretty simple and tried a lot of approaches but no one work.
I try with ...
1
vote
0
answers
261
views
jsforce Apex REST call fails in IE11 only. ES6 Promise support issue?
I am calling a custom Apex REST endpoint from JS in a custom VF component within a VF page using the jsforce library, and everything works as expected in Edge, Chrome, Firefox, but not IE11. It seems ...
0
votes
0
answers
11
views
NaviagtionMixin within Child Component or Lightning Modal Links to JavaScript Void
When using a lighting modal or child component using NavigationMixin and lightning navigation, GenerateUrl does not work it seems. The result in the promise returns null. Example test code I used ...
0
votes
1
answer
68
views
lightning-spinner does not show up when a js function is working
Here is my code
// Need to use the result from Promise but it is coming false
const validateCompleted = await this.validateData(data);
if(validateCompleted){
...
}
// When validating data, I want ...
0
votes
1
answer
56
views
Request/Response using LMS in LWC
I need a setup in which Component A initiates a data request to Component B through LMS (Publish). Component B, upon subscription to the request, will execute certain logic and subsequently publish ...
0
votes
0
answers
1k
views
PromiseResolve called on non-object LWC
Hello guys I have being working on a LWC custom form that gathers information. This component has various accordion section and child components. there are sections that contains lightning comboboxes ...
0
votes
0
answers
245
views
Add Parameter to Aura Components Apex Controller
I am relatively new to aura components and am having trouble understanding the interconnectivity between files when using parameters in functions. I added the "enrollmentId" parameter along ...
0
votes
2
answers
542
views
Issue with returning a URL from wire method in LWC
In the below method, the getApprovalOrders returns the appURL which then calls this.handleLoad(obj.Id); to get the approval request Id to return the URL ${baseURL}/detail/${this.approvalId}. The issue ...
0
votes
0
answers
528
views
Aura component: Mutiple $A.enqueueAction takes long time
I'm testing a component where I upload a file, convert to base64 and split into several CHUNK Parts send each one to an apex method.
This component seems quite common online. Like:
https://sfdcmonkey....
0
votes
0
answers
510
views
lightning spinner not working
I'm using a spinner to indicate there is something loading. I added this in the template:
<div if:true={pendingAction}>
<lightning-spinner alternative-text="Loading"></...
0
votes
0
answers
470
views
LWC Community Navigation and api property with promise
I have a community with two pages, Page1 and Page2. Standard flow is Page1 -> Page2.
When loading Page2 directly I can use it with no issues, the problem comes up when I use Page2 coming from Page1....
0
votes
0
answers
1k
views
LWC Feature erring with `Received exception event aura:systemError from server`
I randomly began having a strange error appear that I'm having trouble debugging, all it tells me is: Received exception event aura:systemError from server
What I have is a "Reports" LWC ...
0
votes
0
answers
2k
views
Using promises with aura component callbacks
I noticed there a number of questions listed regarding this topic but I don't have the time to parse through all of them and look for the relevant information. I was hoping someone could quickly ...
0
votes
0
answers
171
views
Component behaves differently in community vs internal
I have a component that displays a modal form using create component and
a modal promise. In the community, it works as intended, where something occurs that fires the event that creates the ...