javascript - How to pass current entity Id to my Silverlight webresource? -


i have silverlight webresource in crm 2015 online, open using javascript webresource. web resource through ribbon button of opportunity entity. need pass current opened opportunity silverlight web resource. i've managed opportunityid still can't pass silverlight web resource.

my javascript webresource code:

function opensilverlightcontrol()  {      var id=xrm.page.data.entity.getid();      window.open('https://crm.mycrm.com//webresources/new_/mycrmquotetestpage.html',null,500,600);  } 

edit:

i tried using querystring produces internal server error.

this link: https://crm.mycrm.com//webresources/new_/mycrmopportunityquotetestpage.html?oppid={7a594863-1c1f-e511-80c8-02e7484a2b2f}

also : https://crm.mycrm.com//webresources/new_/mycrmopportunityquotetestpage.html?oppid=7a594863-1c1f-e511-80c8-02e7484a2b2f

both give "500 - internal server error"

this done using query string variable

function opensilverlightcontrol(){     var id=xrm.page.data.entity.getid();     var url = 'https://crm.mycrm.com//webresources/new_/mycrmquotetestpage.html?elementid=' + id;      window.open(url,null,500,600); } 

then in silverlight application can read querystring value


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -