You need to sign in to do that
Don't have an account?
Tulasiram Chippala
How to open navigation of record detail page in new window
Hi I am using force:navigateTosObject.
I want to open this navigaton in a new window. But my code is opening in the same window.
I searched in google but I didn't find any solution for this. Please help me with this.
createRecord : function (component, event, helper) { var navEvt = $A.get("e.force:navigateToSObject"); var recordId = event.target.id; navEvt.setParams({ "recordId": recordId, "slideDevName": "detail" }); navEvt.fire(); }
I want to open this navigaton in a new window. But my code is opening in the same window.
I searched in google but I didn't find any solution for this. Please help me with this.
--
Magulan Duraipandian
www.infallibletechie.com
Greetings to you!
According to Salesforce doc: https://developer.salesforce.com/docs/component-library/bundle/force:navigateToSObject/documentation
We recommend using lightning:navigation component with the standard__recordPage page type instead.
Component:
Controller:
Please refer to below link: https://salesforce.stackexchange.com/questions/186479/how-to-make-forcenavigatetosobject-to-open-record-in-new-tab
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas