Skip to main content
Nintex Community Menu Bar
Question

help me to write javascript snippet of this onclick javascript button


Forum|alt.badge.img+5

{!REQUIRESCRIPT(“/soap/ajax/26.0/connection.js”)} 
{!REQUIRESCRIPT(“/support/console/26.0/integration.js”)} 

var ids = {!GETRECORDIDS($ObjectType.Ckte__c)}; 
if (!ids || ids.length < 1) 
alert(“Please select at least one record.”); 
else 

var redirectUrl = “/apex/loop__masslooplus?&retURL=” + encodeURI(window.location.pathname+window.location.search); 
redirectUrl += “&recordIds=”+ids.join(“,”); 
redirectUrl += “&sessionId={!$Api.Session_ID}”; 
window.location.href = redirectUrl; 
}


for the above code i have written the following code to snippet:



var ids = {!GETRECORDIDS($ObjectType.Ckte__c)}; 
if (!ids || ids.length < 1) 
alert(“Please select at least one record.”); 
else 

var redirectUrl = “/apex/loop__masslooplus?&retURL=” + encodeURI(window.location.pathname+window.location.search); 
redirectUrl += “&recordIds=”+ids.join(“,”); 
redirectUrl += “&sessionId={!$Api.Session_ID}”; 
window.location.href = redirectUrl; 
}

I m getting error in the first line } expected … dont know why this error help me

Translate
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+4

Hi,

Could you please share shot for better understanding?

 
Thanks

Translate

Forum|alt.badge.img+5

I have solved this using
var ids = skuid.$.map(arguments[0].list.getSelectedItems(),function(item){ return item.row.Id; 
});

Thanx Gopal for reply.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings