Guest User

Untitled

a guest
Jan 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. List<String> lstAlpha = accountToUpdate.split(',');
  2. List<Id> AccIds = new List<Id>();
  3. for(String s: lstAlpha)
  4. {
  5. s.replaceAll('\p{P}','');
  6. s = s.substring(1,s.length());
  7. system.debug('String@'+s);
  8. Id i = s;
  9. AccIds.add(i);
  10. }
  11.  
  12. for (var x = 0; x < this.items.length; x++) {
  13. if(this.items[x].selected){
  14. var acc = this.items[x];
  15. this.accids.push(acc.Id);
  16. alert('Icheck2@'+this.accids);
  17. }
  18. }
  19.  
  20. Initialized - accids: []
Add Comment
Please, Sign In to add comment