locked
Selected Records GUID RRS feed

  • Question

  •  

    Hi all,

    I have a requirement ,

    in Case grid, Il select few case record by Pressing the control key(for example 5 record is selected)

    I need to get the GUID s of the the selected records , without opening the record , how can i acheive this...

     

     

    I have done a webpage whic exports serial number from the case (when a case record is opened a Button is displayed on the top menu bar  on click of a button records of the related entity will be exported )for this we have to open each case record and click the button ,

    now the requirement is, without opening the grid il select few records, when i click the button above mentioned functionality should be acheived

     

    please help me on this...

    Monday, December 8, 2008 7:22 AM

Answers

  • Probably too late for the original poster, but for reference, then most likely reason for receiving 'undefined' with window.dialogArguments is if your page is not considered to be in same web site as CRM - Internet Explorer security settings typically prevent passing this information in this scenario. To avoid the problem, make sure you reference your web page via a relative URL, not an absolute one


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
    Friday, May 15, 2009 5:26 PM
    Moderator

All replies

  • Hi Vishwaz,

    I would like to recommend these articles for references :

    http://ronaldlemmen.blogspot.com/2007/06/fetching-selected-records-in-grid.html

    http://msdn.microsoft.com/en-us/library/bb267367.aspx

    hope this helps,

    hadi teo
    http://haditeo.wordpress.com/
    Monday, December 8, 2008 11:58 AM
  •  

    Thanks hadi

     

    This looks  exactly like my requirement..I treid implementing the this , but i am not getting what i want ..

    My requirement is:

     

    On the CASE Entity Grid i need a button (Whic is acheived thruogh ISV.Config , i am only worried about the ASPX Page )

    when i click on that it should show up a window with the GUID (incidentid) of the selected record in the Grid...

     

     

    I have used this ..but i am getting it as undefined

     

    function window.onload()

    {

    // window.dialogArguments contains an array of the IDs for the selected entities.

    var sSelectedRows = window.dialogArguments;

    //alert(sSelectedRows.Tostring()) ;

    //If sSelectedRows is empty, do not execute the entity update.

    if (sSelectedRows == "" || sSelectedRows.length == 0)

    {

    alert("You must select records in order to use this feature.");

    window.close();

    }

     

     

    Can you please give me the code whic gets the GUID of the selected reocrds on the grid..

    Thursday, December 11, 2008 9:54 AM
  • Hi Vishwaz

     

    U can get the GUID of the selected items in more easy way.

    Hope u have created a button in ISV config (for eg named as CaseISVbutton).

     

    In ISV config onclick of the CaseISVButton call ur custom webpage like this

     

    window.open('http://solutionpath/customwebpage.aspx?id='+ getSelected('crmGrid'))

     

    getSelected('crmGrid')  -  Will get the selected item in the grid.

     

     

     

    Enjoy

     

    Regards

    Vinoth

     

     

    Monday, December 22, 2008 7:58 AM
  • Probably too late for the original poster, but for reference, then most likely reason for receiving 'undefined' with window.dialogArguments is if your page is not considered to be in same web site as CRM - Internet Explorer security settings typically prevent passing this information in this scenario. To avoid the problem, make sure you reference your web page via a relative URL, not an absolute one


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
    Friday, May 15, 2009 5:26 PM
    Moderator