You need to sign in to do that
Don't have an account?
![DocMagic DocMagic](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
GETRECORDIDS does not select selected rows (checked checkboxes)
I am attempting to create a custom button that passes in an array of solutions to a web webservice. The code that I am using is:
{!REQUIRESCRIPT ("/soap/ajax/28.0/connection.js")}
var records = {!GETRECORDIDS( $ObjectType.Solution )};
if (records[0] == null) {
alert("Please select at least one row.");
} else {
alert("You have made a selection");
}
Unfortunately, with this code, when I click on the custom related list button (via the solution list in a case), I am always prompted that no rows are selected (even when checkboxes are checked). I have tested the three major browsers, and via multiple users, to no avail. Is there something that I am missing?
Any help is much appreciated! Thank you!!
{!REQUIRESCRIPT ("/soap/ajax/28.0/connection.js")}
var records = {!GETRECORDIDS( $ObjectType.Solution )};
if (records[0] == null) {
alert("Please select at least one row.");
} else {
alert("You have made a selection");
}
Unfortunately, with this code, when I click on the custom related list button (via the solution list in a case), I am always prompted that no rows are selected (even when checkboxes are checked). I have tested the three major browsers, and via multiple users, to no avail. Is there something that I am missing?
Any help is much appreciated! Thank you!!
Please inlude the following lines in your code
{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")}
{!REQUIRESCRIPT("/support/console/25.0/integration.js")}
and try to save it. Hopefully it will work.
Thanks
Vikash_SFDC