GUID of Account Entity in JAVAScript

rajarameshvarmarajarameshvarma Member Posts: 2
edited 2008-11-10 in Dynamics CRM
Hi ,

I need to pass the guid's of selected records in GridView of Account entity to an aspx page with out using query string and also not using modal dialog.

Is there any method for this?

Thanks in advance.


  • ianlcyianlcy Member Posts: 4

    Try this idea, hope can help...

    var oSelected = new Array();
    var i = 0;
    var oGrid = document.getElementById("gridBodyTable");
    if (oGrid) {
    var oItems = oGrid.getElementsByTagName("TD");
    if (oItems) {
    for (j=0; j<oItems.length; j++) {
    if (oItems[j].className == "ms-crm-List-SelectedRow") {
    oSelected = oItems[j].getAttribute("oid");
    i += 1;

    At last oSelected consists of array of Guids. You might need to maintain this as a function, attach it in something like crmGrid.attachEvent("onselectionchange", funcName)

    *Not supported yaa...
  • Krishna1695Krishna1695 Member Posts: 2
    May you please make your point clear? Actually what is your requirement?
    Tell how will you call your custom aspx page when you click an account
Sign In or Register to comment.