You need to sign in to do that
Don't have an account?
satihillyer
sforce.one.navigatetolist not working
Any idea why this is not rendering the page on Salesforce1?
<apex:page >
<script>
if ( (typeof sforce != 'undefined') && (sforce != null) ) {
sforce.one.navigateToList('00BG0000008Wtyc', 'AllOpenLeads', 'Lead');
}
</script>
</apex:page>
I just want to redirect to the all open leads list view.
<apex:page >
<script>
if ( (typeof sforce != 'undefined') && (sforce != null) ) {
sforce.one.navigateToList('00BG0000008Wtyc', 'AllOpenLeads', 'Lead');
}
</script>
</apex:page>
I just want to redirect to the all open leads list view.
Please call the condition inside the function in javascript..
<script>
$(document).ready(function(){
if((typeof sforce.one!='undefined') && (sforce.one ! = null)) {
sforce.one.navigateToList(listviewId, listviewName,scope); ---------------> Pass your values here
}
});
</script>
If it resolves your issue,Please mark it as a solution..
You can simply use this:
<apex:page >
<script>
window.onload=function(){
if(sforce.one){
sforce.one.navigateToList('00BG0000008Wtyc', 'AllOpenLeads', 'Lead');
}
};
</script>
</apex:page>
Uncaught ReferenceError: sforce is not defined
<script type='text/javascript' src='/soap/ajax/29.0/connection.js'></script>
<script type='text/javascript' src='/soap/ajax/29.0/apex.js'></script>
It's a VF tab. Salesforce1 is enabled, the "Available for Salesforce mobile apps" checkbox in the VF page is checked. Lead ListView ID is 00BG0000008Wtyc and Lead ListView Name is AllOpenLeads
All I want is when you click this tab in the Salesforce1 mobile app, it redirects you to the lead list view.
sforce.one.navigateToList('00BG0000008Wtyc', 'All Open Leads', '00Q');