Skip to main content

Posts

Showing posts from May, 2016

Salesforce and LittleBits integration - IoT device

Integrating Salesforce with IoT devices (Internet of Things)  is one of my favourite topics and I was waiting for a long time to work on that topic and somehow I got time and managed to get one IoT device littleBits to experiment with it. The littleBits cloud starter kit consists of 5 modules cloud bits, sound trigger, long led, button,servo and USB power. The main heart of this kit is cloud bits which have onboard wifi adapter which will connect the device to the internet. When the kit is connected to the internet, we can able to collect and post information to the device using the littleBits cloud API . Let's get into the action 1. Setup littleBits device Once you purchased the littleBits cloud starter kit, you can able to connect the device by following the steps given in the link control.littlebitscloud.cc or you can download the littleBits mobile application to connect your device to the internet. Build the device module as shown in the below picture 2. Conne

Dynamic Lightning Table

Dynamic lightning table components help you to easily display records in the table format along with the pagination This component has three attributes 1. Object - Specify the API name of the object from where you need to retrieve the records 2. Fields - Specify the list of columns you wants to display in the table. You have to mention the API name of the object fields 3. pageSize - Specify the number of records you want to display in a page Let's look into the components involved here DataTable In my recent post about the custom lightning component for recent records, I have provided an example to display the records dynamically, the same component logic remains here, the only differences here is instead of the recent record object, we will retrieve the records from the actual object. Check the blog post here -  https://clicksandcode.blogspot.ca/2015/12/recent-items-custom-lightning-components.html Pagination Pagination logic is the one of the key features for