Apex Class Code:
Hi @rastogianand:disqus , Code is working fine for me. I think you have not copy pasted correctly. Can you please email me or share your code and error here. I will try to find error and will reply you.
yaar i copy the same code its saying that
xpecting a left angle bracket, found ‘wrapAccountList’ at line 3 column 16 and can i get a test class for this code
I made correction in code. It was not displayed correctly in post. Please copy and paste updated code now.
Please let me know if you still have any issue.
Thanks for your feedback and finding mistake.
thnx can i get the test class for this and i have a question like which standard object cant be moved in production and do you have any idea abt integration concept in salesforce
Yes, we are going to post regarding test classes, migration and integration very soon. Please stay tuned. I am writing the test class that you have asked for. Will keep you posted.
And we are also going to start the discussion forum thing very soon, where you can ask questions and our discussions can go ahead.
We are waiting for integration related post on REST and SOAP API’s
We will post integration related posts very soon. Thanks for your feedback.
which standard object cant be moved in production pls tell me
Such a nice code
This java script is working fine in Mozilla and IE but working reverse in Google chrome….please suggest what to do……i.e. when i select all it selects all but i put action support to rendered to next. It is not working…after uncheck it show rendered values….
var inputElem = document.getElementsByTagName(“input”);
for(var i=0; i<inputElem.length; i++)
inputElem[i].checked = cb.checked;
Select District :
Code you have entered in comment is not clear. I have tested my code and it is working absolutely fine in chrome browser. Can you please provide clear code so that I can try to identify your problem.
thank you Ankush….its too good 🙂
But how to do something similar, if the vf page is having some other table with same kind of requirement!!?
Ex: two pageblocktables, one with Accounts, another with Contacts.
We are using getElementsByTagName(“input”), which might not be helpful since it will pass the checkboxes from both the tables.
I have tried with getElementsByClassName.Its working fine.
But, i read somewhere that there wil besome browser compatibility issues.!!
Could you pls help me with this !!?
Thank You 🙂
You can use getElementsByClassName. I don’t think that there will be any issue. There are other solutions also.
currently we are using this code
Here we have inputId as id of inputcheckbox component. and in selectAllCheckboxes method we are passing inputId as second parameter. So one of the solution is that in first pageblocktable you can use inputId1 and in second table you can use inputId2 as checkbox id and 2nd parameter of method.
Thank you 🙂