Questions tagged [aura.js]

A JavaScript framework with a decoupled, event-driven architecture for developing widget-based Rich Internet Applications.

Aura takes advantage of patterns and best practices for developing maintainable applications and gives you greater control over widget-based development. Aura gives you complete control of a widget's life cycle, allowing developers to dynamically start, stop, reload and clean-up parts of their application as needed.

The project is hosted at https://github.com/aurajs.

32 questions
0
votes
1 answer

I was trying to navigate a page from aura components but got error like this

code to get pagereference from parent component: var pageReference = component.get("v.pageReference"); console.log('getpropertyDetails pageReference'+JSON.stringify(pageReference));
0
votes
1 answer

Update Information Using DML in Aura

I've been training Lightning Components by myself and I'm creating a modal that shows the user a video. The user has the option to tick a checkbox which prevents the modal to show up again. My question is: how can I change the value from an object…
0
votes
1 answer

How to pass a data like a database data or php constant data to display in a form in main.js

We build a custom bundle follow with this instructor https://blog.sulu.io/how-to-develop-a-bundle-in-the-sulu-admin-1 We need to know how to pass data from a database to render radio input choices or dropdown select. We try to create an add/edit…
Pazzo
  • 3
  • 4
0
votes
1 answer

Salesforce lightning:treegrid find Id/data of deselected row

I am working with a lightning:treegrid component. The onrowselection attribute of lightning:treegrid invokes a method on js controller whenever a row is selected/deselected. I am able to fetch the currently selected rows using the getSelectedRows()…
0
votes
1 answer

Aura controller action.setParams to User.ContactId

I'm almost new into working with aura controller implementing javascript. My question is if I can set action.setParams({"variable" : "{!User.ContactId}"}); or do I need to make a workaround to accomplish this. I'm asking this cause my button worked…
molinet
  • 266
  • 3
  • 14
0
votes
2 answers

sum fields on js object by 2 fields and create instead of the object javascript

My goal is I have number of objects im receiving weekly, each one on these object has date, Full_Name, total_hours, and other fields. I wanna sort these object array by names and by total hours of each day. please only in javascript no…
Amer Bearat
  • 876
  • 2
  • 7
  • 25
0
votes
1 answer

Set attribute disabled checkbox

i want to show the checkbox disabled when either of the values are coming, but it is working only for one value.
Coder
  • 428
  • 4
  • 16
0
votes
1 answer

aura:if is not evaluating and aura:iteration not displaying

I have a Lightning component that listens for an Updated Account event and retrieves the associated Contacts and Users. It then displays which Account the Contacts are for with a total of Contacts and Users, and creates an SLDS Card with repeating…
Ryan Dinesman
  • 101
  • 1
  • 3
0
votes
2 answers

Salesforce Lightning: Error during init [Cannot read property 'apply' of undefined]

I'm stuck with a Lightning component that doesn't render. I get a strange error immediately: This page has an error. You might just need to refresh it. Error during init [Cannot read property 'apply' of undefined]. I'm stuck now for a long time and…
Stefanvdk
  • 155
  • 1
  • 2
  • 13
0
votes
1 answer

how to use external js library with Aura?

I've added in aura:application file, file is downloaded by browser (can see that thru console) but when i try to create Chart object in afterRender…
razor
  • 2,727
  • 6
  • 33
  • 45
0
votes
1 answer

Aura.js Lightning Components: Firing a nested/child component's methods from the super/parent component?

I'm having issues communicating to a nested component. I would like a component to be able to run a method in the nested-component's controller.js (or helper). I have tried both events and via and no luck. Here is the example markup: