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

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

Since we have an understanding of how to create and run a buildExactQuerySpec let's put it to use in our contacts app. Override getContact We have talked a bit about TypeScript Inheritance and how our SmartstoreServiceProvider extends the ContactsServiceProvider so we could use the method that we already defined in the ContactsServiceProvider without implementing them and make the SmartstoreServiceProvider able to be used in … Continue reading Salesforce Mobile SDK and Ionic – Offline – SmartStore Query by Exact Part II

Salesforce Mobile SDK and Ionic – TypeScript Inheritance Part II

Salesforce Mobile SDK and Ionic – TypeScript Inheritance Part II

In Salesforce Mobile SDK and Ionic – TypeScript Inheritance we used extend to inherit from the ContactsServiceProvider in our SmartstoreServiceProvider.  This allows us to move ahead with adding features to our SmartstoreServiceProvider without having to create each necessary method call when we replace the ContactsServiceProvider.  Let's look at how. What's Inherited Some of the methods that we were missing: getContact and deleteContact we … Continue reading Salesforce Mobile SDK and Ionic – TypeScript Inheritance Part II

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

Salesforce Mobile SDK 6.0.0 Consolidated Release Notes

WIPDeveloper.com

A little while ago there was a new release for the Salesforce Mobile SDK and I thought it would be easier to have one place to see the changes rather than having to look in the different repositories.  So here's a combined list of changes Salesforce Mobile SDK 6.0.0 Android and iOS Library Upgrades We've updated … Continue reading Salesforce Mobile SDK 6.0.0 Consolidated Release Notes

Salesforce Mobile SDK and Ionic – Offline – SmartStore Query All Data II

Salesforce Mobile SDK and Ionic – Offline – SmartStore Query All Data II

Now that we can run a query that returns all the data let's look at the options is has available. More QuerySpec We built our querySpec with the following line of code: var querySpec = (navigator as sdkNavigator).smartstore.buildAllQuerySpec('Name', 'decending', 2, ['Name']) And it returns the following object: Results A few of the parameters are some what … Continue reading Salesforce Mobile SDK and Ionic – Offline – SmartStore Query All Data II