Last active
May 24, 2019 14:23
-
-
Save MashmatrixSupport/ca1876f07ea19914b4e683309ccfdd27 to your computer and use it in GitHub Desktop.
Sheet-Embeded Visualforce Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page | |
standardController="Account" | |
showHeader="false" | |
> | |
<script> | |
var bookId = "a002800000iNFMLAA4"; | |
var sheetId = "s1"; | |
var url = | |
"{!URLFOR($Page.msmxSheet__MsmxSheetView)}" + | |
"?bookId=" + bookId + "&sheetId=" + sheetId; | |
var recordId = "{!$CurrentPage.parameters.id}"; | |
if (recordId) { url += "&id=" + recordId; } | |
location.href = url; | |
</script> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To embed a sheet in the Account record detail page:
Opportunity
object as a data source. New book will be created with one sheet tab named "Opporunity".https://www.youtube.com/watch?v=KkUULBccmZM