function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ananthanarayanan NemmaraAnanthanarayanan Nemmara 

custom related tab missing in mobile

Hi All,  

Just had a query, how can I create a custom tab on accounts page like news, related list, details in lightning? Also, how can that be brought in salesforce1 app?  We had creted such custom tabs in the account page b ut those are  visible only in desktop but not in mobile. What am I missing?

Thanks for the response
sfdcMonkey.comsfdcMonkey.com
Hi Ananthanarayanan Nemmara,
yes as per my knowlage salesforce1 uses the standard compact page layout so it's not support adding Lightning components or custom tabs yet.

reference : https://developer.salesforce.com/forums/?id=9060G000000UV5SQAW
but you can add custom lightning components to salesforce mobile app navigation menu :
http://sfdcmonkey.com/2016/12/24/add-lightning-component-salesforce1-navigation/

i hope it helps you.
  kindly Let me inform if it helps you and close your query by choosing best answer if you got your right answer so it can helps others
thanks
sfdcmonkey.com
Ananthanarayanan NemmaraAnanthanarayanan Nemmara

Hi  Piyush,

Thanks for your response but  it didn't help me solve my issue.
Image of desktop
As you see in the above image, the tabs after news are custom lightning components and have data fetched fetched from th database. We cannot see the custom tabs in app as it is lightning component. Could you suggest any alternative to this?

Thanks!

sfdcMonkey.comsfdcMonkey.com

Hi, as we know we can not display custom tabs on detail page in Salesforce one mobile app, i had face similar issue previously,
in this case the problem is getting parent record id to display Child Records(Open Orders) so
only workaround is create a new lightning componnet with implements="force:appHostable"  and display all records of parent object with search functionality so user can selete the parent record from this component and on record selection we will get the record id in javaScript controller  and pass the selected parent id to your Open Orders lightning component to display open orders for particuler selected record, and add this new lightning component to salesforce1 navigation bar (http://sfdcmonkey.com/2016/12/24/add-lightning-component-salesforce1-navigation/)

Hopes it will helps you

Thanks

Ananthanarayanan NemmaraAnanthanarayanan Nemmara
Hi Piyush,

I tried an alternate mehod but even that didn't work. I think i need to go ahead and try your solution.If you dont mind, could you please share some sample code related to my scenario. Thanks for your help!!

Regards,
Anand