Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Getting selected ids of a sub grid

$
0
0

Hi,

I'm repeating an earlier post:

I have a button outside a subgrid in aCRM Form(not a ribbon). My goal is to select multiple rows in the sub grid and then click the button which will retrieve all the selected row. for that in click event of the button i am using the following code:

varTestResults= document.getElementById('sample_link');varTestResultSelected=TestResults.control.get_selectedIds();

For some reason when I try the code TestResultSelected always remains blank. I noticed if I click anywhere else but the sub grid the selection gets cleared. this made me believe that whenever I am clicking the button which is outside the sub grid, my selection gets cleared first then the click event is getting fired.

I think i am doing some very elementary mistake somewhere. can anyone care to help?

I'm using CRM 2011.

Regards,

Anthonie


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>