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
Tanuj TyagiTanuj Tyagi 

List view cant load the Data when navigating from a VF pages button in Lightning Experience

Hi,
I am not able to load List View in Lightning Experience when using VF Page. 

On click of button in VF Page ------ 
I am calling this code :: 

if('{!$User.UITheme}'=='Theme4d') 
        { 
             var listViewId = '{!listViewId}'; /// List View Id , fettting from APEX- soql
             sforce.one.navigateToList(listViewId, 'All', 'Custom Object API');
        } 

I get this when list view page loads.

User-added image


Need urgent Help !!

Thanks

 
Meghna Vijay 7Meghna Vijay 7
Hi Tanuj,

Are you getting listViewId and is sforce not undefined?
 
Tanuj TyagiTanuj Tyagi
I am getting this in URL : 
/lightning/o/VisitOps__Visit__c/list?filterName=00B0t000000Q8DuEAK

listViewId is coming I guess . Cant debug more as its in managed package org