Salesforce Mobile SDK and Ionic – TypeScript Inheritance

Salesforce Mobile SDK and Ionic – TypeScript Inheritance

Since we now know how to use the SmartStore buildExactQuerySpec how about we adapt it to our use by getting the specific contact we select on the contactsDetails view from the SmartStore instead of calling back to Salesforce.  To do that we will have to ensure that our SmartstoreServiceProvider matches the same type as our ContactsServiceProvider.  We can continue to … Continue reading Salesforce Mobile SDK and Ionic – TypeScript Inheritance

Salesforce Mobile SDK and Ionic – Offline – SmartStore Query by Exact

Salesforce Mobile SDK and Ionic – Offline – SmartStore Query by Exact

Sometimes when getting data from the Soup we will need to be able to get one specific record, or a group of records that match a certain criteria.  SmartStore allows us to do this using the Query by Exact feature and the buildExactQuerySpec function.  Using buildExactQuerySpec we will be able to tailor our query similar to the … Continue reading Salesforce Mobile SDK and Ionic – Offline – SmartStore Query by Exact

Salesforce Mobile SDK and Ionic – Offline – Update SmartStoreService

Salesforce Mobile SDK and Ionic – Offline – Update SmartStoreService

Since we are going to use the SmartstoreService as a drop in replacement for the ContactsService we will have to add in the methods that the ContactsService was providing for use.  Let's start by adding in the loadContacts call that is used by the contacts view to list...well.. contacts. SmartStoreService.loadContacts This new loadContacts method to return a promise to conform with … Continue reading Salesforce Mobile SDK and Ionic – Offline – Update SmartStoreService

Around the Web – 20180105

WIPDeveloper.com

And now for somethings to read over the weekend, if you have some spare time that is. Researchers Discover Two Major Flaws in the World's Microprocessors Computer security experts have discovered two major security flaws in the microprocessors inside nearly all of the world's computers. The two problems, called Meltdown and Spectre, could allow hackers … Continue reading Around the Web – 20180105

Salesforce Mobile SDK and Ionic – Offline – Consume SmartStoreService

Salesforce Mobile SDK and Ionic – Offline – Consume SmartStoreService

Since we now have a way to retrieve our contacts, save them to a Soup, and Query the Soup let's use that stored data to populate our app instead of making calls the the server with each view load. Update Contacts To get the Contacts view to load all the contacts from our Soup we … Continue reading Salesforce Mobile SDK and Ionic – Offline – Consume SmartStoreService