locked
Javascript function in ISV file RRS feed

  • Question

  • How to write below function in Isv file.

    <Button Icon="/_imgs/ico_16_customEntity.bmp" JavaScript="var objectID;objectID = GetRequestElement(); alert(objectID);window.showModalDialog('/isv/web//OrderLookup.aspx?
    id='+objectID,'width=447,height=160,toolbar=0,resizable=1');" WinParams="" PassParams="1" WinMode="1">

    cannot upload ISV file int to MSCRM

    ====================================

    .. for (var i = 0; i < parts.length; i++) and objrep = hh.replace('%7d&etc,10032',''); is not accepting.Please see below javascript function

    ===============================

    function  GetRequestElement()
    {
        var result = '';
        var request =  'window.location.search';
        request =request.substring(1);
        var parts = request.split('=%7b');
        for (var i = 0; i < parts.length; i++)
        {
            var subparts = parts[i].split('=');
                    if (i==1)
                    {
                         var hh=new String(subparts);
                         var objrep;
                         objrep = hh.replace('%7d&etc,10032','');
                    }   
                    if(i==1)
                   {
                         result =  objrep ;
                         objectID=objrep;
                  }
        }            

    }

     

    Sunday, October 17, 2010 7:01 AM

Answers

All replies