You need to sign in to do that
Don't have an account?
Chidanand M
Browser get's refreshed only for admin. But it doesn't refresh for users.
function nextRec(){
alert('hii');
if(localStorage['CycleAccounts']){
var cycleAccounts = localStorage['CycleAccounts'].split(',');
alert(cycleAccounts);
alert('{!Account.Id}');
var accId='{!Account.Id}';
accId= accId.substring(0, accId.length - 3);
alert(accId);
// var currentAccountPos = cycleAccounts.indexOf('{!Account.Id}');
var currentAccountPos = cycleAccounts.indexOf(accId);
alert(currentAccountPos);
if(currentAccountPos == cycleAccounts.length - 1){
alert('This was the Last Account!');
}
else{
parent.parent.frames.location.replace('/apex/accExample?id='+ cycleAccounts[currentAccountPos + 1]);
}
}
}
Hi All,
1. If i login as a admin, browser gets refreshed with the updated id's
2.If i login with user other than admin, browser doesn't get refreshed.
Can somebody help me, It's very urgent.
TIA
alert('hii');
if(localStorage['CycleAccounts']){
var cycleAccounts = localStorage['CycleAccounts'].split(',');
alert(cycleAccounts);
alert('{!Account.Id}');
var accId='{!Account.Id}';
accId= accId.substring(0, accId.length - 3);
alert(accId);
// var currentAccountPos = cycleAccounts.indexOf('{!Account.Id}');
var currentAccountPos = cycleAccounts.indexOf(accId);
alert(currentAccountPos);
if(currentAccountPos == cycleAccounts.length - 1){
alert('This was the Last Account!');
}
else{
parent.parent.frames.location.replace('/apex/accExample?id='+ cycleAccounts[currentAccountPos + 1]);
}
}
}
Hi All,
1. If i login as a admin, browser gets refreshed with the updated id's
2.If i login with user other than admin, browser doesn't get refreshed.
Can somebody help me, It's very urgent.
TIA
try replacing
with or just
Marking best answers is good for all.