Professional Documents
Culture Documents
Lightning Component-Material
Lightning Component-Material
Option-1:
Option-2:
Note: if the above step is not done the Lightning Components Tab Related list Section will not
display in Tab Settings.
EMS
LR Concert Customer
MD
Troop
LR MD
Venue Booking
MD
Review
Note:
In the final step, select system administrator profile and click on save & Finish
In the App Manager, newly created app named CMS is displayed as follows and we can edit and
delete the app in future from here.
6. To open App click on 9 dots and select CMS App to open as follows
(Note: to move the App to top just Drag and drop at the top)
Creating Objects
1. Setup->object Manage->new object (Custom Object)
2. Creation of Concert Object as follows and click Save and New
3. Creation of Customer Object as follows and click Save and New
4. Creation of Booking Object as follows and click Save and New
5. Creation of Venue Object as follows and click Save and New
6. Creation of Review Object as follows and click Save and New
7. Creation of Troop Object as follows and click Save
Creating Tabs
if Launch New Custom Tab Wizard after saving this custome object s selected then Tab creation
page opens automatically.
If not selected, then follow the below steps to create tabs for objects
9. Creation of Fields
Creating Troop Fields as follows
Setup -> object Manager-> Troops-> click fields and relationships section and add the
following fields
To Edit the Field Click on down arrow button as follows
Note: here Troop Name is Changed to TroopID by using Edit option and it is changed as follows
Click on Edit option and changes is done and clicked on save button
Similarly, changes are done for remaining objects Standard fields
Now name the field as follows and leave the remaining as default
Click save and new for continuing new field creation or save for finishing of field creation.
Phone Phone
lookup Concert
Lookup Customer
Step1:
Step2:
In the Developer Console, click File -> New -> Apex Class and controller name is given as follows
Step3: Enter the code as Follows and save
Note:
In the Developer Console, click File-> New-> Lightning Component and created as follows
Note:
1. The component implements the force:appHostable interface to indicate that it can run in the
Salesforce1 application
2. We can add different sections like controller, Style Design from the palette.
Click
Click
12. Add the Tab to Mobile Navigation
Setup->type mobile in Quick find->select salesforce Navigation
After saving open salesforce mobile app in the mobile and open CustomerDB.
13. Implementation : fetching customer records by using CustomerDB Tab in mobile as follows
14. Verifying in Mobile App
Open salesforce app and select CustomerDB Results will displayed
15. Implementation of Search bar
Open Developer Console -> new -> Lightning Event and bundle name as SearchKey and click on
submit
Enter the following code
Creating Style