Salesforce Mobile SDK and Ionic – Edit Contact Part III

Salesforce Mobile SDK and Ionic – Edit Contact Part III

We’ve completed the EditContactPage component.  Now we should add a way to open it in a modal from the ContactDetailsPage component. Update ContactDetailsPage Component In the ContactDetailsPage component we are going to want a button to select to open a modal to edit the contact.  This means we will need a button on the html template.  And logic in […]

Salesforce Mobile SDK and Ionic – Edit Contact Part II

Salesforce Mobile SDK and Ionic – Edit Contact Part II

Previously we updated our ContactServiceProvider to  have an updateContact method.  Created our contactEdit page and worked out the contact-edit.html.  Now we need to update the logic for the contactEdit component and provide a way to navigate to it. Update contact-edit.ts For the contactsEdit component’s logic we will need to have references to  the ContactDetailsPage component and the ContactsServiceProvider so we will need to use […]

Saleforce Mobile SDK and Ionic – Edit Contact Part I

Saleforce Mobile SDK and Ionic – Edit Contact Part I

Now that we can view a Contacts Details we should come up with a way to edit them.  Let’s set something up to handle editing now. Update ContactServiceProvider To edit a contact we will need some way to tell Salesforce of our changes.  Since we are collecting all our calls to Salesforce in the ContactsServiceProvider let’s add a […]

Saleforce Mobile SDK and Ionic – Display Contacts

Saleforce Mobile SDK and Ionic – Display Contacts

Since we can now query Salesforce to get an array of contacts we should probably make use of them on our Contacts page. Update Contacts Component Open up your ContactsPage class.  We are going to import the ContactsServiceProvider from ‘../../providers/contacts-service/contacts-service’.  Then we will add parameter to the constructor that that is private named service and has a […]

Saleforce Mobile SDK and Ionic - Query Contacts

Saleforce Mobile SDK and Ionic – Query Contacts

Now that we have a provider called contacts-service.ts and our app is freshly updated lets use ForceJS to query for the contacts to display on our Contacts page. Create a Query Like when we added our user query to the Home page to verify things were set up we will need to import ForceJs into the ContactsServiceProvider […]

Saleforce Mobile SDK and Ionic - Update Mobile SDK

Saleforce Mobile SDK and Ionic – Update Mobile SDK

The other day they released a new update for the Salesforce Mobile SDK.   Let’ take a look at what it takes to update versions. Install Updated Forcedroid First thing we should do is upgrade our Forcedroid by using NPM . Upgrade Forcedroid Command PS D:\Workspace\Blog\salesforce\ionic\ionicContacts> npm install forcedroid -g C:\Users\brettmn\AppData\Roaming\npm\forcedroid -> C:\Users\brettmn\AppData\Roaming\npm\node_modules\forcedroid\forcedroid.js + forcedroid@5.2.0 […]

top