URl to record page in Salesforce1

您所在的位置:网站首页 salesforce1 URl to record page in Salesforce1

URl to record page in Salesforce1

#URl to record page in Salesforce1| 来源: 网络整理| 查看: 265

You'll want to look at the Managing Navigation Section of the Salesforce1 Mobile App Developer Guide, particularly Navigation with the sforce.one Object.Tthe back button works differently in Salesforce1 than in the standard platform from a regular browser. Your code will need to be adjusted to take this into account.

As an example, here's what it says about back(​[refresh]) navigation:

Navigates to the previous state that’s saved in the sforce.one history. It’s equivalent to clicking a browser’s Back button.

refresh is optional. By default, the page doesn’t refresh. Pass true to refresh the page if possible.

Now, you're using navigateToSObject(​recordId​[, view]) to get to a Lightning Page. Here's what it says about that command:

Navigates to an sObject record, specified by recordId. This record “home” has several views, which in Salesforce1 are available as slides that the user can swipe between.

view is optional and defaults to detail. view specifies the slide within record home to display initially. The possible values are as follows.

detail: the record detail slide chatter: the Chatter slide related: the view of related slide

Okay, you're probably wondering why I'm telling you all this. The reason being that the above command is obviously intended for use to get to a standard Object view and was never intended to get to a Lightning page to view an Object record.

If you look at how Lightning Components are being implemented on the platform, they're being implemented via Actions. If you use an Action to get to your Object view I strongly suspect your back button will return you to your previous view on the Lightning page.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3