Get Part BOM relationship IDs of Selected Items

Hi How to get the user selected Part BOM IDs (relationship) in comma separated format. I'm able to get the selected id using this.getID(); but it is getting the id one by one. I need all the selected BOM lines in comma separated item.
Parents Reply Children
No Data