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
pradeep kumar yadavpradeep kumar yadav 

Parameter Not working in lightning?

document.getElementById("ancherId").href = '/' + idArray[i]+'?isToastVisible=true';
In classic ApexPages.currentPage().getParameters().get('isToastVisible'); gives result
But , in case of lightning 'isToastVisible' is not showing in url and ApexPages can't access it.
Can anyone tell reason and give other solution.
GauravGargGauravGarg

Hi Pradeep,

Please create a component with HasRecordId and pass this as parameter to contorller.

Use reference:https://developer.salesforce.com/forums/?id=906F0000000BawjIAC


Thanks,

Gaurav