By: Ankita Rustagi
As you might already know, the recent big change in Salesforce is the introduction to lightning components. As technology rapidly changes, Salesforce strives to stay ahead and continues to take advantage of cutting edge innovations in web technology.
Lightning framework allows you to build responsive applications with a much better user interface that people love to interact with. Lightning components give you a client-server framework that makes development faster and is compatible for both web as well as Salesforce 1 Mobile application.
We will be discussing the basics of Lightning components in this post and how you can make a lightning component fetch and display data from the server.
A salesforce lightning component consists of 4 important parts:-
1. Component – The only required resource in a bundle. Each bundle contains only one component.
2. Controller – Client-side controller method to handle events in the component.
3. Helper – Javascript functions that can be called from any javascript code in a component’s bundle.
4. Apex Controller – Apex methods that are used to store and fetch data from salesforce.
While the first three work on the client side, the last one works on the server side.
Use case: Let’s try creating a lightning component bundle that will fetch contact records from salesforce and display their ID and Name. For this, let’s create the following items step by step in developer console.
Lightning Application: We base our component in application page to preview it. In developer console, go to File> New> Lightning applications. The name of the lightning component placed is “<c:AllContactComp />”.
AllContacts.app
Lightning component: In developer console, go to File> New> Lightning components. Controller is the apex class used, attribute “contactRows” is used to store records fetched from salesforce. We are calling doInit method of client-side controller. “<aura:iteration>” tag is used to iterate over fetched records and display, here in table format as table html is used.
AllContactsComp.cmp Javascript controller: It is calling helper function “getAllContacts”.
AllContactsCompController.js
Helper: This function is calling “get10COntacts” method of apex class and also receiving records in aura attribute ”contactRows“.
AllContactsCompHelper.js Apex class: Here apex method is querying over contact object for values of fields ID and Name.
ContactAura OutPut: Once all these different items are created, we can preview the component by clicking the “Preview” button on aura application. And here we can see a list of contacts. Hurray!

https://t.me/pt1win/196
Актуальные рейтинги лицензионных онлайн-казино по выплатам, бонусам, минимальным депозитам и крипте — без воды и купленной мишуры. Только площадки, которые проходят живой отбор по деньгам, условиям и опыту игроков.
Следить за обновлениями можно здесь: https://t.me/s/reitingcasino
https://t.me/s/iGaming_live/4553
https://t.me/s/iGaming_live/4710
https://t.me/reyting_topcazino/17
https://t.me/officials_pokerdom/3483
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.info/ru-UA/register-person?ref=JVDCDCK4
Thank you for your shening. I am worried that I lack creative ideas. It is your enticle that makes me full of hope. Thank you. But, I have a question, can you help me?
https://t.me/s/dragon_money_mani/33
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.com/cs/register?ref=OMM3XK51
Hey guys! Just checked out Betboomplataforma. Seems like a solid option, a lot of games to choose from. Anyone else tried it out? Let’s share experiences! Check it out here: betboomplataforma
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Reading your article helped me a lot and I agree with you. But I still have some doubts, can you clarify for me? I’ll keep an eye out for your answers.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
No long roads.
No overexplaining.
Only what matters, when it matters.
Fresh signals.
Clear mechanics.
Moments that feel right — not forced.
This is where rhythm meets timing,
and timing quietly turns into advantage.
You scroll — you get it.
You stay — you feel it.
https://t.me/s/portable_1WIN
Slide in.
Catch the flow.
Stay where momentum lives.
**prodentim**
ProDentim is a distinctive oral-care formula that pairs targeted probiotics with plant-based ingredients to encourage strong teeth, comfortable gums, and reliably fresh breath
**prostafense**
ProstAfense is a premium, doctor-crafted supplement formulated to maintain optimal prostate function, enhance urinary performance, and support overall male wellness.
Looking in the interest a dynamic medico release? THCA choicest indica strains are [url=https://www.hipuffy.com/collections/mushrooms ]mushroom edibles near me[/url] enthusiastically sought after as a service to their signature “remains high.” If you struggle with muscle force, soreness, or proper have occasion for to entirely unplug from a frenetic week, this is your go-to. Again heated, the THCA transforms to cede a uncomfortable, unmanageable blanket of corporeal cheer that helps you fully capitulate to yawning, cozy rest.
Launching a brand-new e-commerce site? You need a honourable shopify seo checklist or https://www.linkedin.com/pulse/shopify-seo-brands-cant-scale-paid-ads-cases-dmitri-bezdetny-enfuf/ to effect you don’t virgin important optimization steps in the forefront going live. Proper seo quest of shopify store success involves site up Google Search Calm, optimizing your headings, and fixing duplicate import patterns. Tick all the virtue boxes antiquated on to turn your label up in the interest of titanic success.
look for bounty thca flower without give way the bank? https://www.hipuffy.com/collections/energy-gummies Our thca flower online store is jam with high potency thca flower options that pitch exceptional quality at an low-priced terms. Whether you opt a heavy thca flower indica to slow down at Nox, a motivation thca flower sativa for a burst of creativity, or a poise hybrid thca flower for daytime center, we wealthy person the perfect melody for you. strike cryptical disregard on inexpensive thca flower, budget thca flower choice, and unfermented hatful of thca flower smalls on sale mighty directly. Don’t wait—buy thca flower on-line nowadays and revel debauched shipping right away to your strawman doorway!