locked
I want to don't show duplicate records on form load of CRM page ... from SubGrid? RRS feed

  • Question

  • I am getting all records but needs to not show duplicate records ... any idea?

     

     

    var commaseptext = ''

    ;

     

    var gridControl = document.getElementById('DistPartGrid'

    ).control;

     

    var

    ids = gridControl.get_allRecordIds();

     

    for

    (i = 0; i < ids.length; i++) {

     

    var cellValue = gridControl.getCellValue('new_distpartnerid'

    , ids[i]);

     

    if (commaseptext == ''

    ) {

    commaseptext = cellValue;

    }

     

    else

    {

    commaseptext = commaseptext +

    ','

    + cellValue;

    }

    }


    Sanjay
    Sunday, January 15, 2012 12:01 PM

All replies

  • hi sanjay

    can you be more clear what you are doing and what you want to acheive

    as it isnt clear

    dkay

    Monday, January 16, 2012 11:35 AM