This post is again as per request from one of my friend .He wanted me to put together a simple demonstration of how to handle lightning events from visualforce and how to publish or fire lightning events from outside salesforce .Both of these cases are extremely common if you are building application using lightning for visualforce .
If you have already started adopting Lightning component framework ,you probably know how important are Events .There are two types of events , Application events and Component Events .Please note that prerequisite for understanding this blog is understanding of events in context of lightning component framework .
The below code snippets apply to only application events .
Application events are handled by all components that are listening to the event. These events are essentially a traditional publish-subscribe model.
Now this opens a world of new opportunities to mash up already existing visualforce UI with lightning component framework.
One sample project that i experimented is in my git repo which takes map component as a lightning component but receives pickers from the visualforce select option .
I hope this opens up a whole world of new directions to design and build some excellent mashups with visualforce and lightning .
Please reach out via my twitter @msrivastav13 or mail msrivastav13@gmail.com.
If you have already started adopting Lightning component framework ,you probably know how important are Events .There are two types of events , Application events and Component Events .Please note that prerequisite for understanding this blog is understanding of events in context of lightning component framework .
The below code snippets apply to only application events .
Application events are handled by all components that are listening to the event. These events are essentially a traditional publish-subscribe model.
1. Firing Events from the Visualforce and Handling the Events in lightning components
To demonstrate this ,lets create a simple event file and fire the event from the visualforce inside the callback and handle the event back in the lightning component file
Below is the component set up for lightning framework
Lets put together the visualforce code needed for the experiment
Here are the exciting resultsNow this opens a world of new opportunities to mash up already existing visualforce UI with lightning component framework.
One sample project that i experimented is in my git repo which takes map component as a lightning component but receives pickers from the visualforce select option .
2.Firing events from the lightning component and handling the event inside visualforce
This is another interesting observation ,you can fire an event from the lightning component and handle the event inside visualforce .
Lets see the hello world code for this scenario
The visualforce code is as below
Fun part
I hope this opens up a whole world of new directions to design and build some excellent mashups with visualforce and lightning .
Please reach out via my twitter @msrivastav13 or mail msrivastav13@gmail.com.
You have written a very effective blog for readers, thank you so much to share this useful information. If you want best Trucking Insurance in US then you should visit our website.
ReplyDeleteGreat post friend, Thank a lot to share this. You are doing good job. Keep posting.
Salesforce Consulting India
This comment has been removed by the author.
ReplyDeleteThanks for sharing, nice post! Post really provice useful information!
ReplyDeleteHương Lâm chuyên cung cấp bán máy photocopy và dịch vụ cho thuê máy photocopy giá rẻ, uy tín TP.HCM với dòng máy photocopy toshiba và dòng máy photocopy ricoh uy tín, giá rẻ.
ReplyDeleteNice Blog With Full of Knowledge Thanks For Sharing.
UI Development Training
UI Development Training in Hyderabad
UI Development Online Training
This comment has been removed by the author.
ReplyDeleteYes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks via4d
ReplyDeleteI was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. via4d
ReplyDeleteNice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. via4d
ReplyDeletePHP Training in Chennai | Certification | Online Training Course | Machine Learning Training in Chennai | Certification | Online Training Course | iOT Training in Chennai | Certification | Online Training Course | Blockchain Training in Chennai | Certification | Online Training Course | Open Stack Training in Chennai |
ReplyDeleteCertification | Online Training Course
http://www.happierit.com
ReplyDeletehttp://www.happierit.com
http://www.happierit.com
http://www.happierit.com
http://yaando.com/
[no anchor text]
[no anchor text]
click here to visit the site
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.
ReplyDeleteevent
Thanks a lot for sharing a valuable blog on Salesforce lightning. I was browsing through the internet looking for salesforce lightning and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information about Salesforce lightning here:
ReplyDeleteSalesforce lightning interview questions and answers
Salesforce lightning
"""Dear Admin,
ReplyDeleteI am Universal Investment Strategies. Very informative post! I am thankful to you for providing this unique information.
Universal Investment Strategies provides one-on-one options trading mentorship and education to investors seeking to generate active, passive and/or retirement income. With over 25 years of combined experience and thousands of satisfied customers, Universal Investment Strategies was founded on the principals of we will walk with you side by side every step of the way.
Universal Investment Strategies LOS ANGELES CA
Online Stock Trading
Best Options To Trade
Learn How To Trade Stocks
Best Trading Courses
Best Way To Learn Stock Trading"""
ReplyDeleteThanks, this is generally helpful.
Still, I followed step-by-step your method in this salesforce cpq online training
salesforce cpq course
Really good information in this blog.
ReplyDeleteDevOps Training
DevOps Online Training
360 Degree Cloud being the Salesforce registered consulting and ISV Partner provides you with the best services on the global level. Unleash the power of Salesforce Consultancy with the help of 360 Degree cloud and explore the infinite pool of opportunities.
ReplyDeletevisit-360degreecloud
This comment has been removed by the author.
ReplyDeletebuy online xanax 1mg
ReplyDeletebuy online ambien 10mg
ReplyDeletebuy online xanax 1mg
ReplyDeleteTechforce services is a Salesforce Consulting Services in Australia Specialising in delivering end to end Salesforce solutions ,Consulting, Implementation DevOps partners in australia We deliver applications and services more rapidly and reliably, but it’s more than a methodology – it cuts to the very core.Salesforce Data Analytics let us help you become a data driven organisation and ensure your data is working hard for your business This includes implementi
ReplyDeleteTechforce services in Australia
Salesforce Consulting Services in Australia
Salesforce Staff Augmentation in Australia
Salesforce Data Analytics
DevOps Partners in Australia
Managed Projects Salesforce Australia
The biggest asset of any company these days is its customers. If you have no customer to buy your product, your business will not succeed.
ReplyDeleteVisit: customer journey mapping examples
Buy Tramadol 100mg Blister Pack
ReplyDeleteBuy Tramadol 100mg TOP-DOL 180-Pills
ReplyDeleteThis post is really nice and informative.
ReplyDeleteSales Force CPQ Online Training Hyderabad
Visit us: sales force CPQ Online Training
Buy Ativan 2mg Online Cheap Price
ReplyDeleteBuy clonazepam 1mg onilne
ReplyDeleteBuy clonazepam 2mg online
ReplyDeleteTechforce services is a Salesforce Consulting Services in Australia Specializing in delivering end to end Salesforce solutions ,Consulting, Implementation DevOps partners in Australia We deliver applications and services more rapidly and reliably, but it’s more than a methodology – it cuts to the very core. Salesforce Data Analytics let us help you become a data driven organization and ensure your data is working hard for your business, This includes implemention
ReplyDeleteSalesforce consulting companies
Salesforce top partners
Staff augmentation companies
Salesforce DevOps services
Salesforce integration companies
Salesforce Implementation services
Salesforce Health Check
Salesforce DevOps
Managed project services
Buy Clonazepam(Klonopin) Online
ReplyDeleteMuleSoft training
ReplyDeleteMuleSoft online training
Buy Tramadol 100mg online
ReplyDeleteWebsite Development
ReplyDeleteCMS Development
ReplyDeleteBuy Ambien Online
ReplyDeleteBuy Tramadol 100 mg Online
ReplyDeleteBuy Ambien Online Overnight
ReplyDeleteOrder Tapentadol 100 Mg Online
ReplyDeleteGeneric cialis 10 mg online
ReplyDeleteThanks for sharing best information. I am really enjoying reading your well written post.
ReplyDeleteKsalol Xanax 1MG (Alprazolam) tablets online
Diazepam 10mg Tablets UK
Wonderful post. It’s very useful for me and I am very much impressed with your meaningful thoughts.
ReplyDeletePregabalin 300mg Tablets
Kamagra Oral Jelly Tablets UK
Thanks for sharing the post! Get your medicine to treat insomnia at your doorstep. For your next purchase of Zopiclone Tablet, do market research in advance to get the best quality medicine.
ReplyDeleteThanks for sharing this informative blog with us, it was really amazing post.
ReplyDeleteZopiclone (Blue) Tablets Next Day Delivery
Ksalol Xanax 1mg Alprazolam Next Day Delivery
I felt the information provided in this blog is really valuable for people ............. Thanks for sharing such an informative blog.
ReplyDeletepregabalin tablets
Xanax Pill
I really enjoy studying on this site, it holds fantastic blog posts
ReplyDeletebuy hydrocodone 10mg online without prescription USA
You should keep it up forever! Best of luck.
Insomnia is a sleep condition in which you consider it impossible to fall asleep. .buy Ambien Sanval 10mg online It may be short-term or long-term (acute) or chronic. Sleeplessness is chronic if it lasts three nights or longer per week, at least. Decide to for benefits
ReplyDeleteAre you suffering from unbearable muscle and bone pain? Has your doctor or pharmacist prescribed you SOMA for relief from the discomfort and pain associated with the painful, acute musculoskeletal condition
ReplyDeleteBuy soma 350 mg online While we cannot do much about your condition,
ReplyDeleteIf that is what one’s life is,
Tramadol 50 mg order online is the answer to your prayers. As effective as it is in relieving pain, it does come with some side effects, so stay alert to symptoms of dizziness, drowsiness, blurred vision, sleep problems, agitation, anxiety, constipation, diarrhea, hallucination, nausea, tremor, vomiting, and diaphoresis.
Fantastic post! please keep sharing.
ReplyDeletePregabalin 300mg Tablets
Sildamax Tablets UK
Ksalol Xanax Tablets Next day Delivery
Modafinil plays a part in calming the brain of the patient. Order Modafinil 200 mg in the USA on Lowest Price The exact mode of its function is still unestablished. It improves wakefulness by amplifying the dopamine amount, which turned out to be a neuro-emitter material that tricks nerves to stay up-to-date inside the brain by curtailing the nerves ‘ supplies of dopamine. and begin your treatment.
ReplyDeleteMale sexual problems such as impotence or erectile dysfunction has gained prominence all over the world. Buy levitra 10 mg online There are innumerable men who complain about having a problem of impotence. Due to this problem, they are unable to perform sexual activities
ReplyDeleteWonderful post. It’s very useful for me and I am very much impressed with your meaningful thoughts.
ReplyDeleteZopiclone Tablets Next Day Delivery UK
Zopiclone Tablets White UK
Zopiclone Tablets blue UK
Nice blog, informative content. Thanks for sharing this blog with us.
ReplyDeleteOnline UI Development Training in Hyderabad
Uipath Training in Hyderabad
Python Training in Hyderabad
Mern Stack Development Training in Hyderabad
Dean n Ivy Shiba Kennel has been dedicated to producing the finest quality. Shiba Inu puppies for sale - Shiba Inu Breeder 17 Awesome Shiba Inu Mixes For Non-Sporting Dog Breed Lovers
ReplyDeleteShiba Inu Puppies For Sale Australia
We are a reputed and secure online brand that delivers online medicines like cialis 10mg , percocet 10mg, cheap viagra 50mg, neurontin overnight delivery, 1 mg football xanax , verapamil 40 mg , oxycodone acetaminophen 10-325 en español and fioricet for tooth pain to your doorstep at very affordable rates.
ReplyDeleteNice Blog. Thank you for sharing this information.
ReplyDeleteBest Anxiety Pills UK
Anxiety Tablets
Order online pills safely & securely With guaranteed Next Day Delivery in UK from Zopiclone Next Day Delivery.
ReplyDeleteHAB Pregabalin 300mg Tablets
Ksalol Xanax 1MG tablets
Thank you very much for sharing this informative blog with us, Really amazing post.
ReplyDeleteanxiety pills
anti anxiety tablets
anxiety attack pills
Medicine For Early Discharge Problem Among Men Without Side Effects | Pay After Delivery
ReplyDelete✈ Shipping And Delivery Available to any location
Order Now : https://bit.ly/3BdpGT7
Email : sales@rsmenterprises.in
Chat on WhatsApp with +91 92163-25377
Kamagra Oral Jelly
Sildenafil Oral Jelly
Buy Generic Viagra Jelly