locked
how to use document.getElementById in MS CRM 2013 RRS feed

  • Question

  • HI I am trying to get the Guid of the selected record from the subgrid.. Here is how we do it in MS CRM 2011

       selectedRecods = document.getElementById(subgridName).control.get_selectedIds();
            if (selectedRecods != null && selectedRecods.length > 0) {
                stringOfSelectedIds = "Selceted records: " + selectedRecods.join();
            }

    http://dynamicslollipops.blogspot.in/2013/01/dynamics-crm-2011-javascript-getting.html

    How do we do the same in MS CRM 2013 ??!!!

    Friday, February 28, 2014 10:59 AM

Answers

  • Hi,

    One possible Solution for getting Selected Record Ids in Subgrid using OOB RibbonDiffXml on a button click,

    use below tag in <CrmParameter> you will get selected record Ids.

    SelectedControlSelectedItemIds

    A string array of GUID Id values for all selected items in a grid.


    Regards

    Arun Potti

    • Marked as answer by Pradeep47 Friday, February 28, 2014 3:07 PM
    Friday, February 28, 2014 1:23 PM

All replies

  • Hi,

    One possible Solution for getting Selected Record Ids in Subgrid using OOB RibbonDiffXml on a button click,

    use below tag in <CrmParameter> you will get selected record Ids.

    SelectedControlSelectedItemIds

    A string array of GUID Id values for all selected items in a grid.


    Regards

    Arun Potti

    • Marked as answer by Pradeep47 Friday, February 28, 2014 3:07 PM
    Friday, February 28, 2014 1:23 PM
  • Thank you.. is there any reference so I can get more info on how exactly to achieve this ???

    EDIT:

     I found this..

    http://lakshmanindian.wordpress.com/2012/11/29/update-selected-records-in-home-page-entity-grid-in-crm-2011/

    This is exactly what I was looking for .. thank you so much..

    I appreciate your help..

    • Edited by Pradeep47 Friday, February 28, 2014 3:07 PM
    Friday, February 28, 2014 3:00 PM