You need to sign in to do that
Don't have an account?
ramesh k 29
lighting component cancel button i hit the button it should be redierct to opportunity tab
Hi,
i have lighting component cancel button when i hit the cancel button it should be redierct to opportunity tab
i wrote a some code it close the window but it not redirect to opp tab pleasee help me some one
this is my page
for that i wrote a following code
doCancel: function(component, event) {
var retValue = component.get('v.OpportunityID');
if(window.opener == null){
window.location.href = "/"+retValue;
}else{
window.close();
}
}
i have lighting component cancel button when i hit the cancel button it should be redierct to opportunity tab
i wrote a some code it close the window but it not redirect to opp tab pleasee help me some one
this is my page
for that i wrote a following code
doCancel: function(component, event) {
var retValue = component.get('v.OpportunityID');
if(window.opener == null){
window.location.href = "/"+retValue;
}else{
window.close();
}
}
Lightning won't support Window.location. You can either use navigateToSObject or navigateToURL. For e.g.:
-Thanks,
TK
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
i am getting following error
Cannot read property 'setParams' of undefined
put an alert(retValue); at line #4