You need to sign in to do that
Don't have an account?
Rajeshwar Patel
how to add open in a new tab functionality in Lighthing
In my code i need a functinility for open a record in a new tab .
Actually i m working in a partner community page . my requirement is when even i find any partner i can open the partner detail either in (open in a new tab OR ctrl + click ) both mac and windows .
Actually i m working in a partner community page . my requirement is when even i find any partner i can open the partner detail either in (open in a new tab OR ctrl + click ) both mac and windows .
Please check with below link from the success community for the same.
- https://success.salesforce.com/ideaView?id=08730000000CIt7AAG
Mark this as solved if this helps.Thanks,
Nagendra.
i got the solution but .. But only open in a new tab is the problem
This is on controller.js
if(event.ctrlKey)
{
var curUrl=window.location.href;
var curuel =curUrl+'/partner-detail?RecordId='+RecordId+'&filter='+filters+'&searchInput='+filterString'+
console.log("Current Url"+curUrl);
window.open(url,'_blank');
}
else{
var urlEvent = $A.get("e.force:navigateToURL");
}